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
patch - auth checks for model access (#8924)
Ishaan Jaff550823937584
diff --git a/litellm/proxy/auth/model_checks.py b/litellm/proxy/auth/model_checks.pyindex 102b6f789a2..041d23bf0b3 100644--- a/litellm/proxy/auth/model_checks.py+++ b/litellm/proxy/auth/model_checks.py@@ -1,5 +1,6 @@# What is this?## Common checks for /v1/models and `/model/info`+import copyfrom typing import Dict, List, Optional, Setimport litellm@@ -30,7 +31,7 @@ def get_provider_models(provider: str) -> Optional[List[str]]:return get_valid_models()if provider in litellm.models_by_provider:- provider_models = litellm.models_by_provider[provider]+ provider_models = copy.deepcopy(litellm.models_by_provider[provider])for idx, _model in enumerate(provider_models):if provider not in _model:provider_models[idx] = f"{provider}/{_model}"