feat: add OrcaRouter as a preset provider for OpenAI-Responses accounts - #1258
Open
kuswardhanietidims-svg wants to merge 1 commit into
Open
Conversation
Add a provider selector to the OpenAI-Responses account type so OrcaRouter can be used as a first-class, named provider instead of an anonymous custom base URL. Selecting orcarouter auto-fills the preset gateway endpoint while the existing custom workflow keeps accepting a manual baseApi. - src/services/account/openaiResponsesAccountService.js: provider field with preset base URL resolution on create/update, defaulting to custom - src/services/relay/openaiResponsesRelayService.js: default provider for legacy accounts without the field - web/admin-spa/src/components/accounts/AccountForm.vue: provider selector that pre-fills/clears the base URL - tests/openaiResponsesProviderPresets.test.js: unit coverage for the presets 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.
Add OrcaRouter as a preset provider for the existing OpenAI-Responses account type, so this self-hosted Claude API relay service can route to OrcaRouter as a first-class named provider instead of an anonymous custom base URL.
OrcaRouter is an OpenAI-compatible AI gateway built for both models and agents. Like OpenRouter, it exposes a provider/model namespace across many models — but it also combines adaptive routing, automatic failover, zero-markup inference, observability, guardrails, and agent-tool governance behind the same endpoint. Adding orcarouter as a preset means this project's users can point the OpenAI-Responses relay at
orcarouter/autoand get that whole stack, without treating OrcaRouter as a random third-party URL. It also runs gateway-level, zero-trust security for AI agents on the same endpoint — screening every prompt/response and governing every tool call on a default-deny basis, with no application code changes.The account form gains a
Providerselector (OrcaRouter / Custom) mirroring howproviderEndpointis already handled; choosing OrcaRouter auto-fillshttps://api.orcarouter.ai/v1, and the relay passes model names likeorcarouter/autothrough unchanged.Validation
npx prettier --write+npx eslintclean on touched filestests/openaiResponsesProviderPresets.test.js(7 cases) pass; full suite: 204 tests passedPOST https://api.orcarouter.ai/v1/chat/completionswith modelorcarouter/auto→ HTTP 200Discord: discord.gg/YEubt8enRA · X: https://x.com/OrcaRouter
I'm an engineer on the OrcaRouter team.