From 73f4bf47388b39d4fd1eb08bacdff28831a7d6f5 Mon Sep 17 00:00:00 2001 From: Tin Date: Wed, 2 Sep 2026 01:19:08 -0700 Subject: [PATCH] style(router): format capability prompt --- litellm/router_strategy/capability_router/prompts.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/litellm/router_strategy/capability_router/prompts.py b/litellm/router_strategy/capability_router/prompts.py index d4674ccf663..373761999e9 100644 --- a/litellm/router_strategy/capability_router/prompts.py +++ b/litellm/router_strategy/capability_router/prompts.py @@ -63,8 +63,7 @@ class ClassifierResponseSchema(TypedDict): def _candidate_card(candidate: CapabilityRouterCandidate) -> str: header: Final = f"- model={json.dumps(candidate.model)}, description={json.dumps(candidate.description)}" rules: Final = tuple( - f" rule id={json.dumps(rule_id)}, text={json.dumps(rule.rule)}" - for rule_id, rule in indexed_rules(candidate) + f" rule id={json.dumps(rule_id)}, text={json.dumps(rule.rule)}" for rule_id, rule in indexed_rules(candidate) ) return "\n".join((header, *rules))