Skip to content

fix: make schema required field in ResponseFormatJsonSchema#555

Merged
64bit merged 2 commits into
mainfrom
fix-response-format-json-schema
May 21, 2026
Merged

fix: make schema required field in ResponseFormatJsonSchema#555
64bit merged 2 commits into
mainfrom
fix-response-format-json-schema

Conversation

@64bit
Copy link
Copy Markdown
Owner

@64bit 64bit commented May 21, 2026

Verified that at runtime OpenAI API expect it to be present, even though the spec says its optional.

The official openai-python requires it too.

Closes #534

@64bit 64bit merged commit fd506be into main May 21, 2026
99 checks passed
@64bit 64bit deleted the fix-response-format-json-schema branch May 21, 2026 01:11
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.

schema must be present and not null when text.format.type is json_schema

1 participant