Skip to content

feat(benchmarks): add OrcaRouter as an OpenAI-compatible provider - #334

Open
kuswardhanietidims-svg wants to merge 1 commit into
toon-format:mainfrom
kuswardhanietidims-svg:feat/orcarouter-benchmark-provider
Open

feat(benchmarks): add OrcaRouter as an OpenAI-compatible provider#334
kuswardhanietidims-svg wants to merge 1 commit into
toon-format:mainfrom
kuswardhanietidims-svg:feat/orcarouter-benchmark-provider

Conversation

@kuswardhanietidims-svg

Copy link
Copy Markdown

What

The retrieval-accuracy benchmark's MODELS registry in benchmarks/src/evaluate.ts currently covers Anthropic, Google, OpenAI, and xAI. This adds OrcaRouter (orcarouter/auto) as a ready-made entry so TOON's token/accuracy numbers can be produced through an OpenAI-compatible AI gateway that routes every prompt across many models.

OrcaRouter is an OpenAI-compatible AI gateway built for both models and agents. Like OpenRouter, it exposes a provider/model namespace across many models — but it also combines adaptive routing, automatic failover, zero-markup inference, observability, guardrails, and agent-tool governance behind the same endpoint. Mirroring how the existing openai('gpt-5.4-nano') entry is wired, the new entry builds the provider with createOpenAI({ baseURL: 'https://api.orcarouter.ai/v1' }) (via the chat-completions endpoint) and reads ORCAROUTER_API_KEY from the environment, documented in .env.example and the benchmark setup notes.

It also runs gateway-level, zero-trust security for AI agents on the same endpoint — screening every prompt/response and governing every tool call on a default-deny basis, with no application code changes.

Verification

  • tsc --noEmit clean, eslint . clean, vitest run 767 tests pass (Node 24, same as CI)
  • Live-tested orcarouter/auto through the actual MODELS registry entry with ORCAROUTER_API_KEY — real completion returned, answer matched ground truth

Discord: discord.gg/YEubt8enRA · X: https://x.com/OrcaRouter

I'm an engineer on the OrcaRouter team.

Wire OrcaRouter into the retrieval-accuracy benchmark's MODELS registry as a
first-class entry. It is an OpenAI-compatible AI gateway, so the entry builds
an OpenAI provider pointed at https://api.orcarouter.ai/v1 and uses the
orcarouter/auto model id, letting the gateway route each prompt across models.

Also document ORCAROUTER_API_KEY in .env.example and the setup notes in the
benchmark README.
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