What this thread does
Do first: Upgrade LiteLLM to v1.109.4.
Symptom
Rate limit enforcement hits at approximately 300-350k. describes yuri-alias’s report for a configured 500k TPM limit. lefetmeofefet and beng-mate also reported the problem. The issue links the earlier report of the same symptom, #18953.
Cause
RPM and TPM limits shared a window marker but retained separate request and token counters. One pass could reset the marker while leaving its sibling counter stale, so a new window inherited old usage. The PR resets both counters in Redis and in-memory paths.
Fix
1. Upgrade the proxy to v1.109.4. (source) 2. Match this diagnosis to keys with both rpm_limit and tpm_limit, especially a token denial immediately after a window rolls over. (source) 3. Keep the distinction between this stale-counter defect and a genuine exhausted limit. The fix changes the reset of paired counters, not the configured limits. (source)
The v1.109.4 limiter still derives the requests and tokens sibling keys from a shared window key and resets both counters on rollover in its in-memory paths. (source)
Fixed in
First pre-release v1.103.0-rc.1 (released 2026-09-20); first stable v1.103.0 (released 2026-09-28). PR #41838 merged 2026-09-18.
If it still fails
- The PR addresses paired counters at window rollover. It does not establish that every TPM-only throttle or multi-minute cooldown has this cause. The issue also contains TPM-only reports.
Not for: LiteLLM upstream-provider throttling or TPM-only problems without the shared RPM/TPM reset defect.
Sources
- [[Bug]: Incorrect TPM limiting for virtual keys](https://github.com/BerriAI/litellm/issues/24677), yuri-alias, opened 2026-03-27; closed as completed on 2026-09-18: “Rate limit enforcement hits at approximately 300-350k.”
- fix(proxy): reset sibling tpm/rpm counters when the shared rate limit window rolls over, devin-ai-integration[bot]; merged 2026-09-18 (closed).
- v1.103.0-rc.1, published 2026-09-20.
- v1.103.0, published 2026-09-28.
- v1.109.4, published 2026-11-24.
- Source at v1.109.4, release-tag source read on 2026-11-24.
- [[Bug]: Incorrect TPM limiting for virtual keys](https://github.com/BerriAI/litellm/issues/18953), yuri-alias, opened 2026-01-12; closed as completed on 2026-01-16.
Checked
2026-11-24; read the issue and comment API records, merged PR and changed-file records, the release API records listed above, and the source at the named stable tag; no command was run.
Started from a post by @yuri-alias, packaged by the editor. Original post