Class ChatCompletionBase<TChoice>
Inheritance
Inherited Members
Namespace: Glitch9.AIDevKit.OpenAI
Assembly: Glitch9.AIDevKit.dll
Syntax
public abstract class ChatCompletionBase<TChoice> : OpenAIObject where TChoice : ChatCompletionChoiceBase
Type Parameters
| Name | Description |
|---|---|
| TChoice |
Properties
| Edit this page View SourceChoices
A list of chat completion choices. Can be more than one if n is greater than 1.
If this is 'ChatCompletionChunk' which is a streamed response, This can also be empty for the last chunk if you set stream_options: {"include_usage": true}.
Declaration
[JsonProperty("choices")]
public TChoice[] Choices { get; set; }
Property Value
| Type | Description |
|---|---|
| TChoice[] |
CreatedAt
The Unix timestamp (in seconds) of when this object was created.
Declaration
[JsonProperty("created_at")]
public UnixTime CreatedAt { get; set; }
Property Value
| Type | Description |
|---|---|
| UnixTime |
Metadata
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys can be a maximum of 64 characters long and values can be a maximum of 512 characters long.
Declaration
[JsonProperty("metadata")]
public ServerDictionary Metadata { get; set; }
Property Value
| Type | Description |
|---|---|
| ServerDictionary |
Model
ID of the model.
Declaration
[JsonProperty("model")]
public string Model { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
SystemFingerprint
OpenAI: Represents the backend configuration that the model runs with.
Can be used in conjunction with the seed request parameter to understand when backend changes have been made that might impact determinism.
xAI: Used to indicate xAI system configuration changes.
Declaration
[JsonProperty("system_fingerprint")]
public string SystemFingerprint { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Usage
How much tokens were used for the request.
Declaration
[JsonProperty("usage")]
public Usage Usage { get; set; }
Property Value
| Type | Description |
|---|---|
| Usage |