feat(channel): add named OrcaRouter provider - #1729
Closed
XiaoHuo888-hue wants to merge 1 commit into
Closed
Conversation
Register OrcaRouter as a first-class provider preset (OpenAI Chat Completions compatible), with default base URL, label, reasoning transport, model list/test presets and title fallback handling — mirroring the existing 'custom' OpenAI-compatible wiring.
Collaborator
|
@XiaoHuo888-hue 感谢贡献,但我们不接受这种第三方的中转站,你可以通过兼容格式来自行配置即可 |
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.
Adds OrcaRouter as a named model provider. OrcaRouter is an OpenAI-compatible model routing gateway that exposes 150+ models from OpenAI, Anthropic, Google, DeepSeek, Qwen, MiniMax, xAI and others behind a single endpoint and API key. 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's included
orcarouterprovider in theProviderTypeunion with a default Base URL (https://api.orcarouter.ai/v1) and display label, mirroring the existingcustomOpenAI Chat Completions wiring but as a named, one-click-selectable preset.openai-completionsreasoning transport, Pi API normalization, and conservativesystem-role handling.orcarouter/autotest-model preset in the channel settings form and a default logo fallback.custom/ OpenCode Go channels.Verification
bun run typecheck— all packages pass.bun test— 492 pass; the only failure isplanning-manager.test.ts, which spawns the Electron binary (node_modules/electron/dist/electron.exe) thatbun installdoes not download in this environment (pre-existing, unrelated to this change).https://api.orcarouter.ai/v1:GET /v1/models→ 200;POST /v1/chat/completionswith modelorcarouter/auto→ 200 with a valid completion (routed through the gateway).I'm an engineer on the OrcaRouter team.