fix: fix Gemini stream problem

This commit is contained in:
JustSong
2023-12-17 16:16:18 +08:00
parent 5cf23d8698
commit 58dee76bf7
3 changed files with 51 additions and 39 deletions

View File

@@ -236,7 +236,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 {