Open 1WorldCapture opened 4 months ago
yup working on this :)
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.