litellm/litellm/proxy/auth
Krish Dholakia 6bb1d77f45
Org level tpm/rpm limits + Team tpm/rpm validation when assigned to org (#15549)
* fix(support-model-specific-tpm/rpm-limits): Allows setting rate limits by tpm/rpm for models by team

* fix(key_management_endpoints.py): enforce guaranteed throughput with key-level model tpm/rpm limits, when team-level tpm/rpm limits are set

* test: add unit testing

* feat(schema.prisma): add metadata to litellm budget table

* feat(proxy/utils.py): add org limits to user api key auth

allows org level tpm/rpm limiting to work

* feat: add org level tpm/rpm limits + inherit org id in key from team

enables org level tpm/rpm limits

* feat: validated working org tpm/rpm limits

* feat: support updating org level, model specific tpm/rpm limits

* fix: working key validation for org level tpm/rpm limits

* fix: working validation for orgs when giving tpm/rpm to teams

* fix(key_management_endpoints.py): fix tpm/rpm limits on orgs

* fix(key_management_endpoints.py): support limits

* refactor: remove duplicate var

* fix: refactor to avoid ruff errors

* fix: fix typign

* fix: fix linting error

* fix: fix testing

* fix(key_management_endpoints.py): document params
2025-10-25 13:40:29 -07:00
..
auth_checks.py Org level tpm/rpm limits + Team tpm/rpm validation when assigned to org (#15549) 2025-10-25 13:40:29 -07:00
auth_checks_organization.py build(pyproject.toml): add new dev dependencies - for type checking (#9631) 2025-03-29 11:02:13 -07:00
auth_exception_handler.py Litellm UI qa 04 12 2025 p1 (#9955) 2025-04-12 19:30:48 -07:00
auth_utils.py Org level tpm/rpm limits + Team tpm/rpm validation when assigned to org (#15549) 2025-10-25 13:40:29 -07:00
handle_jwt.py fix(ui_sso.py): initial commit, adding checking token endpoint response for allowed team ids 2025-09-19 17:02:49 -07:00
litellm_license.py fix is_team_count_over_limit 2025-06-21 14:28:05 -07:00
model_checks.py litellm/proxy: preserve model order of /v1/models and /model_group/info (#13178) 2025-08-02 08:57:38 -07:00
oauth2_check.py fix python3.8 2025-10-17 17:59:34 -07:00
oauth2_proxy_hook.py fix: fix linting error 2025-09-27 12:35:39 -07:00
public_key.pem fix update public key 2024-07-27 09:45:58 -07:00
rds_iam_token.py (code quality) run ruff rule to ban unused imports (#7313) 2024-12-19 12:33:42 -08:00
route_checks.py is_llm_api_route 2025-10-20 18:05:35 -07:00
user_api_key_auth.py Fix Token Spend is under budget for passthrough (#15805) 2025-10-22 10:55:22 -07:00