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
Merge pull request #41308 from BerriAI/litellm_resolve_model_group_alias_before_auth
Yassin Kortam24153b5f290a
diff --cc tests/test_litellm/proxy/auth/test_user_api_key_auth.pyindex bd7ff62ac8b,525f19bf7b3..896acc5fcef--- a/tests/test_litellm/proxy/auth/test_user_api_key_auth.py+++ b/tests/test_litellm/proxy/auth/test_user_api_key_auth.py@@@ -32,14 -33,9 +33,15 @@@ from litellm.proxy._types importJWTRoutingOverride,)from litellm.proxy.auth.handle_jwt import JWTHandler-from litellm.proxy.auth.auth_checks import TeamNotFoundError, UserNotFoundError, get_key_object, _cache_key_object+from litellm.proxy.auth.auth_checks import (+ TeamNotFoundError,+ UserNotFoundError,+ get_key_object,+ _cache_key_object,+ jwt_key_mapping_cache_key,+)from litellm.proxy.auth.route_checks import RouteChecks+ from litellm.proxy.common_utils.http_parsing_utils import get_client_requested_modelfrom litellm.proxy.auth.user_api_key_auth import (_check_key_model_budget_with_fallback,_ensure_litellm_received_at_on_request_state,