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
ERROR Error from OpenAI API: Error code: 400 - {'error': {'message': "Invalid schema for function 'save_to_file_and_run': In context=('properties', 'variable_to_return'), schema must have a 'type' key.",
'type': 'invalid_request_error', 'param': None, 'code': None}}
<class 'TypeError'>
You tried to pass a `BaseModel` class to `chat.completions.create()`; You must use `beta.chat.completions.parse()` instead
The text was updated successfully, but these errors were encountered:
I have the same issue. It's when the agent gets the structured_ooutputs=true param. The way to have structured_outputs has changed in the openai library. As the error shows it needs to use 'beta.chat.completions.parse()'.
The text was updated successfully, but these errors were encountered: