dsh-model-capabilities
一个DSH插件,为自定义模型配置输入类型(input)、推理模式(reasoningEfforts)
lylarcher
@lylarcher
⬇ 1
★ 0
master
安装
dsh plugin --profile web add github:lylarcher/dsh-model-capabilities
需要可复现安装时,可在仓库后追加 #commit 固定提交。
一个DSH插件,为自定义模型配置输入类型(input)、推理模式(reasoningEfforts)
该插件未提供要点说明,请参考仓库 README。
dshdsh-plugindsh-plugin-desktopdsh-pluginsdeepseek-harnessdeepseek-harness-plugin
- 安装并启动 DeepSeek Harness:
npx @deepseek-ai/dsh web - 在终端执行上面的安装命令(CLI 会解析插件并核验来源)
- 用 dsh plugins list 确认已安装,必要时重启 Harness 生效
插件以当前 dsh 进程的权限运行,安装时可能执行代码。请先通读仓库源码与许可证,确认无破坏性命令与越权访问;本站只做索引,不对第三方插件安全性作担保。
| 代码仓库 | github.com/lylarcher/dsh-model-capabilities |
| 许可证 | MIT |
| 主要语言 | master |
| 下载量 | 1 |
| GitHub 星标 | 0 |
| 最近推送 | 2026-08-29 |
| 收录日期 | 2026-09-19 |
| 分类 | 工具与能力 |
事实信息来自公开插件目录快照(2026-10-01),介绍文案由本站再加工。
以下为插件仓库 README 全文(原始内容,由公开目录抓取整理)。
# dsh-model-capabilities
A **DeepSeek Harness** plugin that lets you edit each model's **input modalities** (`input: ["text", "image"]`) and per-model **`reasoningEfforts`** directly from the Settings UI — no hand-editing `settings.yaml`.
It works on **DSH Web** and **DSH Desktop**: Desktop runs the same web bundle in compatibility mode on the same profile, so no extra registration is needed.
> **How this relates to [`WJZ-P/dsh-model-capabilities`](https://github.com/WJZ-P/dsh-model-capabilities) (`dsh-model-capability`)**: that plugin adds a single *input-type* selector into the native Models editor. This package is a **complement, not a clone** — it adds the two things that plugin (and the built-in Models page) leave out:
>
> * **`reasoningEfforts`** (per-level reasoning wiring: `minimal|low|medium|high|xhigh|max` + `off`, with custom wire values) — WJZ-P's plugin does not cover reasoning at all.
> * A **whole-profile, batch view**: it enumerates every configured model under *both* `providers..models[]` **and** `providers..modelOverrides` at once, so you can review and write to all of them from one place.
>
> If you only need the `input: text/image` picker while adding a model, WJZ-P's inline field is the lighter choice; if you also need reasoning wiring and a full overview of configured models (incl. overrides), this package is what you want.
## What it adds
A new **Settings** section ("Model Input & Reasoning" / 模型输入与推理) that:
- Lists every configured provider and its models (`providers..models[]` and `providers..modelOverrides`).
- Lets you toggle `input` modalities (`text`, `image`) per model.
- Lets you set `reasoningEfforts` per model:
- **Non-reasoning** → writes `reasoningEfforts: false`.
- **Reasoning** → fill a wire value per level (`minimal|low|medium|high|xhigh|max`); `off` may be left empty (send no reasoning parameter). At least one non-`off` level must be filled.
- Writes straight through the existing `llm-pi-ai` settings namespace (`settings.mutate`), so the running `llm-pi-ai` adapter re-registers routes and the model picker shows the new reasoning levels immediately, and the change persists to `settings.yaml`.
The existing built-in "Models" page intentionally does **not** expose these two per-model fields (reasoning is a per-model capability); this plugin fills exactly that gap with a dedicated page.
## Install
```sh
dsh plugin --profile add dsh-model-capabilities
# then restart DSH (web or desktop) to load the new bundle
```
`dsh plugin add` installs the package into the profile (`profiles//node_modules`), appends it to `dsh.profile.bundles`, and applies the package's `cordis.patch.yml` (which activates the minimal host entry that the client-modules node half needs to discover and serve the browser bundle).
Alternatively, for a local mount:
1. Put the built package under `profiles//node_modules/dsh-model-capabilities/`.
2. Add `"dsh-model-capabilities"` to `dsh.profile.bundles` in `profiles//package.json`.
3. Restart DSH.
## Uninstall
```sh
dsh plugin --profile remove dsh-model-capabilities
```
Or remove it from `dsh.profile.bundles` (and the following unneeded entry in your profile's own `cordis.patch.yml`):
```yaml
- id: model-capabilities
disabled: true # or delete this block entirely
```
## Build (from source)
```sh
pnpm install
pnpm build # tsdown → lib/client.js (client-modules format) ; lib/index.js is hand-written
```
Prerequisites: Node ^22.19 / >=24 and pnpm. `tsdown` must be >= 0.22 (older 0.7.x ships a rolldown that fails to expose `transformPlugin`).
## Requirements & behavior notes
- The section reads/writes the `llm-pi-ai` settings namespace. If no provider/model is configured yet (the section would be empty), add one under the built-in **Models** page first.
- Validation mirrors the `llm-pi-ai` schema (`MODALITIES = [text, image]`; `THINKING_LEVELS = [off, minimal, low, medium, high, xhigh, max]`; `reasoningEfforts` is `false` or a `{level → string|null}` map with only `off` allowed empty). Invalid values are rejected client-side, and the host schema re-validates as the final guard.
- On a read-only connection the page shows a notice and disables saving.
- Write conflicts (stale revision) are surfaced and the page refreshes for a retry.
数据来源:公开的 DeepSeek Harness 插件目录与各插件 GitHub 仓库。本站为独立第三方目录,与 DeepSeek、幻方(High-Flyer)及插件作者均无隶属或背书关系。