Repository navigation
Price and label OrcaRouter gateway model ids as the model they route to - #1118
Conversation
Add orcarouter/ as a routing wrapper like cmd/ and antigravity/, alias the smart and fusion routes to their current upstream rows, and give each route a branded display name. Unknown vendors nested inside the route still fail closed.
|
Reviewed (MiniMax draft; findings verified against the diff by maintainer). The peel itself is sound — anchored, single-segment, nested upstreams hit exact LiteLLM rows, unknown vendors fail closed (all confirmed by your tests). Three blockers before this can merge:
Minor: the PR body's 'Branded labels: OrcaRouter (auto)…' line contradicts the code (labels resolve to the upstream model, which is also what the README text says). Fix the description either way. |
Sonnet was a guess against a Qwen/Llama flash route. Fusion aliases keep the 2026-08 live completion-model provenance. Warm days re-derive.
#1115 took v28 on main. OrcaRouter pricing takes the next number. Keep-both CHANGELOG. MIN_SUPPORTED stays 28.
Problem
OrcaRouter sessions show $0. The gateway writes route ids (
orcarouter/auto,orcarouter/fusion,orcarouter/fusion-flash,orcarouter/fusion-mini) and nested upstream ids (orcarouter/deepseek/deepseek-v4-pro). Those were not routing wrappers, so they never hit a LiteLLM row.Root cause
Change
Rebased the community mapping from #1058 onto current
main(that PR was CONFLICTING). Files only:src/models.ts,tests/models.test.ts,CHANGELOG.md,README.md.orcarouter/like the other routing wrappers.orcarouter/auto→claude-sonnet-4-5(fast Sonnet estimate; the smart route rotates).orcarouter/fusion/fusion-flash/fusion-mini→openai/gpt-oss-120b(verified live 2026-08).User impact
An OrcaRouter session reports the upstream model's spend instead of $0. Route ids keep a branded name rather than the current upstream's display name.
Preservation
No parser, provider, doctor, cache, or Hermes changes. Existing wrappers (
cmd/,antigravity/,cp/, …) are untouched. Unknown vendors stay unpriced.Testing
HERMES_HOME=/tmp/cb-cleanhome npm test— 3170 passed, 5 skipped.npx tsc --noEmit— clean.Unit tests cover pricing, fail-closed, and display labels for the route ids.
Thanks @XiaoHuo888-hue.