From 1876e0c20716afc4d012688bc393ccd5f28def79 Mon Sep 17 00:00:00 2001 From: Savannah Ostrowski Date: Fri, 14 Jul 2023 21:33:55 -0700 Subject: [PATCH] update to json.RawMessage (#441) --- chat.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chat.go b/chat.go index 17d7cd574..7a6438e7f 100644 --- a/chat.go +++ b/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.