feat(ai): add OrcaRouter as a built-in AI provider preset - #389
Open
XiaoHuo888-hue wants to merge 1 commit into
Open
feat(ai): add OrcaRouter as a built-in AI provider preset#389XiaoHuo888-hue wants to merge 1 commit into
XiaoHuo888-hue wants to merge 1 commit into
Conversation
Adds an orcarouter preset (type openai-chat, https://api.orcarouter.ai/v1) with 8 models defaulting to orcarouter/auto, the provider icon in the seeder and admin UI icon map, and preset-seeder test coverage. 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
BuiltinProviderPresets.json, alongside the existing OpenRouter/OpenAI presets: typeopenai-chat, base URLhttps://api.orcarouter.ai/v1, with 8 models (defaulting toorcarouter/auto).AiProviderPresetSeeder.csand the admin provider icon map inweb/components/admin/provider-icons.tsx.orcarouterpreset assertion.OrcaRouter is an OpenAI-compatible model routing gateway that brings 150+ models from OpenAI, Anthropic, Google, DeepSeek, Qwen, MiniMax and xAI behind a single endpoint and API key. Beyond routing, it 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. This PR registers it as a named provider so users can opt in directly.
I'm an engineer on the OrcaRouter team.
Test plan
dotnet build OpenDeepWiki.sln— 0 errorsdotnet test tests/OpenDeepWiki.Tests/OpenDeepWiki.Tests.csproj --filter AiProviderPresetSeeder— 7/7 passedGET https://api.orcarouter.ai/v1/models→ 200, all 8 preset model IDs present;POST /chat/completionswithorcarouter/auto→ 200; provider favicon → 200cd web && npm run lint— no issues in changed files (repo-wide baseline warnings/errors unchanged)cd web && npm run build— succeeds🤖 Generated with Claude Code