From 05308fa7b0317eafe1c92fc6d85b524dbc6d49be Mon Sep 17 00:00:00 2001 From: narmstrong-berry Date: Sat, 31 Oct 2026 04:45:33 +0000 Subject: [PATCH] fix(router): leave _tag_known_to_group as it was; its swallowed lookup already answered False --- litellm/router_strategy/tag_based_routing.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/litellm/router_strategy/tag_based_routing.py b/litellm/router_strategy/tag_based_routing.py index 175a1aa4e27..f2aafa5b7df 100644 --- a/litellm/router_strategy/tag_based_routing.py +++ b/litellm/router_strategy/tag_based_routing.py @@ -458,15 +458,13 @@ def _tags_that_route(request_tags: Sequence[str], metadata: object, routing_pref def _tag_known_to_group( ctx: "RoutingContext", - model: str | None, + model: str, positive_tags: Sequence[str], routing_confirmed: frozenset[str], ) -> bool: tag_set: Final = frozenset(positive_tags) if tag_set & routing_confirmed: return True - if model is None: - return False try: all_deployments: Final = ctx.registry().deployments(model, source="all") except Exception: # noqa: BLE001 # fail safe toward "unrecognized" so lookup errors preserve the existing silent-fallback behavior