mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-20 00:11:50 +00:00
Teams can now carry per-model max budgets that every key on the team
inherits by default. The LiteLLM_TeamTable.model_max_budget column already
existed but was inert; /team/new and /team/update now accept and validate
it, auth hydrates it onto UserAPIKeyAuth.team_model_max_budget from the
cached team object, and a new _team_model_max_budget_check in common_checks
enforces it via is_team_within_model_budget on the shared limiter. Spend is
tracked in a team-scoped counter (team_model_spend:{team_id}:{model}:{duration})
shared by all keys on the team. A key with its own model_max_budget entry
covering the request model takes precedence: the team counter is neither
consulted nor incremented for that key and model.
|
||
|---|---|---|
| .. | ||
| litellm-dashboard | ||
| Dockerfile | ||
| nginx.conf | ||