Skip to content

Conversation

@RobertCraigie
Copy link
Collaborator

@RobertCraigie RobertCraigie commented Apr 17, 2025

The API doesn't support optional fields and the SDK is accidentally marking all fields as required, even when they've been marked with .optional().

Fixing this would be a breaking change, so we're adding a warning and fixing this properly in v5.

@RobertCraigie RobertCraigie marked this pull request as ready for review April 17, 2025 16:17
@RobertCraigie RobertCraigie requested a review from a team as a code owner April 17, 2025 16:17
@RobertCraigie RobertCraigie force-pushed the robert/warn-structured-outputs branch from 270adfa to da548f6 Compare April 18, 2025 12:25
@RobertCraigie RobertCraigie merged commit aea2d12 into master Apr 18, 2025
5 checks passed
@stainless-app stainless-app bot mentioned this pull request Apr 18, 2025
@RobertCraigie RobertCraigie deleted the robert/warn-structured-outputs branch April 18, 2025 16:00
@stainless-app stainless-app bot mentioned this pull request May 29, 2025
SkinnnyJay pushed a commit to SkinnnyJay/openai-node that referenced this pull request Sep 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants