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
feat: add warning for .optional() usage in OpenAI API schemas
This commit adds a warning when .optional() is used in schemas for OpenAI API
Structured Outputs, recommending the use of .nullable() instead.
- Added warning in optional.ts that triggers when openaiStrictMode is true
- Added test to verify warning behavior
Fixesopenai#1180
0 commit comments