BerriAI/litellm · error · HTTPException
Team tpm_limit ({data.tpm_limit}) exceeds organization's tpm
Error message
Team tpm_limit ({data.tpm_limit}) exceeds organization's tpm_limit ({org_table.litellm_budget_table.tpm_limit}). Organization: {org_table.organization_id} What it means
Direct TPM comparison: the team's requested tpm_limit alone exceeds the organization's tpm_limit (independent of sibling allocation), so the org limits validator raises 400 naming both values and the org id.
Source
Thrown at litellm/proxy/management_endpoints/team_endpoints.py:973
pass
else:
for m in data.models:
if m not in org_table.models:
raise HTTPException(
status_code=400,
detail={
"error": f"Model '{m}' not in organization's allowed models. Organization allowed models={org_table.models}. Organization: {org_table.organization_id}"
},
)
# Validate team TPM/RPM against organization's TPM/RPM limits (direct comparison)
if (
data.tpm_limit is not None
and org_table.litellm_budget_table is not None
and org_table.litellm_budget_table.tpm_limit is not None
and data.tpm_limit > org_table.litellm_budget_table.tpm_limit
):
raise HTTPException(
status_code=400,
detail={
"error": f"Team tpm_limit ({data.tpm_limit}) exceeds organization's tpm_limit ({org_table.litellm_budget_table.tpm_limit}). Organization: {org_table.organization_id}"
},
)
if (
data.rpm_limit is not None
and org_table.litellm_budget_table is not None
and org_table.litellm_budget_table.rpm_limit is not None
and data.rpm_limit > org_table.litellm_budget_table.rpm_limit
):
raise HTTPException(
status_code=400,
detail={
"error": f"Team rpm_limit ({data.rpm_limit}) exceeds organization's rpm_limit ({org_table.litellm_budget_table.rpm_limit}). Organization: {org_table.organization_id}"
},
)View on GitHub (pinned to 77b7c6c40c)
Solutions
- Set the team tpm_limit at or below the organization's tpm_limit.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at litellm/proxy/management_endpoints/team_endpoints.py:973 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of BerriAI/litellm@77b7c6c40c (2026-08-18).
Data as JSON: /api/errors/62870a2ba3e93d9a.
Report an issue: GitHub.