Skip to content

fix: accept null error and incomplete_details in json responses - #38

Merged
TheGreatAxios merged 1 commit into
mainfrom
fix/nullable-buffered-error-fields
Nov 4, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
fix/nullable-buffered-error-fields

Conversation

@TheGreatAxios

@TheGreatAxios TheGreatAxios commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Closes CL-12059

OpenAI non-streaming bodies send "error": null, "incomplete_details": null. CompleteResponse only allowed an object or a missing key, so every stream: false response threw ProtocolMismatchError. Both fields now accept null, matching Interchange.

Streaming schemas unaffected: response.completed doesn't validate these keys, and response.incomplete always carries an object.

Verification: new test failed before the fix (error must be an object (was null)); bun run check, bun run test:e2e, bun run build pass.

@linear-code

linear-code Bot commented Nov 4, 2026

Copy link
Copy Markdown

CL-12059

@TheGreatAxios
TheGreatAxios merged commit e28885e into main Nov 4, 2026
2 checks passed
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.

1 participant