Generate cheapest-first routing
modelfinder_generate_routingGenerate a cheapest-first routing.json with guards and a personal-data policy, plus a LiteLLM proxy config, from a results.json evaluation. Returns both without writing or deploying.
Instructions
Turn a results.json object into a cheapest-first routing.json (with guards and a personal-data policy) and a LiteLLM proxy config. Returns both; nothing is written or deployed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Explicit model order (candidate ids), overriding cost order. | |
| guards | No | Checks applied to every production reply; a failure escalates to the next model. | |
| results | Yes | The full results.json object written by eval_models.py. | |
| pii_policy | No | block: never send prompts with personal data or secrets; warn: send and report; off: no check. | warn |
| response_format | No | markdown (default) for a readable summary, json for the full machine-readable result. | markdown |
| include_unknown_cost | No | Append passing models whose price is unknown. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | ||
| notes | Yes | ||
| routing_json | Yes | ||
| litellm_config_yaml | Yes |