{"record":{"id":"01e2d5381d8334d5","repo":"BerriAI/litellm","slug":"team-rpm-limit-data-rpm-limit-exceeds-organiza","errorCode":null,"errorMessage":"Team rpm_limit ({data.rpm_limit}) exceeds organization's rpm_limit ({org_table.litellm_budget_table.rpm_limit}). Organization: {org_table.organization_id}","messagePattern":"Team rpm_limit \\((.+?)\\) exceeds organization's rpm_limit \\((.+?)\\)\\. Organization: (.+?)","errorType":"http","errorClass":"HTTPException","httpStatus":400,"severity":"error","filePath":"litellm/proxy/management_endpoints/team_endpoints.py","lineNumber":986,"sourceCode":"        data.tpm_limit is not None\n        and org_table.litellm_budget_table is not None\n        and org_table.litellm_budget_table.tpm_limit is not None\n        and data.tpm_limit > org_table.litellm_budget_table.tpm_limit\n    ):\n        raise HTTPException(\n            status_code=400,\n            detail={\n                \"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}\"\n            },\n        )\n\n    if (\n        data.rpm_limit is not None\n        and org_table.litellm_budget_table is not None\n        and org_table.litellm_budget_table.rpm_limit is not None\n        and data.rpm_limit > org_table.litellm_budget_table.rpm_limit\n    ):\n        raise HTTPException(\n            status_code=400,\n            detail={\n                \"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}\"\n            },\n        )\n\n    # Check guaranteed throughput limits (only if applicable)\n    rpm_limit_type: Final = getattr(data, \"rpm_limit_type\", None) or (\n        data.metadata.get(\"rpm_limit_type\", None) if data.metadata else None\n    )\n    tpm_limit_type: Final = getattr(data, \"tpm_limit_type\", None) or (\n        data.metadata.get(\"tpm_limit_type\", None) if data.metadata else None\n    )\n\n    if tpm_limit_type != \"guaranteed_throughput\" and rpm_limit_type != \"guaranteed_throughput\":\n        return\n    # get all organization teams\n    # calculate allocated tpm/rpm limit","sourceCodeStart":968,"sourceCodeEnd":1004,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/management_endpoints/team_endpoints.py#L968-L1004","documentation":"Hierarchical budget validation in the new-team endpoint (/team/new). The requested team's rpm_limit is larger than the rpm_limit set on the parent organization's litellm_budget_table, which would violate LiteLLM's org-to-team limit containment. Fires only when the parent org has an rpm_limit configured and the new team exceeds it. Lower the team rpm_limit or raise the organization's limit first.","triggerScenarios":"Thrown at litellm/proxy/management_endpoints/team_endpoints.py:986 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set the team rpm_limit at or below the organization's rpm_limit."],"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"}