Explorar el Código

fix: fix response choice json

CaIon hace 2 años
padre
commit
042d55cfd3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 {