Skip to content

Commit

Permalink
Make reponse format JSONSchema optional (#820)
Browse files Browse the repository at this point in the history
  • Loading branch information
tylergannon committed Aug 7, 2024
1 parent 623074c commit 6439e1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6439e1f

Please sign in to comment.