{"record":{"id":"74b6bd0a932b92c1","repo":"BerriAI/litellm","slug":"team-member-budget-must-be-a-non-negative-finite-n","errorCode":null,"errorMessage":"team_member_budget must be a non-negative finite number. Received: {data.team_member_budget}","messagePattern":"team_member_budget must be a non-negative finite number\\. Received: (.+?)","errorType":"http","errorClass":"HTTPException","httpStatus":400,"severity":"error","filePath":"litellm/proxy/management_endpoints/team_endpoints.py","lineNumber":1271,"sourceCode":"            general_settings,\n            litellm_proxy_admin_name,\n            prisma_client,\n            user_api_key_cache,\n        )\n\n        if prisma_client is None:\n            raise HTTPException(status_code=500, detail={\"error\": \"No db connected\"})\n\n        # Validate budget values are not negative\n        if data.max_budget is not None and (not math.isfinite(data.max_budget) or data.max_budget < 0):\n            raise HTTPException(\n                status_code=400,\n                detail={\"error\": f\"max_budget must be a non-negative finite number. Received: {data.max_budget}\"},\n            )\n        if data.team_member_budget is not None and (\n            not math.isfinite(data.team_member_budget) or data.team_member_budget < 0\n        ):\n            raise HTTPException(\n                status_code=400,\n                detail={\n                    \"error\": f\"team_member_budget must be a non-negative finite number. Received: {data.team_member_budget}\"\n                },\n            )\n        if data.soft_budget is not None and (not math.isfinite(data.soft_budget) or data.soft_budget < 0):\n            raise HTTPException(\n                status_code=400,\n                detail={\"error\": f\"soft_budget must be a non-negative finite number. Received: {data.soft_budget}\"},\n            )\n\n        validate_budget_duration(data.budget_duration)\n        validate_budget_duration(data.team_member_budget_duration)\n\n        if data.soft_budget is not None:\n            if data.max_budget is not None:\n                # If max_budget is set, soft_budget must be strictly lower than max_budget\n                if data.soft_budget >= data.max_budget:","sourceCodeStart":1253,"sourceCodeEnd":1289,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/management_endpoints/team_endpoints.py#L1253-L1289","documentation":"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.","triggerScenarios":"Thrown at litellm/proxy/management_endpoints/team_endpoints.py:1271 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set team_member_budget to a non-negative finite number."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}