We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
to_strict_json_schema
No response
The text was updated successfully, but these errors were encountered:
I found: from openai.lib._parsing._completions import type_to_response_format_param
from openai.lib._parsing._completions import type_to_response_format_param
Sorry, something went wrong.
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: