Class Completions
Expected response schema to completion request.
Inheritance
object
Completions
Implements
IEquatable<Completions>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DotnetPrompt.LLM.OpenAI.Model
Assembly: DotnetPrompt.LLM.OpenAI.dll
Syntax
public record Completions : IEquatable<Completions>
Properties
| Improve this Doc View SourceChoices
Array of choices returned containing text completions to prompts sent.
Declaration
[JsonPropertyName("choices")]
public IReadOnlyList<Choice> Choices { get; init; }
Property Value
Type | Description |
---|---|
IReadOnlyList<Choice> |
Created
Created time for completion response.
Declaration
[JsonPropertyName("created")]
public int? Created { get; init; }
Property Value
Type | Description |
---|---|
int? |
Id
Id for completion response.
Declaration
[JsonPropertyName("id")]
public string Id { get; init; }
Property Value
Type | Description |
---|---|
string |
Model
Model used for completion response.
Declaration
[JsonPropertyName("model")]
public string Model { get; init; }
Property Value
Type | Description |
---|---|
string |
Usage
Usage counts for tokens input using the completions API.
Declaration
[JsonPropertyName("usage")]
public CompletionsUsage Usage { get; init; }
Property Value
Type | Description |
---|---|
CompletionsUsage |
Implements
System.IEquatable<T>