Confirm this is a feature request for the Python library and not the underlying OpenAI API.
Describe the feature or improvement you're requesting
Do you provide any helper function to generate the correct jsonschema starting from a pydantic BaseModel, to provide it to the response_format?
It's a big struggle not to have it. Imagine like in the Batch API in which i cannot provide the Pydantic instance
I tried with to_strict_json_schema but it doesn't work as expected, it puts keys like $defs and $refs.
Additional context
No response
Confirm this is a feature request for the Python library and not the underlying OpenAI API.
Describe the feature or improvement you're requesting
Do you provide any helper function to generate the correct jsonschema starting from a pydantic BaseModel, to provide it to the response_format?
It's a big struggle not to have it. Imagine like in the Batch API in which i cannot provide the Pydantic instance
I tried with
to_strict_json_schemabut it doesn't work as expected, it puts keys like $defs and $refs.Additional context
No response