Skip to content

feat: add OrcaRouter as a built-in AI translation provider - #443

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

feat: add OrcaRouter as a built-in AI translation provider#443
XiaoHuo888-hue wants to merge 1 commit into
buxuku:mainfrom
XiaoHuo888-hue:add-orcarouter-provider

Conversation

@XiaoHuo888-hue

Copy link
Copy Markdown

Summary

Adds OrcaRouter as a 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 provides gateway-level security controls for AI agents.

Changes

  • types/provider.ts — new orcarouter entry in PROVIDER_TYPES (built-in AI provider; default base url https://api.orcarouter.ai/v1, key placeholder sk-orca-…)
  • main/translate/services/translationProvider.ts — map orcarouteropenaiTranslator (OpenAI-compatible translation path)
  • renderer/components/ProviderForm.tsx — add orcarouter to OPENAI_COMPAT_PROVIDERS with fallback models orcarouter/auto, orcarouter/fusion
  • main/helpers/providerManager.ts — bump provider schema version 23 → 24
  • i18n (renderer/public/locales/zh|en/translateControl.json) — orcarouterApiUrlTips, orcarouterApiKeyTips, phOrcarouterApiKey
  • Docs — new docs/docs/guides/translation/orcarouter.md; overview.md service table updated
  • READMEs — OrcaRouter added to the translation services list (zh/en/ja)

Verification

  • check:i18n — passed (zh/en key parity)
  • test:thinking-control — 48 passed
  • test:translation-cancel — 6 passed
  • test:qwen-mt — 19 passed
  • Live check against https://api.orcarouter.ai/v1 (orcarouter/fusion): "Smart subtitle tooling for everyone." → "人人可用的智能字幕工具。"

I'm an engineer on the OrcaRouter team.

Register OrcaRouter in the provider registry, translation service map and
OpenAI-compatible provider list so it can be configured directly in the
UI. Includes i18n strings, a docs page and README mentions.

Co-Authored-By: Claude <noreply@anthropic.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