Skip to content

✨ feat(provider): add OrcaRouter as a new model provider - #2

Closed
xilema2 wants to merge 1 commit into
canaryfrom
feat/orcarouter-provider
Closed

✨ feat(provider): add OrcaRouter as a new model provider#2
xilema2 wants to merge 1 commit into
canaryfrom
feat/orcarouter-provider

Conversation

@xilema2

@xilema2 xilema2 commented May 21, 2026

Copy link
Copy Markdown
Owner

OrcaRouter is an adaptive LLM routing gateway that picks the best upstream per request via a LinUCB contextual bandit over cost, latency, and quality signals β€” one API key, 150+ frontier models from OpenAI, Anthropic, Google, DeepSeek, xAI, and more.

  • runtime: OpenAI-compatible factory with per-vendor reasoning protocol (Anthropic native thinking, others top-level reasoning_effort) and strips temperature / top_p / top_k for reasoning-only models that reject them
  • model fetcher: pulls the public /api/pricing catalog and computes USD/1M from model_ratio * 2 (the official QuotaPerUnit constant)
  • HTTP-Referer + X-Title attribution headers wired through
  • env: ORCAROUTER_API_KEY / ENABLED_ORCAROUTER
  • 22 unit tests covering reasoning routing, parameter stripping, pricing computation, and model filtering

πŸ’» Change Type

  • ✨ feat
  • πŸ› fix
  • ♻️ refactor
  • πŸ’„ style
  • πŸ‘· build
  • ⚑️ perf
  • βœ… test
  • πŸ“ docs
  • πŸ”¨ chore

πŸ”— Related Issue

πŸ”€ Description of Change

πŸ§ͺ How to Test

  • Tested locally
  • Added/updated tests
  • No tests needed

πŸ“Έ Screenshots / Videos

Before After
... ...

πŸ“ Additional Information

OrcaRouter is an adaptive LLM routing gateway that picks the best
upstream per request via a LinUCB contextual bandit over cost,
latency, and quality signals β€” one API key, 150+ frontier models
from OpenAI, Anthropic, Google, DeepSeek, xAI, and more.

- runtime: OpenAI-compatible factory with per-vendor reasoning
  protocol (Anthropic native `thinking`, others top-level
  `reasoning_effort`) and strips `temperature` / `top_p` / `top_k`
  for reasoning-only models that reject them
- model fetcher: pulls the public /api/pricing catalog and computes
  USD/1M from `model_ratio` * 2 (the official QuotaPerUnit constant)
- HTTP-Referer + X-Title attribution headers wired through
- env: ORCAROUTER_API_KEY / ENABLED_ORCAROUTER
- 22 unit tests covering reasoning routing, parameter stripping,
  pricing computation, and model filtering
@xilema2 xilema2 closed this May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant