Skip to content

fix: preserve non-standard error response bodies#1851

Open
Genmin wants to merge 1 commit into
openai:masterfrom
Genmin:fix/error-body-fallback
Open

fix: preserve non-standard error response bodies#1851
Genmin wants to merge 1 commit into
openai:masterfrom
Genmin:fix/error-body-fallback

Conversation

@Genmin
Copy link
Copy Markdown

@Genmin Genmin commented Apr 28, 2026

Summary\n\n- fall back to the full JSON error response body when a response does not include the standard error envelope\n- keep the existing standard OpenAI error-envelope behavior unchanged\n- add a regression test for a 422 response body that only contains detail\n\nFixes #1734.\n\n## Testing\n\n- yarn test tests/index.test.ts -t "error message falls back"\n- yarn build\n

@Genmin Genmin requested a review from a team as a code owner April 28, 2026 23:35
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