Repository navigation
fix(passthrough): log upstream 4xx/5xx error bodies and carry them into the failure hook #42695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
yucheng-berri
merged 15 commits into
main
from
litellm_passthrough_upstream_error_body_logging
Sep 24, 2026
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
4f401a8
test(integration): reproduce passthrough upstream error body missing …
yucheng-berri e0c70f1
fix(passthrough): log upstream 4xx/5xx error bodies and carry them in…
yucheng-berri 566060a
fix(error_normalization): let the passthrough prefix win over upstrea…
yucheng-berri 2ab1a2e
fix(passthrough): honor message redaction for upstream error bodies
yucheng-berri 23c8a9c
fix(passthrough): bound the upstream error body read and sanitize it …
yucheng-berri 4b44ff4
refactor(passthrough): use the Sequence import directly in the allowe…
yucheng-berri a947ba7
fix(passthrough): rechunk the upstream error stream so the preview re…
yucheng-berri 24c5ace
test(integration): audit matrix for passthrough upstream error visibi…
yucheng-berri 7723d5b
Merge remote-tracking branch 'origin/main' into litellm_passthrough_u…
yucheng-berri ddcef2e
fix(passthrough): drop the restating docstring on the upstream failur…
yucheng-berri 229938c
merge: origin/main into litellm_passthrough_upstream_error_body_logging
yucheng-berri 23a7284
test(integration): drop the retired covers markers from the passthrou…
yucheng-berri 8618621
fix(passthrough): keep the upstream status when the error body peek f…
yucheng-berri 5d57d25
test(passthrough): cover the relay aclose in the mid-read failure test
yucheng-berri c3c5676
fix(passthrough): relay decoded partial body on mid-read failure
yucheng-berri File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.