MarvekG/deepseek-harness-model-config
项目介绍Project Overview
DeepSeek Harness 模型配置插件为 Web UI 添加“模型高级配置”页面,用于创建自定义模型端点并配置能力参数。核心能力:支持 openai-completions、openai-responses、anthropic-messages 三种协议,配置自定义 Header 和高级参数,并通过统一的 GET /models 流程获取候选模型,同时从 models.dev 补全上下文窗口、最大输出等参数。适用场景:使用 dsh 并需要接入自定义或第三方模型时。注意:API Key 仅通过 Harness 凭据存储,刷新模型后新增项默认不勾选。
The DeepSeek Harness Model Config Plugin adds a Model Advanced Configuration page to the Web UI, enabling custom model endpoint creation and per-model parameter setup. Core capability: it supports openai-completions, openai-responses, and anthropic-messages protocols, allows custom headers and advanced parameters, fetches candidate models through a unified GET /models flow, and fills missing context window, max output, and other fields from models.dev. When to use: when running dsh and needing to connect custom or third-party model endpoints. Caveat: API keys are stored only via Harness credentials, and newly fetched models default to unchecked on refresh.
请帮我了解并安装插件:【deepseek-harness-model-config】【https://github.com/MarvekG/deepseek-harness-model-config】
把上面这条消息直接发给当前会话里的 DSH,让它帮你了解并安装。安装命令不一定准确,发给 DSH 更稳。Send this message to DSH in your current session. CLI install commands may not be accurate across systems — DSH will figure it out for you.
或使用命令行安装(适合开发者)Or use CLI install (for developers)
命令行安装CLI Install
dsh plugin --profile web add github:MarvekG/deepseek-harness-model-config
把 MarvekG/deepseek-harness-model-config 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
DeepSeek Harness 模型配置插件
English | 中文
为 DeepSeek Harness Web UI 添加“模型高级配置”页面,用于创建自定义模型端点并配置每个模型的能力参数。
功能
- 新增自定义端点:名称、URL、API Key 和协议。
- 支持在 provider 层配置自定义请求 Header,并应用于模型请求。
- 支持
openai-completions、openai-responses、anthropic-messages。 - 通过统一的
GET /models流程获取候选模型,支持按模型 ID 或显示名称搜索、全选、反选和全不选。 - 无需拉取即可手动输入模型 ID 添加模型;重复 ID 会直接选中已有模型。
- 新增端点和已保存端点共用编辑器;已保存端点可重新拉取模型,新增模型默认不勾选,已有勾选模型在刷新后保留。
- 端点高级参数支持默认容量、输入模态、推理兼容、缓存、传输、超时和重试策略。
- 从
models.dev补全缺失的上下文窗口、最大输出、输入模态和推理能力;优先按显示名称(回退到模型 ID)选择官方 provider,找不到时选择默认 provider,并可在保存前切换完整 provider 记录。 - 保留端点返回或用户输入的显示名称原始大小写;编辑显示名称后会重新匹配 provider。
- 在保存前编辑每个模型的容量、文本/图片输入和
reasoningEfforts,并查看不含密钥的配置预览。 - 所有界面文案支持中文和英文,跟随 Harness 语言设置。
- API Key 仅经 Harness 凭据存储写入,不会进入
settings.yaml或配置预览。
完整参数说明:llm-pi-ai 参数参考。
打开设置
新增端点
端点名称、BASE_URL、API-KEY,然后点击获取模型,把想要的模型勾选上:
参数补充
- 端点高级参数:一般保持默认即可。自定义 Header 仅用于模型请求;“获取可用模型”仍使用 API Key。
- 模型参数:主要检查上下文大小和最大输出长度。
模型参数一般能自动填写,前提是要能访问 https://models.dev
安装
需要已安装并可运行的 dsh。默认从 GitHub 安装:
dsh plugin --profile web add github:MarvekG/deepseek-harness-model-config
dsh web
打开 Web UI 的“设置 → 模型高级配置”,即可新增端点或编辑现有 llm-pi-ai 模型配置。
如需固定版本,在仓库地址后附加 commit SHA,例如 github:MarvekG/deepseek-harness-model-config#<sha>。
本地调试
克隆本仓库后,在仓库根目录以本地 link: 依赖安装:
dsh plugin --profile web add .
dsh web
卸载
从 Web profile 移除插件:
dsh plugin --profile web remove dsh-models-config-plugin
更新
更新使用“卸载旧版本,再安装新版本”的方式:
dsh plugin --profile web remove dsh-models-config-plugin
dsh plugin --profile web add github:MarvekG/deepseek-harness-model-config
dsh web
本地调试时,将第二条命令替换为 dsh plugin --profile web add .。
nexu-io/open-design
ruvnet/ruflo
amruthpillai/reactive-resume
esengine/DeepSeek-Reasonix
volcengine/OpenViking
Molunerfinn/PicGo
titanwings/distilly
titanwings/colleague-skill