Przeglądaj źródła

fix: fix response choice json

CaIon 2 lat temu
rodzic
commit
042d55cfd3
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      controller/relay.go

+ 1 - 1
controller/relay.go

@@ -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 {