Make reponse format JSONSchema optional (#820)
This commit is contained in:
4
chat.go
4
chat.go
@@ -182,8 +182,8 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type ChatCompletionResponseFormat struct {
|
type ChatCompletionResponseFormat struct {
|
||||||
Type ChatCompletionResponseFormatType `json:"type,omitempty"`
|
Type ChatCompletionResponseFormatType `json:"type,omitempty"`
|
||||||
JSONSchema ChatCompletionResponseFormatJSONSchema `json:"json_schema,omitempty"`
|
JSONSchema *ChatCompletionResponseFormatJSONSchema `json:"json_schema,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ChatCompletionResponseFormatJSONSchema struct {
|
type ChatCompletionResponseFormatJSONSchema struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user