Skip to content

ai_gateway: retain full error response body across all error types#154

Merged
msullivan merged 1 commit into
mainfrom
gateway-error
May 29, 2026
Merged

ai_gateway: retain full error response body across all error types#154
msullivan merged 1 commit into
mainfrom
gateway-error

Conversation

@msullivan
Copy link
Copy Markdown
Contributor

The gateway error factory extracted only message/type/generationId from
the error response and discarded the rest of the body -- including the
provider routing/fallback details (which backends were tried and how
each failed). Capture the full body on the base GatewayError and forward
it through map_error into ProviderAPIError.body for every error type, not
just GatewayResponseError.

The gateway error factory extracted only message/type/generationId from
the error response and discarded the rest of the body -- including the
provider routing/fallback details (which backends were tried and how
each failed). Capture the full body on the base GatewayError and forward
it through map_error into ProviderAPIError.body for every error type, not
just GatewayResponseError.
@msullivan msullivan requested a review from anbuzin May 28, 2026 19:41
@vercel
Copy link
Copy Markdown

vercel Bot commented May 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ai-python Ready Ready Preview, Comment May 28, 2026 7:43pm

@msullivan msullivan merged commit 45464d0 into main May 29, 2026
7 checks passed
@msullivan msullivan deleted the gateway-error branch May 29, 2026 02:43
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.

2 participants