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]

Remove unnecessary getattr defense for Prisma-backed field

Ryan Crabbe640ea9228fac
diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py
index 4f0a25296b2..a7986e21ab2 100644
--- a/litellm/proxy/proxy_server.py
+++ b/litellm/proxy/proxy_server.py
@@ -9293,7 +9293,7 @@ async def _add_access_group_models_to_team_models(
)
)
ag_model_map: Dict[str, List[str]] = {
- row.access_group_id: getattr(row, "access_model_names", []) or []
+ row.access_group_id: row.access_model_names or []
for row in access_group_rows
}