Repository navigation
Price and label OrcaRouter gateway model ids as the model they route to - #1058
XiaoHuo888-hue wants to merge 2 commits into
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. Signed-off-by: XiaoHuo888-hue <[email protected]>
ozymandiashh
left a comment
There was a problem hiding this comment.
Blocking pricing issue: the patch maps fusion, fusion-flash, and fusion-mini to one openai/gpt-oss-120b completion. OrcaRouter documents Fusion as a panel plus judge and bills the sum of all completions; the variants also use different panels. Treating each route as one static model will materially understate cost, and auto is similarly not a fixed Sonnet route. Please model the billed multi-call composition (or leave these gateway IDs explicitly unresolved) and add fixtures for each route. References: https://www.orcarouter.ai/models/orcarouter/fusion and https://www.orcarouter.ai/models/orcarouter/fusion-flash.
|
Thanks for this, and thank you for disclosing your affiliation up front — that's exactly the right way to bring a vendor PR. The prefix-peel is the good part and I'd like to land it. I confirmed OrcaRouter's zero-markup pass-through billing from your pricing page, which is what makes peeling The four
The fusion routes go the other way. Following @ozymandiashh's links: A wrong-but-plausible number is worse for us than $0, because $0 trips the unpriced-model warning and tells the user to look, while a plausible number is silent. Suggested path: keep the peel, drop all four aliases. Route ids stay unresolved and surface the warning; every Three mechanical things: the branch needs a rebase onto main (it's ~10 cache-versions stale, and main has since moved the DeepSeek rows your tests compare against — Happy to review a follow-up quickly. The peel is genuinely useful work. |
1698469 to
5b25641
Compare
5b25641 to
1698469
Compare
Relocates the OrcaRouter route id labels to the start of autoModelNames where upstream main has no overlapping edits, keeping the PR mergeable with the latest codex-auto-review addition. Signed-off-by: XiaoHuo888-hue <[email protected]>
299764f to
7607f4a
Compare
|
Superseded by #1118 (merged), which implements the same peel with the review outcomes from both PRs applied: nested upstreams price at exact LiteLLM rows, fusion routes alias to their live-verified target with provenance in-code, and orcarouter/auto deliberately stays unpriced (the alias guesses here measured 16x-over/274x-under — fail-closed until a live probe pins the rotating target). Thanks for kicking this off — the peel approach itself is what shipped. |
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
cmd/andantigravity/already peel as routers.orcarouter/did not: it was neither inROUTER_PREFIXESnorEXTRA_NAMESPACES, and the smart/fusion route ids had no alias or branded label.Change
Rebased the community mapping onto current
main(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).OrcaRouter (auto),OrcaRouter Fusion, …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.