Repository navigation
fix(bedrock)!: backport #47429 pass-through guardrailConfig and the integration test fixes to lts/1.108.x - #50568
Merged
Conversation
…and MCP ack fix to lts/1.108.x Backports test-only changes from main so the line's integration signal stops reporting stale helpers as failures. Gateway.database_url and Gateway.rows come from #47213 (fc27dfd), and the name keyword on Scenario.model comes from #48917 (ebf84f8). Only those hunks of tests/integration/_support/client.py are taken. The rest of #47213 gives each owned proxy its own database and Redis, which none of the line's tests need, and the workers field from a later main change is left out. The MCP progress and cancellation test wraps its upstream in _acknowledge_notifications_after_dispatch, from #49967 (b5952f2). The helper is already on the line.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
… pass-through routes to lts/1.108.x The router-model pass-through dropped a Bedrock deployment's guardrailConfig, so converse, converse-stream, invoke and invoke-with-response-stream reached Bedrock unguarded while /v1/chat/completions on the same deployment was blocked. The signer now sends it the way Bedrock reads it, in the body for Converse and as the X-Amzn-Bedrock-Guardrail* headers for Invoke, replacing any guardrail the caller sent Adapted to the line, which does not have #47040. The guardrail headers are merged through merge_bedrock_invoke_headers without the request metadata header, and the unit tests drop the request metadata assertions and the identity argument that only #47040 needs
…ailing-slash converse pass-through
…1-Flash MiniMax-M3 reached its 2026-11-06 deprecation date in the cost map, which names MiniMax-M3.1-Flash as its successor (cherry picked from commit 90f7ab6)
yucheng-berri
approved these changes
Nov 9, 2026
doonga
pushed a commit
to greyrock-labs/home-ops
that referenced
this pull request
Nov 10, 2026
…08.4) (#715) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [ghcr.io/berriai/litellm](https://images.chainguard.dev/directory/image/wolfi-base/overview) ([source](https://github.com/BerriAI/litellm)) | patch | `v1.108.2` → `v1.108.4` | --- ### Release Notes <details> <summary>BerriAI/litellm (ghcr.io/berriai/litellm)</summary> ### [`v1.108.4`](https://github.com/BerriAI/litellm/releases/tag/v1.108.4): 1.108.4 (LTS) [Compare Source](BerriAI/litellm@v1.108.3...v1.108.4) > \[!TIP] > The `lts` image tag always points to the latest LTS release. Pull `ghcr.io/berriai/litellm:lts` to stay on the newest LTS patch #### Verify this release ```bash cosign verify \ --key https://raw.githubusercontent.com/BerriAI/litellm/e82a3c646908ba0a6ee0beddc4310d7a6cac4065/cosign.pub \ ghcr.io/berriai/litellm:v1.108.4 ``` Same command for `litellm-database`, `litellm-non_root` and the `docker.io/litellm/*` images #### What's new in 1.108.4 (LTS) 10 PRs. 7 fixed, 1 changed. No action needed to upgrade ##### Changes - **AWS Bedrock:** Fixed 400s from GLM, GPT-6 Luna and Nova 2 on Bedrock when the conversation carries Claude's signed thinking ([#​50399](BerriAI/litellm#50399)) - **AWS Bedrock:** Changed `/bedrock` pass-through routes to enforce the model's `guardrailConfig` over any guardrail the caller sends ([#​47429](BerriAI/litellm#47429)) - **Vertex AI and Gemini:** Fixed Vertex AI Claude batches failing with 404 at create ([#​50365](BerriAI/litellm#50365)) - **Messages API:** Fixed `chatgpt/` models on `/v1/messages` dropping encrypted reasoning between turns ([#​50456](BerriAI/litellm#50456)) - **Messages API:** Fixed `/v1/messages` to OpenAI sending `background: true` upstream, which billed full runs that came back empty ([#​50462](BerriAI/litellm#50462)) - **Embeddings, images and audio:** Fixed `/v1/videos` polls failing with per-model keys or hitting the wrong provider account with a 404 ([#​44614](BerriAI/litellm#44614)) - **Routing and fallbacks:** Fixed team keys being served by a proxy-wide wildcard instead of the team's own BYOK wildcard deployment ([#​48490](BerriAI/litellm#48490)) - **SDK:** Fixed `completion()`, `responses()` and `messages` with tools failing with `No module named 'mcp'` on a base install, broken since v1.106.0 ([#​45961](BerriAI/litellm#45961)) *** Backport [#​50568](BerriAI/litellm#50568) · Backport [#​50605](BerriAI/litellm#50605) · Backport [#​50693](BerriAI/litellm#50693) · [Full changelog](BerriAI/litellm@v1.108.3...v1.108.4) ### [`v1.108.3`](https://github.com/BerriAI/litellm/releases/tag/v1.108.3): 1.108.3 (LTS) [Compare Source](BerriAI/litellm@v1.108.2...v1.108.3) > \[!TIP] > The `lts` image tag always points to the latest LTS release. Pull `ghcr.io/berriai/litellm:lts` to stay on the newest LTS patch #### Verify this release ```bash cosign verify \ --key https://raw.githubusercontent.com/BerriAI/litellm/e82a3c646908ba0a6ee0beddc4310d7a6cac4065/cosign.pub \ ghcr.io/berriai/litellm:v1.108.3 ``` Same command for `litellm-database`, `litellm-non_root` and the `docker.io/litellm/*` images #### What's new in 1.108.3 (LTS) 11 PRs. 3 fixed. No action needed to upgrade ##### Changes - **AWS Bedrock:** Fixed every request failing on a Bedrock deployment with `api_base: ""`, which answered 500 or 400 ([#​50449](BerriAI/litellm#50449)) - **MCP:** Fixed tool results over 1 MiB failing with `SSE stream ended without a response`, broken since v1.103.0 ([#​47034](BerriAI/litellm#47034)) - **Guardrails:** Fixed model-level `post_call` guardrails checking each response twice and calling the moderation provider twice ([#​50463](BerriAI/litellm#50463)) *** Backport [#​50484](BerriAI/litellm#50484) · Backport [#​50487](BerriAI/litellm#50487) · [Full changelog](BerriAI/litellm@v1.108.2...v1.108.3) </details> --- ### Configuration 📅 **Schedule**: (in timezone America/New_York) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMjIuNSIsInVwZGF0ZWRJblZlciI6IjQ0LjIyMi41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZS9jb250YWluZXIiLCJ0eXBlL3BhdGNoIl19--> Reviewed-on: https://git.greyrock.io/todd/home-ops/pulls/715
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Handwritten 1-3 sentence description
backports an adjusted 47429 into LTS 108
Details
TLDR
Problem this solves:
lts/1.108.xfail on helpers only main hasHow it solves it:
tests/integration/_support/client.pyGateway.database_urlandGateway.rows()from test(integration): give each owned proxy a private database and Redis by default #47213name=keyword onScenario.modelfrom fix(caching): read the cache key's model group from the router's metadata for the call #48917Intentional product change: on /bedrock/model/{name}/converse, converse-stream, invoke and invoke-with-response-stream, a deployment's guardrailConfig now reaches Bedrock and replaces any guardrail the caller sent. Callers lose the ability to swap in their own guardrail on a guarded deployment
User Flow
Before: a developer can skip a deployment's Bedrock guardrail by calling it through the pass-through route
guardrailConfigset, and /v1/chat/completions on it is blocked by that guardrailAfter: the same pass-through call runs under the deployment's guardrail
X-Amzn-Bedrock-Guardrail*headers for Invoke, and blocks the requestPre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
uv run pytest tests/unit/<your_test_file>.py -v. Leave the suites (make test-unit-*,make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or moreAdaptation notes
#49967's import hunk conflicted because the line keeps that test's local imports in a different order. It resolves to the line's order with
_acknowledge_notifications_after_dispatchadded, and the helper already exists in the line'stests/integration/_support/mcp.py. Theclient.pyhunks are applied by hand. Main'sGatewayalso has aworkersfield from a later change, and that field is left out because nothing on the line reads it. Owned proxies on the line share the session database, sodatabase_url=Nonemakesrows()read the same database the proxy writes#47429 sits on top of #47040 on main, and the line has neither the request metadata header nor
_bedrock_endpoint_action. The signer here derives the action from the last path segment inline and merges only the guardrail headers throughmerge_bedrock_invoke_headers. The wire integration test and thepassthrough/main.pyhunk are identical to main. The unit tests drop the request metadata assertions and the identity argument that only #47040 needs, and add a trailing-slash converse case.bedrock_invoke_guardrail_headersis already public on the line, so main's rename is not neededd06f5a5 was cherry-picked from #50601's branch commit 90f7ab6 before the PR merged. Its diff is identical to the merged commit 1d06a1c on main
Screenshots / Proof of Fix
E2E exception for the test-only part. The proof is the affected integration tests themselves, which each start a real proxy against a real Postgres, with Bedrock answered by the harness's scripted fake. Both sides ran in the same local env,
tests/integration/run.py <group> --workers 2from this worktree with its own Python 3.12 venv, a throwaway Postgres and no licenseLauncher (same for every run)
Groups and node ids per case:
accounting tests/integration/spend/test_failing_request_stored_snapshot.pyextensions "tests/integration/observability/test_guardrail_effects.py::test_client_disconnect_during_the_body_upload_runs_no_endpoint_and_writes_no_spend_row"providers tests/integration/providers/test_bedrock_native_guardrail_trace_spend.py tests/integration/providers/test_bedrock_passthrough_guardrail_config_wire.pymcp "tests/integration/mcp/test_mcp_transports.py::test_sdk_progress_and_cancellation_reach_upstream_without_losing_session", run 5 timesBefore (b7d579f)
Stored snapshot after retries and fallback
1 failed,KeyError: 'x-litellm-call-id', the same failure as GHA run 42404569916Client disconnect during body upload
2 failed, bothAttributeError: 'Gateway' object has no attribute 'rows'Bedrock pass-through guardrail
16 failed, allAttributeError: 'Gateway' object has no attribute 'rows'5 failed, 11 passed. The 5 are the pass-through cases and fail onassert 0.007 == 0.0078, because the deployment's guardrail never reached BedrockMCP progress and cancellation
6 passedeach time. The flake did not reproduce locally, and it failed once in CI on attempt 1 of run 42404569916Together reasoning replay (live Together, Buildkite litellm-e2e build 833 at 52f49b8)
test_replayed_reasoning_content_reaches_togetherfailed with a 400 from Together,"Endpoint has no deployments configured for routing", codeendpoint_not_configuredAfter (4fb2f02, tip d06f5a5)
The integration cases ran at 4fb2f02. The tip only adds the Together e2e repin on top, which none of those integration tests import
Stored snapshot after retries and fallback
1 passedClient disconnect during body upload
2 passedBedrock pass-through guardrail
36 passed, 2 skipped. The 2 skips are the file's ownpytest.skipfor the caller-header case on invoke, which main skips the same wayMCP progress and cancellation
6 passedeach timeTogether reasoning replay (live Together, Buildkite litellm-e2e-pr build 2199)
llm_translation/test_together_ai_e2e.pyagainst the line with the repin applied14 passed. That run's commit changed only the model constant, and d06f5a5 adds the same constant change plus the matching docstring wordingType
🐛 Bug Fix
✅ Test
Caveats (if any)
Severe
Low
Final Attestation