BerriAI/litellm · error · HTTPException
Cannot move team to organization. Team has max_budget {team.
Error message
Cannot move team to organization. Team has max_budget {team.max_budget} that is greater than the organization's max_budget {organization.litellm_budget_table.max_budget}. What it means
Error "Cannot move team to organization. Team has max_budget {team.max_budget} that is greater than the organization's max_budget {organization.litellm_budget_table.max_budget}." thrown in BerriAI/litellm.
Source
Thrown at litellm/proxy/management_endpoints/team_endpoints.py:1813
"error": "Cannot move team to organization. Team has access to all proxy models, but the organization does not."
},
)
else:
for model in team.models:
can_org_access_model(
model=model,
org_object=organization,
llm_router=llm_router,
)
# Check if the team's budget is less than the org's max_budget
if (
team.max_budget
and organization.litellm_budget_table
and organization.litellm_budget_table.max_budget
and team.max_budget > organization.litellm_budget_table.max_budget
):
raise HTTPException(
status_code=403,
detail={
"error": f"Cannot move team to organization. Team has max_budget {team.max_budget} that is greater than the organization's max_budget {organization.litellm_budget_table.max_budget}."
},
)
# For non-proxy-admins, require all team members to already be org members.
# This prevents a team admin from moving their team into an arbitrary org and
# thereby injecting members into that org without org admin approval.
if not is_proxy_admin:
team_members: Final = [m.user_id for m in team.members_with_roles]
org_members: Final = [m.user_id for m in organization.members] if organization.members else []
not_in_org: Final = [
m for m in team_members if m not in org_members and m != SpecialProxyStrings.default_user_id.value
]
if len(not_in_org) > 0:
raise HTTPException(
status_code=403,View on GitHub (pinned to 77b7c6c40c)
Solutions
- Lower the team's max_budget to fit within the organization's max_budget before moving.
When it happens
Trigger: Thrown at litellm/proxy/management_endpoints/team_endpoints.py:1813 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/dc820368a4785541.
Report an issue: GitHub.