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
Any optional property in a schema causes the following error:
Error in streaming examples: Error [AI_APICallError]: Invalid schema for response_format 'response': In context=('properties', 'recipe'), 'required' is required to be supplied and to be an array including every key in properties. Missing 'steps'.
The same schema works fine with Flash/Claude/4o. We rely on optional properties pretty heavily.
Description
Any optional property in a schema causes the following error:
Error in streaming examples: Error [AI_APICallError]: Invalid schema for response_format 'response': In context=('properties', 'recipe'), 'required' is required to be supplied and to be an array including every key in properties. Missing 'steps'.
The same schema works fine with Flash/Claude/4o. We rely on optional properties pretty heavily.
Code example
AI provider
@ai-sdk/openai 1.1.9
Additional context
No response
The text was updated successfully, but these errors were encountered: