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 typos in auth error messages for blocked teams and keys
yuneng-jiang9aab3eddb3dd
diff --git a/litellm/proxy/auth/auth_checks.py b/litellm/proxy/auth/auth_checks.pyindex db794c5ac3d..f5d6bb25bb9 100644--- a/litellm/proxy/auth/auth_checks.py+++ b/litellm/proxy/auth/auth_checks.py@@ -388,7 +388,7 @@ async def common_checks( # noqa: PLR0915# 1. If team is blockedif team_object is not None and team_object.blocked is True:raise Exception(- f"Team={team_object.team_id} is blocked. Update via `/team/unblock` if your admin."+ f"Team={team_object.team_id} is blocked. Update via `/team/unblock` if you're an admin.")# 2. If team can call modeldiff --git a/litellm/proxy/auth/user_api_key_auth.py b/litellm/proxy/auth/user_api_key_auth.pyindex c992cfb53e8..177245143b2 100644--- a/litellm/proxy/auth/user_api_key_auth.py+++ b/litellm/proxy/auth/user_api_key_auth.py@@ -1145,7 +1145,7 @@ async def _user_api_key_auth_builder( # noqa: PLR0915## base case ## key is disabledif valid_token.blocked is True:raise Exception(- "Key is blocked. Update via `/key/unblock` if you're admin."+ "Key is blocked. Update via `/key/unblock` if you're an admin.")config = valid_token.config