fix: replicate response format

This commit is contained in:
2024-01-23 15:43:48 +08:00
parent b1a9d6b685
commit 33f341026f
2 changed files with 13 additions and 8 deletions

View File

@@ -176,5 +176,5 @@ type OpenAIChatResponseChunk struct {
type OpenAIChatResponseChunkChoice struct {
Index int64 `json:"index"`
Delta OpenAIChatMessage `json:"delta"`
FinishReason *string `json:"finish_reason"`
FinishReason string `json:"finish_reason"`
}