Skip to content

feat: add OrcaRouter as a named model provider - #55

Open
XiaoHuo888-hue wants to merge 1 commit into
letta-ai:mainfrom
XiaoHuo888-hue:add-orcarouter-provider
Open

XiaoHuo888-hue wants to merge 1 commit into
letta-ai:mainfrom
XiaoHuo888-hue:add-orcarouter-provider

Conversation

@XiaoHuo888-hue

Copy link
Copy Markdown

Summary

Adds OrcaRouter as a named model provider. OrcaRouter is a unified AI gateway that routes every request to the best model for the job — one API key, one endpoint, all providers. 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.

When your Letta server exposes an orcarouter provider, the Subconscious agent can now use the orcarouter/auto smart-routing handle. This mirrors the existing minimax/MiniMax-M2.7 and letta/auto named-provider entries.

Changes

  • scripts/agent_config.ts — added orcarouter/auto to the PREFERRED_MODELS auto-selection preference list (after minimax/MiniMax-M2.7, before the first-available-model fallback). Existing buildLlmConfig/findModel logic handles the orcarouter/auto handle out of the box (provider_name: orcarouter, model: auto).
  • scripts/agent_config.test.ts — added an orcarouter/auto entry to the sample models list plus two tests: findModel resolves the orcarouter/auto handle, and buildLlmConfig splits it into provider_name: orcarouter / model: auto.
  • README.md — added orcarouter/auto to the auto-selection priority list and the provider table, plus a short "Using OrcaRouter as your model gateway" section (LETTA_MODEL="orcarouter/auto").
  • CHANGELOG.md — Added entry under [Unreleased].

No breaking changes: the new preference entry is only selected when the Letta server actually advertises an orcarouter model; otherwise behavior is unchanged. No dependency changes.

Validation

  • npm test — 39/39 passing (3 test files), including the 2 new OrcaRouter tests.
  • tsc --noEmit (module nodenext) on the changed files — clean.
  • Live connectivity against orcarouter/auto at https://api.orcarouter.ai/v1/chat/completions returned HTTP 200 (ORCA-LIVE-OK, routed upstream to deepseek-v4-pro), matching the documented smart-routing behavior.

Disclosure: I'm an engineer on the OrcaRouter team.

Add orcarouter/auto (OrcaRouter smart-routing gateway) to the
auto-selection preference list in agent_config.ts. When a Letta server
exposes an orcarouter provider, the plugin now auto-selects it (or users
can set LETTA_MODEL=orcarouter/auto directly). Includes unit tests for
findModel and buildLlmConfig on the orcarouter handle, README docs, and
a changelog entry.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: XiaoHuo888-hue <jinhao.song@myflashcloud.com>
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