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
When passing a schema with .optional() or .partial() at the end of the root zod object combined with OpenAIs structured data the call fails
I_APICallError: Invalid schema for response_format 'response': In context=('properties', 'katzen', 'items'), 'required' is required to be supplied and to be an array including every key in properties
This error is an OpenAI limitation and thrown by the OpenAI API. You can use a stronger model without structured outputs or design you schema differently.
Description
When passing a schema with .optional() or .partial() at the end of the root zod object combined with OpenAIs structured data the call fails
I_APICallError: Invalid schema for response_format 'response': In context=('properties', 'katzen', 'items'), 'required' is required to be supplied and to be an array including every key in properties
Code example
Additional context
No response
The text was updated successfully, but these errors were encountered: