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
can_team_access_model
Ishaan Jaffb6d6e270b49e
diff --git a/litellm/proxy/auth/handle_jwt.py b/litellm/proxy/auth/handle_jwt.pyindex 29f4b31f9cd..248d553662b 100644--- a/litellm/proxy/auth/handle_jwt.py+++ b/litellm/proxy/auth/handle_jwt.py@@ -33,6 +33,7 @@ from litellm.proxy._types import (ScopeMapping,Span,)+from litellm.proxy.auth.auth_checks import can_team_access_modelfrom litellm.proxy.utils import PrismaClient, ProxyLoggingfrom .auth_checks import (@@ -723,8 +724,12 @@ class JWTAuthManager:team_models = team_object.modelsif isinstance(team_models, list) and (not requested_model- or requested_model in team_models- or "*" in team_models+ or can_team_access_model(+ model=requested_model,+ team_object=team_object,+ llm_router=None,+ team_model_aliases=None,+ )):is_allowed = allowed_routes_check(user_role=LitellmUserRoles.TEAM,