Skip to content

feat(channel): add named OrcaRouter provider - #1729

Closed
XiaoHuo888-hue wants to merge 1 commit into
proma-ai:mainfrom
XiaoHuo888-hue:feat/add-orcarouter-provider
Closed

feat(channel): add named OrcaRouter provider#1729
XiaoHuo888-hue wants to merge 1 commit into
proma-ai:mainfrom
XiaoHuo888-hue:feat/add-orcarouter-provider

Conversation

@XiaoHuo888-hue

Copy link
Copy Markdown

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

  • New orcarouter provider in the ProviderType union with a default Base URL (https://api.orcarouter.ai/v1) and display label, mirroring the existing custom OpenAI Chat Completions wiring but as a named, one-click-selectable preset.
  • Routing through the existing OpenAI-compatible path: model listing, channel connectivity test, openai-completions reasoning transport, Pi API normalization, and conservative system-role handling.
  • orcarouter/auto test-model preset in the channel settings form and a default logo fallback.
  • Title-generation fallback on the same failure paths as the custom / OpenCode Go channels.
  • Unit tests covering the new provider registry entries and reasoning transport.

Verification

  • bun run typecheck — all packages pass.
  • bun test — 492 pass; the only failure is planning-manager.test.ts, which spawns the Electron binary (node_modules/electron/dist/electron.exe) that bun install does not download in this environment (pre-existing, unrelated to this change).
  • Live check against https://api.orcarouter.ai/v1: GET /v1/models → 200; POST /v1/chat/completions with model orcarouter/auto → 200 with a valid completion (routed through the gateway).

I'm an engineer on the OrcaRouter team.

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.
@ErlichLiu

Copy link
Copy Markdown
Collaborator

@XiaoHuo888-hue 感谢贡献,但我们不接受这种第三方的中转站,你可以通过兼容格式来自行配置即可

@ErlichLiu ErlichLiu closed this Aug 19, 2026
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.

2 participants