Skip to content

feat(ai): add OrcaRouter as a built-in AI provider preset - #389

Open
XiaoHuo888-hue wants to merge 1 commit into
AIDotNet:mainfrom
XiaoHuo888-hue:feat/add-orcarouter-provider
Open

feat(ai): add OrcaRouter as a built-in AI provider preset#389
XiaoHuo888-hue wants to merge 1 commit into
AIDotNet:mainfrom
XiaoHuo888-hue:feat/add-orcarouter-provider

Conversation

@XiaoHuo888-hue

Copy link
Copy Markdown

Summary

  • Registers OrcaRouter as a built-in AI provider preset in BuiltinProviderPresets.json, alongside the existing OpenRouter/OpenAI presets: type openai-chat, base URL https://api.orcarouter.ai/v1, with 8 models (defaulting to orcarouter/auto).
  • Adds the OrcaRouter provider icon in AiProviderPresetSeeder.cs and the admin provider icon map in web/components/admin/provider-icons.tsx.
  • Updates the preset-seeder tests (26→27 presets, 428→436 models) and adds an orcarouter preset 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 errors
  • dotnet test tests/OpenDeepWiki.Tests/OpenDeepWiki.Tests.csproj --filter AiProviderPresetSeeder — 7/7 passed
  • Live: GET https://api.orcarouter.ai/v1/models → 200, all 8 preset model IDs present; POST /chat/completions with orcarouter/auto → 200; provider favicon → 200
  • cd 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

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant