Add Structured Outputs support to Assistants stream() and create_and_poll() Functions #1698
Open
1 task done
Labels
enhancement
New feature or request
Confirm this is a feature request for the Python library and not the underlying OpenAI API.
Describe the feature or improvement you're requesting
Currently the client.beta.threads.runs.create_and_poll() function and client.beta.threads.runs.stream() function do not accept a pydantic model as their "response_format". currently they only accept the old {"type": "json_object"} value.
Additional context
Currently the above works without issue, but the below throws a TypeError:
and the below works, but isnt usable for my purposes:
The text was updated successfully, but these errors were encountered: