feat: add OrcaRouter as a dedicated OpenAI-compatible relay provider - #688
Open
Marc-oss-hub wants to merge 1 commit into
Open
feat: add OrcaRouter as a dedicated OpenAI-compatible relay provider#688Marc-oss-hub wants to merge 1 commit into
Marc-oss-hub wants to merge 1 commit into
Conversation
Add 'orcarouter' as a fourth named OpenAI-compatible relay provider, mirroring the existing atlascloud wiring end to end: - Backend: MODEL_PROVIDER.ORCAROUTER enum entry, OpenAIApiServiceAdapter registration, OpenAI protocol prefix mapping, identifyFieldMap entry, managed-model-list membership, and default health-check model. - Frontend: provider list, field definitions (OPENAI_API_KEY / OPENAI_BASE_URL), display names, i18n (EN/ZH), config-section provider tags, routing examples (paths, curl case, icon, default model), and add-group allowed types. - Config: provider_pools.json.example orcarouter block. Default base URL https://api.orcarouter.ai/v1 and default model orcarouter/auto. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Marc-oss-hub <sjh668899@outlook.com>
Owner
|
To add other providers compatible with the OpenAI protocol, please first go through the sponsorship channel. |
Owner
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
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 (https://www.orcarouter.ai) as a fourth dedicated OpenAI-compatible relay provider in the provider management UI, mirroring the existing
atlascloudwiring end to end.MODEL_PROVIDER.ORCAROUTERenum entry,OpenAIApiServiceAdapterregistration, OpenAI protocol-prefix mapping (incl.orcarouter-*group types),identifyFieldMapentry, managed-model-list membership, and a default health-check model.OPENAI_API_KEY/OPENAI_BASE_URL, placeholderhttps://api.orcarouter.ai/v1), display name + i18n (EN/ZH), config-section provider tag, routing examples (paths/orcarouter/v1/chat/completions&/orcarouter/v1/messages, curl case, icon, default model), and add-group allowed types.configs/provider_pools.json.examplegains anorcarouterpool block.Default base URL is
https://api.orcarouter.ai/v1and the default model isorcarouter/auto(OrcaRouter's dynamic routing model). All changes are additive; no existing provider behavior is modified.Verification
node --checkpasses on every edited JS file;provider_pools.json.exampleparses as valid JSON.OpenAIApiServiceAdapter(https://api.orcarouter.ai/v1/chat/completions, modelorcarouter/auto) returnedORCAROUTER_OK.getProtocolPrefix('orcarouter')→openai,getManagedModelListProviderType('orcarouter')→orcarouter, and the adapter registry includesorcarouter.Disclosure
I'm an engineer on the OrcaRouter team.
This change only adds a new provider type that mirrors the existing
atlascloudwiring; no credentials or secrets are included in the diff.