update to json.RawMessage (#441)
This commit is contained in:
committed by
GitHub
parent
0234c1e0c2
commit
1876e0c207
2
chat.go
2
chat.go
@@ -65,7 +65,7 @@ type FunctionDefinition struct {
|
||||
Name string `json:"name"`
|
||||
Description string `json:"description,omitempty"`
|
||||
// Parameters is an object describing the function.
|
||||
// You can pass a []byte describing the schema,
|
||||
// You can pass json.RawMessage to describe the schema,
|
||||
// or you can pass in a struct which serializes to the proper JSON schema.
|
||||
// The jsonschema package is provided for convenience, but you should
|
||||
// consider another specialized library if you require more complex schemas.
|
||||
|
||||
Reference in New Issue
Block a user