feat: add OrcaRouter as a named OpenAI-compatible model provider - #3509
Open
XiaoHuo888-hue wants to merge 1 commit into
Open
feat: add OrcaRouter as a named OpenAI-compatible model provider#3509XiaoHuo888-hue wants to merge 1 commit into
XiaoHuo888-hue wants to merge 1 commit into
Conversation
Adds OrcaRouter (orcarouter/) as a first-class model provider alongside the existing nim/openrouter/custom OpenAI-compatible providers. - ModelFactory: orcarouterDefault createOpenAICompatible instance, configurable case, BUILT_IN_PROVIDERS entry, and updated error messages - Model selector UI: OrcaRouter entry with prefix display and model ID input - Docs: provider table row in models.mdx - .env.example: ORCAROUTER_API_KEY - Tests: parse + createModel coverage in agents-core and agents-api - Changeset: @inkeep/agents-core + @inkeep/agents-manage-ui patch Verified: unit tests pass, biome clean, live-tested against https://api.orcarouter.ai/v1 (orcarouter/auto, fusion, fusion-flash all OK). Signed-off-by: XiaoHuo888-hue <jinhao.song@myflashcloud.com>
|
An admin can assign one in Ito team settings. |
XiaoHuo888-hue
requested a deployment
to
inkeep-oss-sync
August 20, 2026 14:50 — with
GitHub Actions
Waiting
🦋 Changeset detectedLatest commit: 13096f8 The changes in this PR will be included in the next version bump. This PR includes changesets to release 10 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
|
Thanks for the contribution! What happens next:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds OrcaRouter as a first-class named model provider, alongside the existing
nim,openrouter, andcustomOpenAI-compatible providers.Use the
orcarouter/prefix (e.g.orcarouter/auto,orcarouter/fusion) to route through the OrcaRouter gateway — a smart routing gateway that fronts many upstream model providers behind one OpenAI-compatible endpoint. Implemented by mirroring the existingnimprovider pattern exactly (a namedcreateOpenAICompatibledefault instance + a configurable case), so it is additive and low-risk.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.
Changes
packages/agents-core/src/utils/model-factory.ts— neworcarouterDefaultprovider instance (https://api.orcarouter.ai/v1);orcaroutercase increateProviderand in the default-instance switch;orcarouteradded toBUILT_IN_PROVIDERS; provider-enumeration error messages updated.packages/agents-core/src/__tests__/utils/model-factory.test.ts—parseModelStringcoverage fororcarouter/.agents-api/src/__tests__/run/agents/ModelFactory.test.ts— parse + create coverage for OrcaRouter gateway models.agents-manage-ui/src/components/agent/sidepane/nodes/model-selector.tsx— OrcaRouter entry in the model picker (prefix display, selector item, labels/placeholder, prefix handling).agents-docs/content/typescript-sdk/models.mdx— provider table row..env.example—ORCAROUTER_API_KEY..changeset/fine-gold-cougar.md— patch changeset for@inkeep/agents-coreand@inkeep/agents-manage-ui.Tests
1. Unit tests
agents-core:agents-api:2. Format + lint (Biome) — clean on all changed files, root
format:check(2655 files) clean.3. Typecheck —
@inkeep/agents-coreand@inkeep/agents-manage-uiboth passtsc --noEmit.4. Live end-to-end against OrcaRouter
Driven through
ModelFactory.createModel('orcarouter/...')using the AI SDK'sgenerateTextwith a live gateway key:Risk / compatibility
nimnamed OpenAI-compatible provider.@ai-sdk/openai-compatibleis already used bynim/custom).Disclosure: I'm an engineer on the OrcaRouter team.