We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e879b4 commit 312208bCopy full SHA for 312208b
chat_stream.go
@@ -51,8 +51,9 @@ type StreamDelta struct {
51
// StreamChoices represents a choice in the chat completion stream.
52
type StreamChoices struct {
53
Index int `json:"index"` // Index of the choice.
54
- Delta StreamDelta // Delta information.
55
- FinishReason string `json:"finish_reason"` // Reason for finishing the generation.
+ Delta StreamDelta // Delta information for the choice.
+ FinishReason string `json:"finish_reason,omitempty"` // Reason for finishing the generation.
56
+ Logprobs Logprobs `json:"logprobs,omitempty"` // Log probabilities for the generated tokens.
57
}
58
59
// StreamChatCompletionResponse represents a single response from a streaming chat completion API call.
0 commit comments