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
feat(auth_checks.py): allow team to call all models, when explicitly set via /*
Krrish Dholakiad7b525f391b7
diff --git a/litellm/proxy/_new_secret_config.yaml b/litellm/proxy/_new_secret_config.yamlindex 66530c7db06..96a0242a8e4 100644--- a/litellm/proxy/_new_secret_config.yaml+++ b/litellm/proxy/_new_secret_config.yaml@@ -2,12 +2,3 @@ model_list:- model_name: "*"litellm_params:model: "*"--litellm_settings:- success_callback: ["s3"]- cache: true- s3_callback_params:- s3_bucket_name: mytestbucketlitellm # AWS Bucket Name for S3- s3_region_name: us-west-2 # AWS Region Name for S3- s3_aws_access_key_id: os.environ/AWS_ACCESS_KEY_ID # us os.environ/<variable name> to pass environment variables. This is AWS Access Key ID for S3- s3_aws_secret_access_key: os.environ/AWS_SECRET_ACCESS_KEY # AWS Secret Access Key for S3\ No newline at end of filediff --git a/litellm/proxy/auth/auth_checks.py b/litellm/proxy/auth/auth_checks.pyindex cf5065c2e1d..0f1452651ec 100644--- a/litellm/proxy/auth/auth_checks.py+++ b/litellm/proxy/auth/auth_checks.py@@ -66,7 +66,7 @@ def common_checks(raise Exception(f"Team={team_object.team_id} is blocked. Update via `/team/unblock` if your admin.")- # 2. If user can call model+ # 2. If team can call modelif (_model is not Noneand team_object is not None@@ -74,7 +74,11 @@ def common_checks(and _model not in team_object.models):# this means the team has access to all models on the proxy- if "all-proxy-models" in team_object.models:+ if (+ "all-proxy-models" in team_object.models+ or "*" in team_object.models+ or "openai/*" in team_object.models+ ):# this means the team has access to all models on the proxypass# check if the team model is an access_group