Browse Source

fix: fix response choice json

CaIon 2 năm trước cách đây
mục cha
commit
042d55cfd3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 {