add items, which is required for array type (#373)
* add items, which is required for array type * use JSONSchemaDefine directly
This commit is contained in:
2
chat.go
2
chat.go
@@ -95,6 +95,8 @@ type JSONSchemaDefine struct {
|
|||||||
Properties map[string]*JSONSchemaDefine `json:"properties,omitempty"`
|
Properties map[string]*JSONSchemaDefine `json:"properties,omitempty"`
|
||||||
// Required is a required of JSON Schema. It used if Type is JSONSchemaTypeObject.
|
// Required is a required of JSON Schema. It used if Type is JSONSchemaTypeObject.
|
||||||
Required []string `json:"required,omitempty"`
|
Required []string `json:"required,omitempty"`
|
||||||
|
// Items is a property of JSON Schema. It used if Type is JSONSchemaTypeArray.
|
||||||
|
Items *JSONSchemaDefine `json:"items,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type FinishReason string
|
type FinishReason string
|
||||||
|
|||||||
Reference in New Issue
Block a user