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]

chore(router): clarify empty access-group overlap behavior

Sameer Kankuted6be59eac51a
diff --git a/litellm/router.py b/litellm/router.py
index 2e436973e7f..9edf28df2bf 100644
--- a/litellm/router.py
+++ b/litellm/router.py
@@ -9352,6 +9352,8 @@ class Router:
allowed_access_groups = set(access_groups_for_model.keys()) & allowed_models
if not allowed_access_groups:
+ # No overlap means this request was not authorized via model access
+ # group membership for this model, so do not force group filtering.
return healthy_deployments
filtered_deployments = []