Open mcantrell opened 2 months ago
@RobertCraigie Thanks for fixing one of the issues! Do you have an ETA on the fix for the "format" issue?
There are currently no plans to automatically remove "format": "date-time"
as it breaks .parse()
's promise that it will either generate valid data or refuse to generate any data.
We're considering opt-in flags to remove certain features that the API doesn't support yet but I don't have an ETA to share unfortunately.
Confirm this is a feature request for the Python library and not the underlying OpenAI API.
Describe the feature or improvement you're requesting
I noticed that you guys are doing some manipulation of Pydantic's generated schema to ensure compatibility with the API's schema validation. I found a few more instances that can be addressed:
Issues:
The test cases below builds on your
to_strict_json_schema
function and removes addresses these problematic fields with theremove_property_from_schema
function:Additional context
No response