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
When adding tools to an assistant, the API throws an error if the assistant does not utilize them. In OpenAI, assistants can choose whether to use tools or not. This issue originates from the threads.py create_run method.
Steps to Reproduce
Create an assistant with any custom tool. (function)
Ask the assistant to say "hi."
Observe the error: "Could not extract function arguments from LLM response, may have not been properly formatted. Consider retrying or use a different model."
Expected Behavior
In OpenAI, tools can be attached to an assistant, allowing it to decide whether or not to use them. This autonomy in tool utilization is crucial for any agentic system.
Actual Behavior
The operation fails with the error: ValueError("Could not extract function arguments from LLM response, may have not been properly formatted. Consider retrying or use a different model.")
Additional Information
OpenAI version: 1.20.0
Python version: 3.10.13
Streaming assistants version: 0.16.0
Operating System: macOS 14.1.1
The text was updated successfully, but these errors were encountered:
Description
When adding tools to an assistant, the API throws an error if the assistant does not utilize them. In OpenAI, assistants can choose whether to use tools or not. This issue originates from the
threads.py create_run
method.Steps to Reproduce
Expected Behavior
In OpenAI, tools can be attached to an assistant, allowing it to decide whether or not to use them. This autonomy in tool utilization is crucial for any agentic system.
Actual Behavior
The operation fails with the error:
ValueError("Could not extract function arguments from LLM response, may have not been properly formatted. Consider retrying or use a different model.")
Additional Information
The text was updated successfully, but these errors were encountered: