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 have same problem, I think it is because one parameter should be chosen: tool_choice <Union[str, Dict[str, Any]]>. On the document it is said that if there is tool defined, it is set to "auto" as default value. this means the AI robot can choose from answering a message or using a tool. So, under this conditon, from the documentation, this parameter seemly should be specified, but the pattern is defined blurry, hard to write right code.
Scenario: function calling
Steps:
Problem:
Sometimes LLM responses raw JSON text, and sometimes it embeds the reponse in markdown, like
{ .... }
or
Either case could not be handled correctly in current code.
So is it possible or necessary to enhance the cookcode to handle such case? thanks.
The text was updated successfully, but these errors were encountered: