MarvekG/deepseek-harness-model-config 预览 preview

MarvekG/deepseek-harness-model-config

Plugin插件 Native原生 ⭐ 40 MIT Models & Routing模型与路由

Project Overview项目介绍

This is a native plugin built exclusively for DeepSeek Harness (DSH), that adds an advanced model configuration page to the DSH web user interface. It lets DSH users add custom model endpoints, fill in basic connection details like endpoint name, base URL, and API key, and configure per-model capability parameters. It supports multiple common API protocols including openai-completions, openai-responses, and anthropic-messages, and allows custom request headers to be added for all model requests. To install the plugin, you first need a working DSH installation, and you can install it directly via the DSH CLI command.

After adding an endpoint, users can fetch the list of available models through a unified GET /models endpoint flow. They can search for models by ID or display name, and use bulk selection tools like select all, invert selection, and clear all to quickly pick the models they want. If the model list cannot be fetched, users can manually enter model IDs to add models directly, and duplicate IDs will automatically match existing entries. All endpoint edits use a shared editor, and existing checked models retain their selection status after you refresh the model list.

To install this plugin, you run a DSH CLI command pointing to the GitHub repository, and you can pin a specific version by appending a commit SHA to the repository address. For local development, you can clone the repository and install it via a local path link with the DSH CLI. Automatic parameter completion for models pulls data from models.dev to fill in context window size, input modality, and other common parameters. The project is released under the open source MIT license, and API keys are only stored via DSH's built-in credential system. Uninstalling or updating the plugin is also done via the DSH CLI remove and add commands.

这是一个专为 DeepSeek Harness (DSH) 开发的原生插件,用于为 DSH 的 Web UI 添加「模型高级配置」页面,支持用户创建自定义大语言模型端点,并配置每个模型的能力参数。用户可新增自定义端点,填写端点名称、URL、API Key 和协议,还能配置自定义请求 Headers,支持 OpenAI 和 Anthropic 系列的兼容协议。

该插件支持通过统一流程获取候选模型,支持按模型 ID 或显示名称搜索,也支持全选、反选等操作,用户还可以无需拉取模型列表直接手动输入模型 ID 添加模型。重复的模型 ID 会自动选中已有模型,新增端点和已保存端点共用同一个编辑器,刷新后已勾选的模型会保留勾选状态。

安装该插件需要先拥有可正常运行的 DSH 环境,通过 dsh 命令行工具从 GitHub 拉取安装,也支持本地克隆后通过本地路径链接安装。自动补全模型参数需要访问 models.dev 获取上下文窗口、输入模态等信息,项目采用 MIT 许可证开源。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 note1 项提示
  • 40 stars - an early-stage project星标 40,属于早期项目
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: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 参数参考。

打开设置 image

新增端点 端点名称、BASE_URL、API-KEY,然后点击获取模型,把想要的模型勾选上: image

参数补充

  1. 端点高级参数:一般保持默认即可。自定义 Header 仅用于模型请求;“获取可用模型”仍使用 API Key。
image
  1. 模型参数:主要检查上下文大小和最大输出长度。
image

模型参数一般能自动填写,前提是要能访问 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 .。

许可证

MIT

友链

← 上一个 Prev dsh-lark-link 下一个 Next dsh-timeline →