feat: add OrcaRouter as OpenAI-compatible provider - #2193
Open
Marc-oss-hub wants to merge 1 commit into
Open
Conversation
Register OrcaRouter in the OpenAI-compatible ProviderMap with base URL https://api.orcarouter.ai/v1, add it to the cSpell dictionary, the README supported-providers list, and a matching TestCreateClient case. 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 new OpenAI-compatible AI provider
Summary
Add first-class support for the OrcaRouter OpenAI-compatible provider by registering it in the provider configuration map (OrcaRouter is an OpenAI-compatible model routing gateway). The provider is registered in
ProviderMapwith base URLhttps://api.orcarouter.ai/v1, so users can configure it viafabric --setup/--listvendorsand route through OrcaRouter (including itsorcarouter/autonamed router) with the same OpenAI-compatible interface as the existing OpenRouter entry.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.
I'm an engineer on the OrcaRouter team.
Related Issues
None.
Files Changed
.vscode/settings.json"OrcaRouter"to the cSpell dictionary to prevent false-positive spelling warnings in the editor.internal/plugins/ai/openai_compatible/providers_config.goProviderConfigentry for OrcaRouter with its base API URL and capability flags.internal/plugins/ai/openai_compatible/providers_config_test.goOrcaRoutertest case toTestCreateClient.README.mdCode Changes
.vscode/settings.jsonAdded OrcaRouter to the project-specific spellchecker allowlist:
internal/plugins/ai/openai_compatible/providers_config.goRegistered OrcaRouter in
ProviderMapso it can be resolved via provider-name lookup:internal/plugins/ai/openai_compatible/providers_config_test.goAdded a matching
OrcaRoutercase to the existingTestCreateClientprovider table.README.mdAdded
- OrcaRouterto the OpenAI-Compatible providers list.Usage
fabric --setupand select theOrcaRoutervendor (or setORCAROUTER_API_KEY), then pick a model (e.g.openai/gpt-5.5ororcarouter/auto).Verification
go build ./...passes.go test ./internal/plugins/ai/openai_compatible/...passes.POST https://api.orcarouter.ai/v1/chat/completionswithopenai/gpt-5.5returned 200 (ORCA-OK);GET https://api.orcarouter.ai/v1/modelsreturned 200.