supersealwqas/dsh-custom-provider-settings 预览 preview

supersealwqas/dsh-custom-provider-settings

DeepSeek Harness 第三方API与自定义模型设置插件:支持请求头、User-Agent、模型列表、图像输入和思考等级

Project Overview项目介绍

This is a native plugin built exclusively for DeepSeek Harness (DSH) that extends DSH’s Web UI with advanced configuration options for custom model providers. It adds support for global HTTP request headers that apply to all models, plus per-provider request headers that override global values for custom providers. It also lets users declare if a custom model supports multimodal text-and-image input, map custom reasoning effort levels to API values, and enable system role compatibility for OpenAI-compatible third-party endpoints. Unlike core modifications, this plugin loads through DSH’s native plugin system without altering any Harness source code.

To install the plugin, you first need to prepare required dependencies: Node.js version 22.19.0 or newer, or Node.js 24 LTS which is recommended, plus Git and pnpm for package management. There are three supported installation methods, depending on your use case: installing a tested release from a TGZ archive, pulling the latest development version from the main GitHub branch, or installing from a local directory for plugin development and debugging. Before any installation, update, or removal, you must stop the running DSH Web UI, then restart it after the operation completes to activate the changes.

After installation, you can access the plugin’s configuration from the “Settings > Models” page in the DSH Web UI. You can add global request headers that apply to all model API requests, then add provider-specific overrides for any custom OpenAI-compatible provider you add to your DSH instance. The plugin includes common presets for User-Agent values that you can select with one click, while still allowing fully custom manual input for any other value you need. The plugin is released under the permissive open-source MIT license, and it currently only works with DSH version 0.1.1-rc.2 or compatible newer versions.

这是一个专为DeepSeek Harness(DSH)开发的原生插件,为DSH的Web UI增加了自定义模型提供方的扩展配置功能。它支持全局和自定义提供方级别的HTTP请求头配置,可声明模型的图文输入能力,配置思考等级映射,还为OpenAI兼容接口提供了system角色兼容设置。插件通过DSH原生插件机制加载,无需修改Harness的源代码即可运行。

安装插件需要预先准备Node.js 22.19.0以上或24 LTS版本、Git和pnpm,支持三种标准安装方式:安装经过测试的发布版TGZ、从GitHub主分支安装最新开发版、本地仓库安装用于调试修改。安装前需要停止正在运行的Web UI,完成操作后重新启动即可生效。用户可在设置的模型页面中配置全局请求头,再编辑自定义提供方添加专属配置。

本插件基于DeepSeek Harness 0.1.1-rc.2版本开发,全局请求头会作用于所有模型包括官方和第三方提供方,仅额外配置作用于自定义标记的提供方。它不会修改原Harness的源代码和原有配置内容,遵循MIT许可证完全开源,若后续Harness调整前端表单结构,本插件可能需要更新适配。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 4 stars - very few users, little community feedback星标只有 4,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:supersealwqas/dsh-custom-provider-settings

把 supersealwqas/dsh-custom-provider-settings 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

DSH 自定义模型提供方设置插件

中文 | English

为 DeepSeek Harness WebUI 增加全局模型请求头,并为用户添加的自定义模型提供方补充局部请求头、图像输入、思考等级和原生 system 角色兼容设置。插件通过 DSH 插件机制加载,不修改 Harness 源代码。

全局请求头会作用于所有渠道和所有模型,包括 DeepSeek 官方、内置第三方和自定义提供方;局部请求头、模型能力和兼容性设置仍只显示在带“自定义”标记的提供方中。

功能

  • 为每个自定义提供方配置 User-Agent 和其他 HTTP 请求头。
  • 在 WebUI 中配置全局 User-Agent 和其他请求头,作为所有模型 API 请求的通用请求头。
  • 为全局和局部 User-Agent 提供常用预设,同时保留自由输入。
  • 将同一组自定义请求头用于普通模型请求和“获取可用模型”。
  • 将每个自定义模型声明为仅文本或支持文本与图像输入。
  • 配置模型可选择的思考等级,并把每个等级映射为 API 实际接收的值。
  • 设置提供方默认思考等级。
  • 为 openai-completions 提供方配置思考参数格式。
  • 按自定义提供方管理 DSH 原生的 compat.supportsDeveloperRole,兼容拒绝 developer 消息的 OpenAI 协议第三方接口。
  • 清空全局请求头后恢复 Harness 原有请求头行为。

实机演示

自定义提供方设置

插件会在原有的自定义提供方表单中插入请求头和模型能力配置。红框区域展示了 User-Agent、其他请求头、图像输入、默认思考等级以及每个模型的思考等级映射。

自定义提供方的请求头、图像输入和思考等级设置

思考等级选择器

启用的思考等级会出现在对话输入框中。图中提供 Default、Off、Low、Medium、High、Xhigh 和 Max,并选择了 Xhigh。

DeepSeek Harness 对话输入框中的思考等级选择器

安装

安装前准备

  • Node.js ^22.19.0 或 >=24.0.0,建议使用 Node.js 24 LTS。
  • Git,用于从 GitHub 获取插件。
  • pnpm。dsh plugin 会在 Web profile 目录中调用 pnpm 管理插件。
  • DeepSeek Harness 0.1.1-rc.2 或兼容版本的 web profile,并且原生支持 supportsDeveloperRole。

可先在 PowerShell 中检查环境:

node --version
npx --version
git --version
corepack enable
pnpm --version

如果 corepack enable 因权限不足失败,请使用管理员 PowerShell 再执行一次,或者按照 pnpm 官方安装说明安装。

安装、升级或卸载插件前,建议先停止正在运行的 WebUI,操作完成后再重新启动。

方法一:安装 Release TGZ(推荐)

这种方式安装经过测试的固定版本,不会随着 main 分支变化。安装 v0.5.0:

npx --yes -p @deepseek-ai/dsh dsh plugin --profile web add https://github.com/supersealwqas/dsh-custom-provider-settings/releases/download/v0.5.0/dsh-custom-provider-settings-0.5.0.tgz

安装完成后启动 WebUI:

npx --yes -p @deepseek-ai/dsh dsh web

WebUI 默认地址为 http://127.0.0.1:3080。如果已经全局安装 dsh,可以使用更短的 dsh plugin ... 和 dsh web。

方法二:从 GitHub 主分支安装

这种方式直接安装仓库当前的 main 分支,适合希望立即获取最新改动的用户。首次运行时,npx 会下载官方 DSH NPM 包及其依赖:

npx --yes -p @deepseek-ai/dsh dsh plugin --profile web add github:supersealwqas/dsh-custom-provider-settings

安装完成后启动 WebUI:

npx --yes -p @deepseek-ai/dsh dsh web

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-ctrl-enter-submit 下一个 Next dsh-adaptive-context →