Skip to content
dsh-market Browse plugins GitHub 中文

zuojinxin/dsh-provider-switch

Enable or disable model providers, search models in the selector, and rename provider display names.

Stars ★ 0 Category Models & Providers Listed 2026-09-24

Install

Inside DeepSeek Harness, with dsh-market

dsh plugin --profile web add dshmarket

Or from the command line

dsh plugin --profile web add github:zuojinxin/dsh-provider-switch

Installing runs third-party code with your own permissions — it can read your files, use your credentials and reach the network. Review the source first, and pin a commit (github:owner/repo#sha) when you can.

Screenshots

README

This plugin publishes its README in Chinese only.

DSH 静态插件(web profile)。在官方模型选择器基础上增加供应商启停开关、模型搜索和供应商重命名三个功能。

功能

  1. 供应商启用/禁用 — 设置 → 模型页,每个供应商行前有开关。禁用后该供应商的模型从选择器中隐藏,且会话不会再调用其模型(直接报 PROVIDER_DISABLED,不重试)。
  2. 模型搜索 — 输入框模型选择器顶部有搜索框,按模型名/描述/供应商名关键字过滤。
  3. 供应商重命名 — 设置 → 模型页展开供应商编辑卡片后,点击卡片标题即可内联修改显示名。

效果预览

供应商启停开关 模型选择器 搜索过滤
供应商开关 模型选择器 搜索过滤

前置条件

  • dsh web ≥ 0.1.7-rc.1(dsh --version 查看)
  • Node.js ≥ 20

安装

dsh plugin --profile web add github:zuojinxin/dsh-provider-switch

安装后重启 dsh web 即可。

验证

启动日志出现 [provider-switch] settings namespace ready,且设置 → 模型页每个供应商行前出现开关。

卸载

dsh plugin --profile web remove dsh-provider-switch

版本与 DSH 兼容性

插件版本 适配 DSH 说明
v0.6.5 0.1.7-rc.1 修复模型弹窗变灰+卡顿
v0.6.2 0.1.7-rc.1 修复弹窗背景半透明
v0.5.5 0.1.2-alpha.3 代码精简重构
v0.4.0 0.1.0-rc 初始稳定版

文件

  • lib/index.js — Host:settings 命名空间、llm/stream 拦截、HTTP 端点
  • lib/client.js — Client:模型选择器 fork、设置页开关、重命名、样式
  • cordis.patch.yml — 安装挂载层

已知限制

  • 设置页开关和重命名基于 DOM 注入,DSH 升级改类名时可能消失(优雅降级,不影响其他功能)
  • 禁用供应商只拦模型调用,不隐藏设置页里的供应商行
  • 插件只拦 llm/stream waterfall,绕过该 waterfall 的直连调用不在拦截范围

许可

MIT

Content from the project README on GitHub ↗

Comments

Comments live in GitHub Discussions. Sign in with GitHub to post or react.