Skip to content

Commit ac25f31

Browse files
authored
add items, which is required for array type (#373)
* add items, which is required for array type * use JSONSchemaDefine directly
1 parent 0bd14f9 commit ac25f31

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

chat.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ type JSONSchemaDefine struct {
9595
Properties map[string]*JSONSchemaDefine `json:"properties,omitempty"`
9696
// Required is a required of JSON Schema. It used if Type is JSONSchemaTypeObject.
9797
Required []string `json:"required,omitempty"`
98+
// Items is a property of JSON Schema. It used if Type is JSONSchemaTypeArray.
99+
Items *JSONSchemaDefine `json:"items,omitempty"`
98100
}
99101

100102
type FinishReason string

0 commit comments

Comments
 (0)