From 5e65e47122325f37c28d85c52069e150d38ba941 Mon Sep 17 00:00:00 2001 From: Elams3 Date: Mon, 17 Aug 2026 21:01:01 +0000 Subject: [PATCH] =?UTF-8?q?feat(provider):=20=E6=96=B0=E5=A2=9E=20OrcaRout?= =?UTF-8?q?er=20=E4=BD=9C=E4=B8=BA=E5=91=BD=E5=90=8D=20LLM=20provider?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- presets/preset-providers.json | 27 +++++++++++++++++++++ src/core/config/provider-support-default.ts | 10 ++++++++ 3 files changed, 38 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e2f2b4b..b2d7188 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ ### 同一会话中自由切换智能体与模型 - **同一 Session 自由切换智能体**:在桌面对话或飞书/钉钉/Telegram/微信等**同一通道的同一会话**中,可随时切换当前使用的智能体(本机智能体或代理智能体),无需新建会话。通过输入 `//select` 查看列表、`//智能体名` 或 `//id` 切换,即可在**一个会话里快速使用所有类型机器人**(本地、Coze、OpenClawX、OpenCode、Claude Code 等)。 -- **单智能体自由切换模型**:每个智能体可在「模型配置」或智能体详情中**独立选择并更换大模型**(如 DeepSeek、Qwen、Ollama、本地 GGUF 等)。便于按任务难度或预算**控制 Token 费用**:日常用本地/小模型,复杂任务再切到云端大模型。 +- **单智能体自由切换模型**:每个智能体可在「模型配置」或智能体详情中**独立选择并更换大模型**(如 DeepSeek、Qwen、Ollama、[OrcaRouter](https://www.orcarouter.ai)、本地 GGUF 等)。便于按任务难度或预算**控制 Token 费用**:日常用本地/小模型,复杂任务再切到云端大模型。 详见 [桌面端使用 - 同一会话中自由切换智能体与模型](docs/zh/guides/desktop-usage.md#同一会话中自由切换智能体与模型)。 diff --git a/presets/preset-providers.json b/presets/preset-providers.json index 74fcf5a..a1444c1 100644 --- a/presets/preset-providers.json +++ b/presets/preset-providers.json @@ -175,6 +175,33 @@ ] } ] + }, + "orcarouter": { + "name": "OrcaRouter", + "baseUrl": "https://api.orcarouter.ai/v1", + "models": [ + { + "id": "orcarouter/fusion", + "name": "OrcaRouter Fusion", + "types": [ + "llm" + ] + }, + { + "id": "orcarouter/fusion-flash", + "name": "OrcaRouter Fusion Flash", + "types": [ + "llm" + ] + }, + { + "id": "orcarouter/fusion-mini", + "name": "OrcaRouter Fusion Mini", + "types": [ + "llm" + ] + } + ] } } } \ No newline at end of file diff --git a/src/core/config/provider-support-default.ts b/src/core/config/provider-support-default.ts index c141db7..7b6e4ea 100644 --- a/src/core/config/provider-support-default.ts +++ b/src/core/config/provider-support-default.ts @@ -79,6 +79,16 @@ export const DEFAULT_PROVIDER_SUPPORT: ProviderSupport = { { id: "moonshot-v1-128k", name: "Moonshot 128K", types: ["llm"] }, ], }, + /** OrcaRouter —— 兼容 OpenAI 的 LLM 路由网关 */ + orcarouter: { + name: "OrcaRouter", + baseUrl: "https://api.orcarouter.ai/v1", + models: [ + { id: "orcarouter/fusion", name: "OrcaRouter Fusion", types: ["llm"] }, + { id: "orcarouter/fusion-flash", name: "OrcaRouter Fusion Flash", types: ["llm"] }, + { id: "orcarouter/fusion-mini", name: "OrcaRouter Fusion Mini", types: ["llm"] }, + ], + }, /** 本地 Ollama 服务,兼容 OpenAI API;baseUrl 指向本机 Ollama 默认端口 */ ollama: { name: "Ollama (本地)", -- Gitee