fix: fix response choice json

This commit is contained in:
CaIon 2024-01-10 13:57:49 +08:00
parent 3432d9e0f6
commit 042d55cfd3

View File

@ -248,7 +248,7 @@ type ChatCompletionsStreamResponseChoice struct {
Delta struct {
Content string `json:"content"`
} `json:"delta"`
FinishReason *string `json:"finish_reason"`
FinishReason *string `json:"finish_reason,omitempty"`
}
type ChatCompletionsStreamResponse struct {