diff --git a/litellm/proxy/_new_secret_config.yaml b/litellm/proxy/_new_secret_config.yaml index 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/ 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 file diff --git a/litellm/proxy/auth/auth_checks.py b/litellm/proxy/auth/auth_checks.py index 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 model if ( _model is not None and 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 proxy pass # check if the team model is an access_group