Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,9 @@ type ChatCompletionChoice struct {
// function_call: The model decided to call a function
// content_filter: Omitted content due to a flag from our content filters
// null: API response still in progress or incomplete
FinishReason FinishReason `json:"finish_reason"`
LogProbs *LogProbs `json:"logprobs,omitempty"`
FinishReason FinishReason `json:"finish_reason"`
NativeFinishReason string `json:"native_finish_reason"`
LogProbs *LogProbs `json:"logprobs,omitempty"`
}

type PromptAnnotation struct {
Expand Down Expand Up @@ -777,6 +778,7 @@ type ChatCompletionStreamChoice struct {
Delta ChatCompletionStreamChoiceDelta `json:"delta"`
Logprobs *ChatCompletionStreamChoiceLogprobs `json:"logprobs,omitempty"`
FinishReason FinishReason `json:"finish_reason"`
NativeFinishReason string `json:"native_finish_reason"`
ContentFilterResults *ContentFilterResults `json:"content_filter_results,omitempty"`
}

Expand Down