From c2b7c4bfcd25626d2042ae7595ebe15f0335b5cd Mon Sep 17 00:00:00 2001 From: Yuneng Jiang Date: Tue, 21 Apr 2026 10:38:08 -0700 Subject: [PATCH] fix: skip personal budget check in MaxBudgetLimiter for team-key requests --- litellm/proxy/hooks/max_budget_limiter.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/litellm/proxy/hooks/max_budget_limiter.py b/litellm/proxy/hooks/max_budget_limiter.py index 4df28acc54..7789fa6a34 100644 --- a/litellm/proxy/hooks/max_budget_limiter.py +++ b/litellm/proxy/hooks/max_budget_limiter.py @@ -27,6 +27,11 @@ class _PROXY_MaxBudgetLimiter(CustomLogger): if max_budget is None or user_id is None: return + # Personal budget applies only to non-team requests, matching + # the explicit team-key exemption in common_checks section 4.1. + if user_api_key_dict.team_id is not None: + return + from litellm.proxy.proxy_server import get_current_spend curr_spend = await get_current_spend(