Class ChatChoice
Inheritance
object
ChatChoice
Namespace: Glitch9.AIDevKit
Assembly: .dll
Syntax
public class ChatChoice
Properties
Delta
A streaming chat completion message generated by the model.
Declaration
public ChatDelta Delta { get; set; }
Property Value
Type | Description |
---|---|
ChatDelta |
FinishReason
The reason the model stopped generating tokens. This will be stopped if the model hit a natural stop point or a provided stop sequence, length if the maximum number of tokens specified in the request was reached, content_filter if content was omitted due to a flag from our content filters, or function_call if the model called a Function.
Declaration
public StopReason? FinishReason { get; set; }
Property Value
Type | Description |
---|---|
StopReason? |
Index
The index of the choice in the list of choices.
Declaration
public int Index { get; set; }
Property Value
Type | Description |
---|---|
int |
Logprobs
Log probability information for the choice.
Declaration
public Logprobs Logprobs { get; set; }
Property Value
Type | Description |
---|---|
Logprobs |
Message
A chat completion message generated by the model.
Declaration
public ChatMessage Message { get; set; }
Property Value
Type | Description |
---|---|
ChatMessage |
Text
Only used for legacy model requests.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
string |