The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
retain ui_routes enum alias for JWT config backwards compatibility
Ryan Crabbe3af7de42225e
diff --git a/litellm/proxy/_types.py b/litellm/proxy/_types.pyindex 364e49e6257..96e221a9ac0 100644--- a/litellm/proxy/_types.py+++ b/litellm/proxy/_types.py@@ -607,6 +607,32 @@ class LiteLLMRoutes(enum.Enum):])+ # Retained for backwards compatibility with JWT auth configs that reference+ # "ui_routes" in admin_allowed_routes. Not used by the proxy's own route+ # authorization — UI tokens now go through the same RBAC path as API tokens.+ ui_routes = [+ "/sso",+ "/sso/get/ui_settings",+ "/get/ui_settings",+ "/login",+ "/key/info",+ "/config",+ "/spend",+ "/model/info",+ "/v2/model/info",+ "/v2/key/info",+ "/models",+ "/v1/models",+ "/global/spend",+ "/global/spend/logs",+ "/global/spend/keys",+ "/global/spend/models",+ "/global/spend/tags",+ "/global/predict/spend/logs",+ "/global/activity",+ "/health/services",+ ] + info_routes+internal_user_routes = (["/global/activity",diff --git a/tests/proxy_unit_tests/test_jwt.py b/tests/proxy_unit_tests/test_jwt.pyindex 73f956a6147..9a8d6d37020 100644--- a/tests/proxy_unit_tests/test_jwt.py+++ b/tests/proxy_unit_tests/test_jwt.py@@ -715,7 +715,7 @@ async def aaaatest_user_token_output(assert team_result.user_id == user_id[email protected]("admin_allowed_routes", [None, ["info_routes"]])[email protected]("admin_allowed_routes", [None, ["ui_routes"]])@pytest.mark.parametrize("audience", [None, "litellm-proxy"])@pytest.mark.asyncioasync def test_allowed_routes_admin(