litellm/tests/test_litellm/proxy/management_endpoints
ishaan-berri 118ce3cc91
feat: add model leaderboard page (#43649)
* feat(proxy): add model leaderboard analytics

* feat: add model insights task and range constants

* feat: record task type from task tags in model usage rollup

* feat: serve 365 days of model insights by UTC date

* test: cover task tag resolution in model usage rollup

* test: update model insights range limit test to 365 days

* chore: regenerate dashboard api types for model insights

* feat: add model insights aggregation helpers

* test: cover model insights aggregation helpers

* feat: redesign model leaderboard with stacked bars, treemap and ranking

* test: update model leaderboard view test

* feat: mark model leaderboard as beta in sidebar

* chore: sync schema.prisma copies from root

* fix: only treat task: prefixed tags as model insight tasks

* feat: add metric type for model insights ranking

* fix: rank model insights by selected metric and scope detail queries to ranked deployments

* test: plain tags are not model insight tasks

* test: cover metric ranking, deployment scoping and rollup round trip

* fix: build model insights weeks and halves from the requested date range

* test: cover empty weeks and range-based change comparison

* fix: refetch by metric, show load errors and ignore stale responses

* test: cover metric refetch and error state

* feat: define model insight tasks in a JSON file

* feat: return task labels and categories from model insights

* feat: load model insight tasks from JSON

* refactor: validate rollup task tags against the JSON task list

* feat: serve the task list with model insights

* refactor: drop hardcoded task list from constants

* build: ship model insight tasks JSON in the wheel

* test: cover model insight task JSON

* refactor: take task labels and categories from the API

* test: pass task info to task tile builder

* refactor: color treemap by API-provided category

* test: include tasks in model leaderboard fixture

* fix: make daily model usage migration idempotent

* feat: bound the model insights task query size

* fix: compute task breakdown independent of the chart metric

* test: task breakdown is stable across chart metrics

* chore: regenerate lazy openapi snapshot for model insights

* chore: regenerate dashboard api types for model insights

* fix: keep previous ranking dimmed while a new metric loads

* test: cover stale metric state in model leaderboard

* refactor: drop task row cap constant

* fix: return the full task breakdown instead of a truncated one

* test: task query is not truncated

* feat: add task summary types for model insights

* feat: summarise tasks server-side on a separate model insights endpoint

* test: cover the model insights tasks endpoint

* chore: regenerate lazy openapi snapshot for model insights tasks

* chore: regenerate dashboard api types for model insights tasks

* refactor: drop client-side task aggregation

* test: remove client-side task aggregation tests

* feat: load task breakdown separately from the chart metric

* test: task breakdown is not refetched on chart metric change

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-09-28 19:40:04 -07:00
..
management_v1 fix(team): keep a forked member budget's reset window and audit bulk member budget writes 2026-09-17 15:17:00 -07:00
policy_endpoints
scim fix(proxy): evict the cached user row when SCIM or /user/delete removes a user 2026-09-21 13:51:26 -07:00
search_endpoints
usage_endpoints
jwt_key_mapping_doubles.py test(proxy): share the jwt key mapping test doubles across the deletion endpoint tests 2026-09-18 00:17:45 +00:00
test_access_group_endpoints.py feat(agents): attach access groups to agents and enforce them for models, MCP servers and agent calls 2026-09-17 19:24:14 +00:00
test_access_group_management.py test(budgets): cover management null handling 2026-09-16 21:42:55 -07:00
test_activity_tenant_scoping.py
test_auto_router_endpoints.py feat(ui): simplify auto-router setup and clarify feature limits (#42625) 2026-09-22 18:03:32 -07:00
test_budget_endpoints.py
test_cache_settings_endpoints.py
test_callback_management_endpoints.py feat(langfuse): migrate the sdk callback to langfuse v4 (#36741) 2026-09-24 23:22:56 -07:00
test_common_daily_activity.py revert: "feat(usage): search team keys beyond the top-N in the Team usage view (#42857)" (#43377) 2026-09-28 21:47:46 +00:00
test_common_utils.py fix(proxy): gate disable_global_guardrails on keys and teams to proxy admins (#42699) 2026-09-23 18:03:02 -07:00
test_compliance_endpoints.py
test_config_override_endpoints.py feat(vault): add separate login and secret namespaces for HashiCorp Vault 2026-09-17 01:41:48 +00:00
test_coordination_redis_endpoints.py test: drop two inert type: ignore comments 2026-09-19 14:22:19 -07:00
test_cost_estimate_endpoint.py
test_cost_tracking_settings.py Merge pull request #41832 from BerriAI/litellm_lit_8111_cache_read_missing_rate 2026-09-18 10:56:25 -07:00
test_credential_migration.py
test_customer_budget.py
test_customer_endpoints.py test(proxy): include temp budget fields in customer budget table fixture 2026-09-17 18:10:00 +00:00
test_delete_callbacks_endpoint.py
test_delete_verification_tokens_failed.py
test_encryption_endpoints.py
test_entraid_app_roles.py
test_gateway_request_endpoints.py
test_id_jag_assertion_capture.py
test_internal_user_endpoints.py revert: "feat(usage): search team keys beyond the top-N in the Team usage view (#42857)" (#43377) 2026-09-28 21:47:46 +00:00
test_key_management_endpoints.py feat(proxy): let team admins update member key budgets when enabled (#42555) 2026-09-25 01:54:52 +00:00
test_mcp_connector_import.py
test_mcp_management_endpoints.py feat(mcp): scan and pin upstream tool descriptions (#43283) 2026-09-28 18:38:49 -07:00
test_model_insights_endpoints.py feat: add model leaderboard page (#43649) 2026-09-28 19:40:04 -07:00
test_model_management_endpoints.py fix(proxy): validate model credential name only when it changes (#42701) 2026-09-23 07:34:32 -07:00
test_org_admin_team_access.py
test_organization_endpoints.py Merge pull request #41620 from BerriAI/litellm_team_member_temp_budget_increase 2026-09-18 11:38:34 -07:00
test_password_endpoints.py test: deflake fuzzy picker, breached-password HIBP, and MCP stdio timeout tests (rolling deflake 2026-09-22) (#42125) 2026-09-23 08:44:59 -07:00
test_policy_endpoints.py
test_project_org_authz.py feat(proxy): let team admins manage projects via team_admin_editable_team_fields 2026-09-19 01:02:50 +00:00
test_prompt_cache_prediction.py Revert "test: keep prompt cache prediction logic tests and drop only their price pins" 2026-09-18 00:40:38 +00:00
test_prompt_caching_requests.py feat(ui): show prompt caching requests and net savings 2026-09-19 18:27:38 -07:00
test_ptu_model_settings.py
test_router_settings_endpoints.py feat(router): add group-scoped priority routing strategy (#42378) 2026-09-22 13:09:38 -07:00
test_saml_sso.py
test_session_endpoints.py fix(proxy): revoke UI session tokens on logout and password change (#42463) 2026-09-23 10:31:38 +02:00
test_tag_management_endpoints.py test(budgets): avoid mutable fixture state 2026-09-16 22:06:31 -07:00
test_team_admin_field_permissions.py feat(proxy): let team admins update member key budgets when enabled (#42555) 2026-09-25 01:54:52 +00:00
test_team_callback_endpoints.py feat(arize): per-team success and error sampling rates for the Arize AX callback (#42383) 2026-09-22 11:21:40 -05:00
test_team_default_params.py refactor(proxy): make the config file win over the database 2026-09-18 01:28:21 -07:00
test_team_endpoints.py revert: "feat(usage): search team keys beyond the top-N in the Team usage view (#42857)" (#43377) 2026-09-28 21:47:46 +00:00
test_team_model_alias_merge.py
test_tool_management_endpoints.py
test_ui_sso.py fix(sso): gate /sso/debug routes behind ENABLE_SSO_DEBUG, off by default (#43150) 2026-09-25 20:58:17 +02:00
test_workflow_management_endpoints.py