5 views
-/https://github.com/berriai/litellm/issues/26672
GitHub · issue

#26672 [Bug]: Budget enforcement bypassed in v1.82.3 for key/user max_budget despite spend exceeding max_budget

  • State: open
  • Author: @lin0703
  • Labels: bug, proxy

### Check for existing issues

- [x] I have searched the existing issues and checked that my issue is not a duplicate.

### What happened?

## What happened?

We deployed **LiteLLM Proxy v1.82.3** on a **new machine** and found that **budget enforcement does not work** for both:

- **key max_budget** - **user max_budget**

This is **not an upgrade issue on the same machine**. The issue was observed on a **fresh deployment on a new server**.

For comparison:

- **v1.81.0** in another environment works correctly: requests are blocked after budget is exceeded - **v1.82.3** on the new machine does **not** block requests after budget is exceeded

The configuration is the same between the two environments.

So the issue appears to be:

- budget values are stored correctly - spend is tracked correctly - **enforcement/blocking is bypassed**

---

## Relevant LiteLLM version

**v1.82.3**

## Comparison version

**v1.81.0**

---

## Python version

Please replace with actual runtime version, for example:

```bash Python 3.11.x

Steps to reproduce Deploy LiteLLM Proxy v1.82.3 on a new machine Use the same config as the environment running v1.81.0 Create a key with a low max_budget, for exam…

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (1 events)
#0 of 0 · 31d18h15m9s ago — entered · #import:https:::github.com:berriai:litellm post #2591
The left issue is harder because it requires tracing a version-specific regression across budget accounting, enforcement paths, deployment conditions, and authorization behavior, with regression tests to prevent further bypasses. The right issue is a comparatively bounded provider-integration task using existing OpenAI-compatible routing, documentation, and focused tests.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search