mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-08 22:21:35 +00:00
style(router): format capability prompt
This commit is contained in:
parent
187eacce94
commit
73f4bf4738
1 changed files with 1 additions and 2 deletions
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue