feat: add OrcaRouter as a built-in AI translation provider - #443
Open
XiaoHuo888-hue wants to merge 1 commit into
Open
feat: add OrcaRouter as a built-in AI translation provider#443XiaoHuo888-hue wants to merge 1 commit into
XiaoHuo888-hue wants to merge 1 commit into
Conversation
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>
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 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— neworcarouterentry inPROVIDER_TYPES(built-in AI provider; default base urlhttps://api.orcarouter.ai/v1, key placeholdersk-orca-…)main/translate/services/translationProvider.ts— maporcarouter→openaiTranslator(OpenAI-compatible translation path)renderer/components/ProviderForm.tsx— addorcaroutertoOPENAI_COMPAT_PROVIDERSwith fallback modelsorcarouter/auto,orcarouter/fusionmain/helpers/providerManager.ts— bump provider schema version 23 → 24renderer/public/locales/zh|en/translateControl.json) —orcarouterApiUrlTips,orcarouterApiKeyTips,phOrcarouterApiKeydocs/docs/guides/translation/orcarouter.md;overview.mdservice table updatedVerification
check:i18n— passed (zh/en key parity)test:thinking-control— 48 passedtest:translation-cancel— 6 passedtest:qwen-mt— 19 passedhttps://api.orcarouter.ai/v1(orcarouter/fusion): "Smart subtitle tooling for everyone." → "人人可用的智能字幕工具。"I'm an engineer on the OrcaRouter team.