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
[Fix] Containers API - Container API routes return 401 for non-admin users - routes missing from openai_routes (#19115)
Ishaan Jaff62187103b42a
diff --git a/litellm/proxy/_types.py b/litellm/proxy/_types.pyindex a1186f8e372..be5d0331df6 100644--- a/litellm/proxy/_types.py+++ b/litellm/proxy/_types.py@@ -360,6 +360,10 @@ class LiteLLMRoutes(enum.Enum):# OCR"/ocr","/v1/ocr",++ # containers API+ "/containers/*",+ "/v1/containers/*",]mapped_pass_through_routes = [diff --git a/tests/test_litellm/proxy/auth/test_route_checks.py b/tests/test_litellm/proxy/auth/test_route_checks.pyindex ef7f2f3c30d..04f973e9f86 100644--- a/tests/test_litellm/proxy/auth/test_route_checks.py+++ b/tests/test_litellm/proxy/auth/test_route_checks.py@@ -732,6 +732,25 @@ def test_videos_route_is_llm_api_route(route):assert RouteChecks.is_llm_api_route(route) is True+ "route",+ [+ "/containers",+ "/v1/containers",+ "/containers/container_123",+ "/v1/containers/container_123",+ "/containers/container_123/files",+ "/v1/containers/container_123/files",+ "/containers/container_123/files/file_456",+ "/v1/containers/container_123/files/file_456",+ ],+)+def test_containers_routes_are_llm_api_routes(route):+ """Test that container routes are recognized as LLM API routes"""++ assert RouteChecks.is_llm_api_route(route) is True++def test_videos_route_accessible_to_internal_users():"""Test that internal users can access the videos routes.