feat: add OrcaRouter as a BYOK provider#1630
Closed
zhenjunchen-png wants to merge 1 commit into
Closed
Conversation
Adds OrcaRouter (https://orcarouter.ai) as a dedicated BYOK provider card in Agents > Models. OrcaRouter is an OpenAI-compatible LLM gateway that routes each request to the cheapest or fastest provider across many upstream model providers. Follows the existing alias pattern for OpenAI-compatible gateways (ModelArk, grok, llama.cpp): provider id `orcarouter` is aliased to `openai-compatible-model` on the backend, so no CAMEL changes are required. - backend/app/model/model_platform.py: PLATFORM_ALIAS_MAPPING entry - src/lib/llm.ts: INIT_PROVODERS entry with default base URL, positioned at the end of the list to preserve existing ordering - src/assets/model/orcarouter.svg: official OrcaRouter brand logo - src/pages/Agents/Models.tsx: import + register icon - docs/core/models/byok.md: add row to Supported Providers table
Contributor
Author
|
Closing for now — preparing additional changes to fold into the same integration. Will reopen with the updated scope. Thanks for your patience. |
8 tasks
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.
Related Issue
Closes #1629
Description
Adds OrcaRouter (https://orcarouter.ai) as a dedicated BYOK provider card in Agents → Models. OrcaRouter is an OpenAI-compatible LLM gateway that routes each request to the cheapest or fastest provider across many upstream providers.
Follows the existing alias pattern used by
ModelArk,grok,llama.cpp: provider idorcarouteris aliased toopenai-compatible-modelon the backend, so noModelPlatformType/ CAMEL changes are required.Files
backend/app/model/model_platform.py:PLATFORM_ALIAS_MAPPINGentry ("orcarouter": "openai-compatible-model")src/lib/llm.ts:INIT_PROVODERSentry with default base URLhttps://api.orcarouter.ai/v1. Card is positioned at the end of the list to preserve the existing provider ordering for current users.src/assets/model/orcarouter.svg: official OrcaRouter brand logosrc/pages/Agents/Models.tsx: import + register icon ingetModelImagedocs/core/models/byok.md: add row to Supported Providers tableDisclosure: I'm an engineer on the OrcaRouter team.
Testing Evidence (REQUIRED)
End-to-end tested locally (dev:
npm run dev):https://api.orcarouter.ai/v1.npm run type-checkandnpx eslintboth pass on the changed files; the existingnpm run testresults are unaffected (no test files touched).Screenshot:

What is the purpose of this pull request?
Contribution Guidelines Acknowledgement