Skip to content

Commit

Permalink
fix(sse): do not omit empty finish_reason (#1745)
Browse files Browse the repository at this point in the history
Fixes #1744
  • Loading branch information
mudler authored Feb 24, 2024
1 parent 0135e1e commit aa098e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/schema/openai.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ type OpenAIResponse struct {

type Choice struct {
Index int `json:"index"`
FinishReason string `json:"finish_reason,omitempty"`
FinishReason string `json:"finish_reason"`
Message *Message `json:"message,omitempty"`
Delta *Message `json:"delta,omitempty"`
Text string `json:"text,omitempty"`
Expand Down

0 comments on commit aa098e4

Please sign in to comment.