litellm/tests/test_litellm/proxy/management_endpoints
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
..
scim fix: use fastuuid helper (#14903) 2025-09-25 15:47:01 -07:00
test_budget_endpoints.py [Bug Fix] Create/Update team member api 500 errror (#10479) 2025-06-03 15:57:33 -07:00
test_callback_management_endpoints.py fix test 2025-07-03 15:37:10 -07:00
test_common_daily_activity.py Litellm fix GitHub action testing (#11163) 2025-05-26 14:41:42 -07:00
test_cost_tracking_settings.py [Feat] UI - Allow setting Provider Discounts on UI (#15550) 2025-10-14 20:08:18 -07:00
test_customer_budget.py test(customer): add unit tests for customer budget update functionality 2025-07-30 17:01:18 +00:00
test_customer_endpoints.py Litellm fix GitHub action testing (#11163) 2025-05-26 14:41:42 -07:00
test_delete_callbacks_endpoint.py Feat/add delete callback (#11654) 2025-06-20 13:50:37 -07:00
test_entraid_app_roles.py test: reduce EntraID app roles tests to essential scenarios 2025-10-15 18:15:04 -07:00
test_internal_user_endpoints.py fix(team_endpoints.py): ensure user id correctly added when new team … (#12719) 2025-07-17 22:31:44 -07:00
test_key_management_endpoints.py Org level tpm/rpm limits + Team tpm/rpm validation when assigned to org (#15549) 2025-10-25 13:40:29 -07:00
test_mcp_management_endpoints.py [Feature]: Include server_name in /v1/mcp/server/health endpoint response (#15431) 2025-10-10 17:37:53 -07:00
test_model_management_endpoints.py Fix: Make PATCH /model/{model_id}/update handle team_id consistently with POST /model/new (#15297) 2025-10-07 14:04:08 -07:00
test_organization_endpoints.py fix: use fastuuid helper (#14903) 2025-09-25 15:47:01 -07:00
test_tag_management_endpoints.py test tag mgmt 2025-10-11 08:48:37 -07:00
test_team_endpoints.py test mapped tests MCP 2025-10-08 18:34:30 -07:00
test_ui_sso.py Merge branch 'main' into litellm_sso_add_pkce 2025-10-16 15:48:01 -07:00