feat: add OrcaRouter as a first-class LLM provider - #1352
Open
dulcestentaciones2920-debug wants to merge 1 commit into
Open
feat: add OrcaRouter as a first-class LLM provider#1352dulcestentaciones2920-debug wants to merge 1 commit into
dulcestentaciones2920-debug wants to merge 1 commit into
Conversation
Add OrcaRouter to the supplier registry so it can be selected as a named provider in the model management UI, mirroring the existing OpenAI/DeepSeek entries. The preset points at the OpenAI-compatible endpoint (https://api.orcarouter.ai/v1) with a curated set of models, and the provider is listed in the README provider tables. 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.
What
SQLBot's model management lets users pick an LLM provider from the built-in supplier list (
frontend/src/entity/supplier.ts) and connect it with just an API key. This PR adds OrcaRouter to that list as a first-class, named provider — mirroring how the existing OpenAI/DeepSeek entries are wired — instead of making users route it through the generic "自定义 / Generic OpenAI Compatible" fallback.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 first-class provider means SQLBot users can use that stack directly, without treating OrcaRouter as an anonymous custom base 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.
Changes
frontend/src/entity/supplier.ts— newOrcaRoutersupplier entry (id 16): base URLhttps://api.orcarouter.ai/v1,temperaturedefault arg, and a curatedmodel_optionspreset (orcarouter/fusion,orcarouter/fusion-flash,orcarouter/fusion-mini,orcarouter/auto, plus cross-provider models such asdeepseek/deepseek-v4-pro,openai/gpt-4.1,qwen/qwen3.5-plus,google/gemini-2.5-pro,anthropic/claude-sonnet-5). All IDs are verified live against OrcaRouter's/v1/models.frontend/src/i18n/{en,zh-CN,zh-TW,ko-KR}.json—supplier.orcarouter→ "OrcaRouter" (brand name kept in Latin across all locales, consistent with DeepSeek/OpenAI).frontend/src/assets/model/icon_orcarouter_colorful.png— provider icon (96×96 RGBA), matching the existing icon convention.README.md/docs/README.en.md— OrcaRouter added to the "Supported LLM Providers" table (OpenAI Compatible).Verification
vue-tsc -b— no type errors.eslinton touched files — clean.vite build— succeeds; the new icon is bundled asicon_orcarouter_colorful-*.png.POST https://api.orcarouter.ai/v1/chat/completionswith modelorcarouter/fusionreturned HTTP 200 with a valid completion and usage metadata; a streaming request withorcarouter/fusion-flashalso returned 200 with SSE chunks ending in[DONE].Notes
The supplier registry is a pure frontend list — adding an entry requires no schema/migration changes, and
ModelListSide.vue/ModelForm.vuepick it up automatically.I'm an engineer on the OrcaRouter team.
Discord: discord.gg/YEubt8enRA · X: https://x.com/OrcaRouter