mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-01 07:03:02 +00:00
fix(router): leave _tag_known_to_group as it was; its swallowed lookup already answered False
This commit is contained in:
parent
5ec3c1e1cc
commit
05308fa7b0
1 changed files with 1 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue