Skip to content

fix(proxy): backport #44243 and #44508 to stable/1.105.x for v1.105.1 - #46313

Merged
klu-berri merged 3 commits into
stable/1.105.xfrom
litellm_backport_44243_44508_stable_1_105_x
Oct 13, 2026
Merged

klu-berri merged 3 commits into
stable/1.105.xfrom
litellm_backport_44243_44508_stable_1_105_x

Conversation

@klu-berri

Copy link
Copy Markdown
Contributor

TLDR

Problem this solves:

  • v1.105.0 upserts the daily model usage rollup once per request
  • At high RPS on one model, that row lock starves the Prisma pool and drops SpendLogs
  • On the chat to Responses bridge, large non-streaming requests are logged twice

How it solves it:

Included PRs:

stable/1.105.x is new and was cut from the v1.105.0 commit 80b9556dd3. The added and removed lines in both picks match main exactly. #44508 conflicted only in surrounding lines, since main renamed has_run_logging and the test file has newer neighbor tests there

Affected release

Regression in v1.105.0. Both bugs ship in v1.105.0, and both fixes first appear in v1.106.0-dev.1

Linear ticket

Resolves LIT-9558

Pre-Submission checklist

  • I have added meaningful tests
  • The handful of test files covering my change pass locally, e.g. uv run pytest tests/unit/<your_test_file>.py -v
  • My PR passes all required CI/CD checks (e.g., lint, schema.d.ts sync check, etc.)
  • My PR's scope is as isolated as possible; it only solves 1 specific problem

Screenshots / Proof of Fix

The six unit test files the picks touch pass with 895 passed on the backport tree. On stable/1.105.x before the picks they pass with 885. The integration test tests/integration/spend/test_responses_bridge_spend_once.py from #44508 passes with 1 passed, run against a local proxy, Postgres, Redis and a scripted upstream

Gauntlet-mini: SURVIVED, 5/5 lenses, 0 confirmed, run https://app.notion.com/p/3f843b8acdab818b9772c88d94a908db, reviewed 1c183a5980, bump 5ad0bf1165 on top. One finding about calling claim_async_success_log() through LiteLLMLoggingObject was rejected after checking the type alias and the method definition

The live proof for each fix is in its original PR, #44243 and #44508

Type

🐛 Bug Fix

Caveats (if any)

Low

  • grype flags mlflow 3.15.0 (High) and diskcache 5.6.3 (Medium) on this line and on main
    • Neither one has a fixed version, so the lock wasn't bumped
  • Releasing v1.105.1 still needs a release owner to say go on stage.yml and release.yml

Link to Devin session: https://app.devin.ai/sessions/fa2528c4c88f40d48385e29e1136a239
Open in Devin Desktop: https://app.devin.ai/desktop/session/fa2528c4c88f40d48385e29e1136a239?variant=devin
Requested by: @kerrylu-berri

ishaan-berri and others added 3 commits October 13, 2026 22:31
…request (#44243)

Backport of #44243 to stable/1.105.x.

Cherry-picked from a206882 (origin/main).

(cherry picked from commit a206882)
…chat to Responses bridge (#44508)

Backport of #44508 to stable/1.105.x.

Cherry-picked from 157d96d (origin/main).

(cherry picked from commit 157d96d)
@klu-berri
klu-berri requested a review from a team October 13, 2026 22:46
@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@CLAassistant

CLAassistant commented Oct 13, 2026 •

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ hektorjg
❌ devin-ai-integration[bot]
You have signed the CLA already but the status is still pending? Let us recheck it.

@klu-berri
klu-berri merged commit d665dc1 into stable/1.105.x Oct 13, 2026
9 of 11 checks passed
@klu-berri
klu-berri deleted the litellm_backport_44243_44508_stable_1_105_x branch October 13, 2026 22:48
rogerrum pushed a commit to rogerrum/k8s-gitops that referenced this pull request Oct 22, 2026
…105.1 ) (#3656)

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.105.0` → `v1.105.1` |

---

> ⚠️ **Warning**
>
> Some dependencies could not be looked up. Check the [Dependency Dashboard](issues/3566) for more information.

---

### Release Notes

<details>
<summary>BerriAI/litellm (ghcr.io/berriai/litellm)</summary>

### [`v1.105.1`](https://github.com/BerriAI/litellm/releases/tag/v1.105.1)

[Compare Source](BerriAI/litellm@v1.105.0...v1.105.1)

#### Verify Docker Image Signature

All LiteLLM Docker images are signed with [cosign](https://docs.sigstore.dev/cosign/overview/). Every release is signed with the same key introduced in [commit `0112e53`](BerriAI/litellm@0112e53).

**Verify using the pinned commit hash (recommended):**

A commit hash is cryptographically immutable, so this is the strongest way to ensure you are using the original signing key:

```bash
cosign verify \
  --key https://raw.githubusercontent.com/BerriAI/litellm/0112e53046018d726492c814b3644b7d376029d0/cosign.pub \
  ghcr.io/berriai/litellm:v1.105.1
```

**Verify using the release tag (convenience):**

Tags are protected in this repository and resolve to the same key. This option is easier to read but relies on tag protection rules:

```bash
cosign verify \
  --key https://raw.githubusercontent.com/BerriAI/litellm/v1.105.1/cosign.pub \
  ghcr.io/berriai/litellm:v1.105.1
```

Expected output:

```
The following checks were performed on each of these signatures:
  - The cosign claims were validated
  - The signatures were verified against the specified public key
```

***

#### What's Changed

- fix(proxy): backport [#&#8203;44243](BerriAI/litellm#44243) and [#&#8203;44508](BerriAI/litellm#44508) to stable/1.105.x for v1.105.1 by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;46313](BerriAI/litellm#46313)

**Full Changelog**: <BerriAI/litellm@v1.105.0...v1.105.1>

</details>

---

### Configuration

📅 **Schedule**: (in timezone America/Chicago)

- 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:eyJjcmVhdGVkSW5WZXIiOiI0NC4xNTEuMiIsInVwZGF0ZWRJblZlciI6IjQ0LjE1MS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZS9jb250YWluZXIiLCJ0eXBlL3BhdGNoIl19-->

Reviewed-on: https://git.rsr.net/roger/k8s-gitops/pulls/3656

This branch had an error being deployed

1 failed deployment
e2e-changed — 5ad0bf11 Deployed Oct 13, 2026 by klu-berri via oauth #4838
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.

4 participants