Sfoglia il codice sorgente

fix: fix response choice json

CaIon 2 anni fa
parent
commit
042d55cfd3
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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 {