dsh-reasoning-depth
其他 活跃维护

dsh-reasoning-depth

Elysiaqwq/dsh-reasoning-depth

支持为平台内每个模型单独设置推理深度,无需修改平台本体代码,无需额外调整配置文件,可在设置页面直接调整配置后直接生效,灵活控制不同模型的思考强度,适配不同任务的推理需求,操作简单便捷。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
24 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:Elysiaqwq/dsh-reasoning-depth
git clone https://github.com/Elysiaqwq/dsh-reasoning-depth.git
git clone git@github.com:Elysiaqwq/dsh-reasoning-depth.git
README.md main
# dsh-reasoning-depth **Configure a thinking depth (reasoning effort) for each model in DeepSeek Harness — from the settings page, without modifying DSH itself.** [English](https://github.com/Elysiaqwq/dsh-reasoning-depth/blob/main/README.md) · [中文](https://github.com/Elysiaqwq/dsh-reasoning-depth/blob/main/README.zh.md) ![DSH plugin](https://cdnimage-cache.doubi.ren/?url=https://img.shields.io/badge/DSH-plugin-blue) ![Version](https://cdnimage-cache.doubi.ren/?url=https://img.shields.io/badge/version-0.1.0-2ea44f) ![License](https://cdnimage-cache.doubi.ren/?url=https://img.shields.io/badge/license-MIT-green) ![Node](https://cdnimage-cache.doubi.ren/?url=https://img.shields.io/badge/node-%3E%3D20-339933)

✨ Features

  • 🖥️ Adds a Thinking Depth section to the DSH web settings page.
  • 🔍 Auto-reads your configured models from settings.yaml (llm-pi-ai.providers.<route>.models), including each model's supported reasoningEfforts.
  • 🎚️ Set a global default level and a per-model level (off / minimal / low / medium / high / xhigh / max).
  • 💾 Writes a reasoning-depth: section into settings.yaml; changes apply immediately (no restart).
  • ⚡ Applies the level through DSH's agent/request waterfall hook — the plugin's setting wins over inherited efforts (e.g. agent-default-model.reasoningEffort).

⚙️ Configuration

reasoning-depth:
  default: medium
  perModel:
    ark/deepseek-v4-flash: high
    uu/claude-opus-5: low

A level a model does not declare in its reasoningEfforts is skipped instead of failing the request with UNSUPPORTED_REASONING_EFFORT.

🚀 Install

One-click copy: hover the code block below and click the copy button in the top-right corner.

1. Add the dependency (the loader can then resolve the package):

dsh plugin --profile web add github:Elysiaqwq/dsh-reasoning-depth

2. Append the mount row to ~/.dsh/profiles/web/cordis.patch.yml (DSH hot-applies it):

- insert:
    - id: dsh-reasoning-depth
      name: dsh-reasoning-depth

3. Refresh the browser (F5) — the Thinking Depth section appears in Settings.

⚠️ Do not also mount it via the bundle layer (no dsh.bundle.patch, not in dsh.profile.bundles) or the next boot fails with a duplicate loader entry id.

🧹 Uninstall

dsh plugin --profile web remove dsh-reasoning-depth

Then remove the - insert: … dsh-reasoning-depth … block from cordis.patch.yml, and optionally delete the reasoning-depth: section from settings.yaml.

🧪 Verify

cd dsh-reasoning-depth && node test-apply.mjs

A smoke probe that runs the real apply() against a stub ctx and drives the captured agent/request listener plus the pure helpers (model enumeration, level resolution, support checks).

📦 Dependencies

Runtime imports only @deepseek-ai/dsh-settings and @deepseek-ai/schemastery, resolved through the launcher-maintained $DSH_HOME/profiles/node_modules fallback — no extra npm packages.