feat(ai): add OrcaRouter as a named model provider - #702
Open
XiaoHuo888-hue wants to merge 1 commit into
Open
Conversation
Registers OrcaRouter in AIProviderType, PROVIDER_CONFIGS and detectProviderFromUrl, surfaces it in the desktop + mobile provider dropdowns and onboarding AI step, and documents it in the READMEs. 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 first-class model provider in ReadAny. 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, with gateway-level security controls for AI agents.
I'm an engineer on the OrcaRouter team.
What this changes
packages/core/src/types/chat.ts: adds"orcarouter"to theAIProviderTypeunion.packages/core/src/utils/api.ts: registers OrcaRouter inPROVIDER_CONFIGS(base URLhttps://api.orcarouter.ai/v1, keys prefixedsk-orca-, no/v1auto-append) and indetectProviderFromUrl.AISettings.tsx,EndpointEditor.tsx) and the onboarding AI step (AIPage.tsxon both desktop and Expo app).packages/core/src/utils/api.test.ts: unit tests for the new provider.README.md/README_CN.md: mentions OrcaRouter in the provider lists and "Get API Key" table.How to use it
sk-orca-).orcarouter/auto,deepseek/deepseek-v4-flash, oropenai/gpt-4o.https://api.orcarouter.ai/v1exactly like any OpenAI-compatible endpoint, so model listing, chat, and embeddings all work through the gateway.Verification
pnpm --filter @readany/core test— API URL helper tests pass (including the new OrcaRouter case).pnpm exec biome checkon the changed files — clean.