dsh-auto-model-switcher
模型与 MCP 活跃维护

dsh-auto-model-switcher

xobexo/dsh-auto-model-switcher

轻量级自动化工具,支持国产模型优先调用,可按任务类型自动匹配切换适配模型,内置可视化配置面板支持自定义规则,无需复杂配置即可快速适配不同开发任务。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
None
开源协议
17 KB
仓库大小
26 天前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:xobexo/dsh-auto-model-switcher
git clone https://github.com/xobexo/dsh-auto-model-switcher.git
git clone git@github.com:xobexo/dsh-auto-model-switcher.git
README.md master

DSH Auto Model Switcher

国产模型优先,按任务类型自动切换模型,支持可视化配置面板

English | 中文


中文

功能

自动模型切换器(Auto Model Switcher)是一个 DeepSeek Harness 动态插件,它能根据用户输入的任务类型自动选择最合适的模型,无需手动切换。

特性

  • 智能识别:自动识别代码、推理、中文写作、日常对话等 20+ 种任务类型
  • 国产模型优先:默认使用 DeepSeek、Qwen、GLM 等国产模型作为首选
  • 可视化配置面板:在 DSH 设置页面中直观调整每个通道的主/备模型
  • 即时生效:修改配置后无需重启,立即生效
  • Fallback 机制:每个通道都有备用模型,保障可用性

默认模型配置

通道 首选模型 备用模型 适用场景
极速通道 deepseek-v4-flash-0731 gpt-5.6-luna 问候、格式转换、简单翻译、Git命令
代码主力 deepseek-v4-pro-0813 gpt-5.6-sol 写代码、Debug、数据库、测试、部署
深度推理 qwen3.8-max gpt-5.6-sol 算法、数学、架构设计
中文创作 glm-5.2 qwen3.8-max 写作、文案、润色、翻译长文
日常对话 qwen3.7-plus deepseek-v4-pro-0813 日常中文对话
英文对话 gpt-5.6-terra deepseek-v4-pro-0813 日常英文对话
极复杂问题 gpt-5.6-sol qwen3.8-max 底层原理、内核、编译器等问题

安装

方法一:通过 DSH Web GUI 安装

  1. 下载 index.json 文件
  2. 在 DSH Web GUI 中,进入设置 → 插件 → 导入插件
  3. 选择 index.json 文件并导入

方法二:通过 CLI 安装(Bundle 模式,推荐)

dsh plugin add https://github.com/xobexo/dsh-auto-model-switcher

方法三:动态插件安装(Web GUI)

  1. 下载 index.json 文件
  2. 在 DSH Web GUI 中,进入设置 → 插件 → 导入插件
  3. 选择 index.json 文件并导入

使用

安装后,插件会自动生效。你可以在 DSH 设置页面的「自动模型切换」面板中查看和修改配置。


English

Features

Auto Model Switcher is a DeepSeek Harness dynamic plugin that automatically selects the most suitable model based on the user's task type.

  • Smart Detection: Auto-detects 20+ task types including coding, reasoning, Chinese writing, daily conversation
  • Chinese Model First: Prioritizes domestic models like DeepSeek, Qwen, GLM
  • Visual Config Panel: Adjust primary/fallback models for each channel in DSH settings
  • Instant Apply: Changes take effect immediately without restart
  • Fallback Support: Each channel has a backup model for reliability

Installation

Method 1: Via DSH Web GUI

  1. Download index.json
  2. In DSH Web GUI, go to Settings → Plugins → Import Plugin
  3. Select index.json and import

Method 2: Via CLI (Bundle mode, recommended)

dsh plugin add https://github.com/xobexo/dsh-auto-model-switcher

Method 3: Dynamic Plugin (Web GUI)

  1. Download index.json
  2. In DSH Web GUI, go to Settings → Plugins → Import Plugin
  3. Select index.json and import

License

MIT