diff --git a/chat.go b/chat.go index 8bfe558b5..31fa887d6 100644 --- a/chat.go +++ b/chat.go @@ -182,8 +182,8 @@ const ( ) type ChatCompletionResponseFormat struct { - Type ChatCompletionResponseFormatType `json:"type,omitempty"` - JSONSchema ChatCompletionResponseFormatJSONSchema `json:"json_schema,omitempty"` + Type ChatCompletionResponseFormatType `json:"type,omitempty"` + JSONSchema *ChatCompletionResponseFormatJSONSchema `json:"json_schema,omitempty"` } type ChatCompletionResponseFormatJSONSchema struct {