mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +00:00
fix: skip personal budget check in MaxBudgetLimiter for team-key requests
This commit is contained in:
parent
7656e26331
commit
c2b7c4bfcd
1 changed files with 5 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue