feat(agents): add OrcaRouter as a named model provider - #4764
Open
XiaoHuo888-hue wants to merge 1 commit into
Open
feat(agents): add OrcaRouter as a named model provider#4764XiaoHuo888-hue wants to merge 1 commit into
XiaoHuo888-hue wants to merge 1 commit into
Conversation
Add OrcaRouter as a first-class named provider across the agents subsystem, mirroring the existing Moonshot OpenAI-compatible gateway wiring. - agents-runtime: new orcarouter-models.ts with 4 gateway models (orcarouter/auto, fusion, fusion-flash, fusion-mini) routed to https://api.orcarouter.ai/v1; ORCAROUTER_API_KEY env detection, low-cost model selection, and pi-adapter model resolution. - agents: model-catalog integration so built-in Horton/Worker agents can use OrcaRouter models; provider label + API key hook. - agents-server-ui + agents-desktop: OrcaRouter API key input, model picker option, provider labels, and onboarding/settings wiring. - deep-survey example: optional ORCAROUTER_API_KEY worker model. - docs: provider env key list updated; tests added for model resolution, catalog, detection, and low-cost selection. L3 live-verified: real key round-trips through the OrcaRouter chat/completions endpoint via the provider path. Signed-off-by: XiaoHuo888-hue <jinhao.song@myflashcloud.com>
✅ Deploy Preview for electric-next ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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.
Add OrcaRouter as a named model provider
This adds OrcaRouter as a first-class, named LLM provider across the agents subsystem, mirroring the existing Moonshot OpenAI-compatible gateway wiring. Setting
ORCAROUTER_API_KEYsurfaces OrcaRouter models (orcarouter/auto,fusion,fusion-flash,fusion-mini) in the model picker and lets the built-in Horton/Worker agents route throughhttps://api.orcarouter.ai/v1.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.
What changed
@electric-ax/agents-runtime: neworcarouter-models.tswith 4 OpenAI-compatible gateway models routed tohttps://api.orcarouter.ai/v1;ORCAROUTER_API_KEYenv detection, low-cost model selection, and pi-adapter model resolution.@electric-ax/agents: model-catalog integration so built-in agents can use OrcaRouter models (provider label + API-key hook), plus the "no provider key" error text.@electric-ax/agents-server-ui+@electric-ax/agents-desktop: OrcaRouter API key input, model-picker option, provider label, and onboarding/settings wiring.examples/deep-survey: optionalORCAROUTER_API_KEYworker model.Verification
agents-runtime:model-runner+pi-adaptertests pass (49 tests, incl. 7 new OrcaRouter ones).agents:model-catalogtests pass (18 tests, incl. 2 new OrcaRouter ones).agents-server-ui: 113 tests pass.agents-runtime,agents,agents-server-ui,agents-desktop(touched files),examples/deep-surveyall clean.getOrcaRouterModel('orcarouter/auto')+completeSimple) againsthttps://api.orcarouter.ai/v1/chat/completions→200, response containsORCA-LIVE-OK.Disclosure: I'm an engineer on the OrcaRouter team.