Skip to content

fix(guardrails): backport #50300 to lts/1.108.x - #50463

Merged
yujonglee-berri merged 3 commits into
lts/1.108.xfrom
litellm_backport_50300_lts_1_108_x
Nov 7, 2026
Merged

yujonglee-berri merged 3 commits into
lts/1.108.xfrom
litellm_backport_50300_lts_1_108_x

Conversation

@yujonglee-berri

@yujonglee-berri yujonglee-berri commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

…he proxy and deployment layers (#50300)

Backport of #50300 to lts/1.108.x
Cherry-picked from 2b4485d (main)

Conflicts in litellm/integrations/custom_guardrail.py and litellm/proxy/utils.py came from code the
line does not have (the pydantic import, _REQUEST_FIELDS and _guardrails_listed_in in
custom_guardrail.py, the stream token-id helpers in proxy/utils.py). Kept the line's code, added the
pick's helpers and pydantic import, and defined _REQUEST_FIELDS in both files next to the line's own
module-level TypeAdapter constants
@yujonglee-berri
yujonglee-berri requested a review from a team November 6, 2026 22:50

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 2 potential issues.

1 flag not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)

Devin Review

@codecov

codecov Bot commented Nov 6, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.53731% with 5 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
litellm/integrations/custom_guardrail.py 91.66% 5 Missing ⚠️

📢 Thoughts on this report? Let us know!

… does

Widens the filelock range to <5 and adds main's two filelock constraints, matching main's pyproject.toml since #49204
@yujonglee-berri
yujonglee-berri merged commit 26852a4 into lts/1.108.x Nov 7, 2026
61 of 63 checks passed
@yujonglee-berri
yujonglee-berri deleted the litellm_backport_50300_lts_1_108_x branch November 7, 2026 01:40
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 ([#&#8203;50399](BerriAI/litellm#50399))
- **AWS Bedrock:** Changed `/bedrock` pass-through routes to enforce the model's `guardrailConfig` over any guardrail the caller sends ([#&#8203;47429](BerriAI/litellm#47429))
- **Vertex AI and Gemini:** Fixed Vertex AI Claude batches failing with 404 at create ([#&#8203;50365](BerriAI/litellm#50365))
- **Messages API:** Fixed `chatgpt/` models on `/v1/messages` dropping encrypted reasoning between turns ([#&#8203;50456](BerriAI/litellm#50456))
- **Messages API:** Fixed `/v1/messages` to OpenAI sending `background: true` upstream, which billed full runs that came back empty ([#&#8203;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 ([#&#8203;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 ([#&#8203;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 ([#&#8203;45961](BerriAI/litellm#45961))

***

Backport [#&#8203;50568](BerriAI/litellm#50568) · Backport [#&#8203;50605](BerriAI/litellm#50605) · Backport [#&#8203;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 ([#&#8203;50449](BerriAI/litellm#50449))
- **MCP:** Fixed tool results over 1 MiB failing with `SSE stream ended without a response`, broken since v1.103.0 ([#&#8203;47034](BerriAI/litellm#47034))
- **Guardrails:** Fixed model-level `post_call` guardrails checking each response twice and calling the moderation provider twice ([#&#8203;50463](BerriAI/litellm#50463))

***

Backport [#&#8203;50484](BerriAI/litellm#50484) · Backport [#&#8203;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 branch was successfully deployed

No deployments
e2e-changed — 598138fd Deployed Nov 7, 2026 by yujonglee-berri via oauth #6096
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