mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-26 09:02:11 +03:00
⭐5 — Fix(#10954): `combo create` via CLI sempre criava combos vazios (models: [] hardcoded, sem flag). Adiciona --models/--model com parser próprio (CLI .mjs sem alias @/). TDD RED→GREEN, 22/22 testes verdes. UNSTABLE é o base-red inherited #9985.
1.3 KiB
1.3 KiB
name, description
| name | description |
|---|---|
| cli-routing | Create, list, update, and delete routing combos from the CLI. Test routing strategies, inspect combo metrics, and configure fallback chains interactively. |
Overview
Create, list, update, and delete routing combos from the CLI. Test routing strategies, inspect combo metrics, and configure fallback chains interactively.
Quick install
npm install -g omniroute # or: npx omniroute
omniroute --version
Subcommands
suggest
Flags:
--max-cost <usd>--max-latency-ms <ms>--weights <json>--top <n>--explain--switch
Example:
omniroute suggest
combo combo
Example:
omniroute combo combo
combo list
List configured routing combos
Flags:
--json
Example:
omniroute combo list
combo switch <name>
Activate a routing combo
Example:
omniroute combo switch <name>
combo create <name>
Create a new routing combo
Flags:
--models <spec>--model <spec>
Example:
omniroute combo create <name>
combo delete <name>
Delete a routing combo
Flags:
--yes
Example:
omniroute combo delete <name>