You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this may be related to or similarly dealt with: #37
The parameters for tools should be "Any", to workaround the same issue, I think?
Thanks for your work on this library.
To reproduce provide a function using the tools parameter. Here's the same example modified from the issue to use tools:
(create-chat-completion {:model"gpt-3.5-turbo":messages [{:role"user":content"Wikipedia page about foxes"}]
:tools
[{:type"function":function {:name"get_current_weather":description"Get the current weather in a given location":parameters
{:type"object":properties {:location {:type"string":description"The city and state, e.g. San Francisco, CA"}
:unit {:type"string":enum ["celsius""fahrenheit"]}}}}}]
:tool_choice"auto"})
Which throws an exception:
"Execution error (ExceptionInfo) at schema-tools.coerce/coerce-or-error! (coerce.cljc:24).
Could not coerce value to schema: {:body {:tools [{:function {:parameters {:type disallowed-key, :properties disallowed-key}}}]}}"
I think this may be related to or similarly dealt with: #37
The parameters for tools should be "Any", to workaround the same issue, I think?
Thanks for your work on this library.
To reproduce provide a function using the tools parameter. Here's the same example modified from the issue to use tools:
Which throws an exception:
"Execution error (ExceptionInfo) at schema-tools.coerce/coerce-or-error! (coerce.cljc:24).
Could not coerce value to schema: {:body {:tools [{:function {:parameters {:type disallowed-key, :properties disallowed-key}}}]}}"
The text was updated successfully, but these errors were encountered: