diff --git a/core/schema/openai.go b/core/schema/openai.go index 23abd7b7..53dd5324 100644 --- a/core/schema/openai.go +++ b/core/schema/openai.go @@ -49,7 +49,7 @@ type OpenAIResponse struct { type Choice struct { Index int `json:"index"` - FinishReason string `json:"finish_reason,omitempty"` + FinishReason string `json:"finish_reason"` Message *Message `json:"message,omitempty"` Delta *Message `json:"delta,omitempty"` Text string `json:"text,omitempty"`