diff --git a/README.md b/README.md index e2f2b4b6bca252823df3f807bbbbf1e2c1367618..b2d718845dd934cbc475488aefc9f2206c35c968 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 74fcf5a7d7156fd3c619119db37219952ff00e1b..a1444c151f34b6185ea8fb53d4c40337560fb9d3 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 c141db763d2eddd9547b02bac7b9de30bfccc402..7b6e4ea5dd5fe099099b789afd8b610e0a061691 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 (本地)",