Skip to content

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]

fix lint problem (#24932)

David Chenc987bdba84cf
diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py
index 6c977a25696..d83e3500ebe 100644
--- a/litellm/proxy/proxy_server.py
+++ b/litellm/proxy/proxy_server.py
@@ -9314,7 +9314,7 @@ async def _add_access_group_models_to_team_models(
# Second pass: resolve deployments for each eligible team
for team_object in eligible_teams:
model_names: Set[str] = set()
- for ag_id in team_object.access_group_ids:
+ for ag_id in team_object.access_group_ids or [] :
model_names.update(ag_model_map.get(ag_id, []))
for model_name in model_names: