BerriAI/litellm · error · HTTPException
team_member_budget must be a non-negative finite number. Rec
Error message
team_member_budget must be a non-negative finite number. Received: {data.team_member_budget} What it means
Same negative/NaN budget validation chain in /team/update, applied to the per-member budget field. team_member_budget controls each team member's spending cap; a non-finite or negative value would corrupt member-level budget enforcement, so it is rejected with 400 before the update is persisted. Provide a finite, non-negative team_member_budget.
Source
Thrown at litellm/proxy/management_endpoints/team_endpoints.py:1271
general_settings,
litellm_proxy_admin_name,
prisma_client,
user_api_key_cache,
)
if prisma_client is None:
raise HTTPException(status_code=500, detail={"error": "No db connected"})
# Validate budget values are not negative
if data.max_budget is not None and (not math.isfinite(data.max_budget) or data.max_budget < 0):
raise HTTPException(
status_code=400,
detail={"error": f"max_budget must be a non-negative finite number. Received: {data.max_budget}"},
)
if data.team_member_budget is not None and (
not math.isfinite(data.team_member_budget) or data.team_member_budget < 0
):
raise HTTPException(
status_code=400,
detail={
"error": f"team_member_budget must be a non-negative finite number. Received: {data.team_member_budget}"
},
)
if data.soft_budget is not None and (not math.isfinite(data.soft_budget) or data.soft_budget < 0):
raise HTTPException(
status_code=400,
detail={"error": f"soft_budget must be a non-negative finite number. Received: {data.soft_budget}"},
)
validate_budget_duration(data.budget_duration)
validate_budget_duration(data.team_member_budget_duration)
if data.soft_budget is not None:
if data.max_budget is not None:
# If max_budget is set, soft_budget must be strictly lower than max_budget
if data.soft_budget >= data.max_budget:View on GitHub (pinned to 77b7c6c40c)
Solutions
- Set team_member_budget to a non-negative finite number.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at litellm/proxy/management_endpoints/team_endpoints.py:1271 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/74b6bd0a932b92c1.
Report an issue: GitHub.