dsh-qwen38-thinking
DSH Web GUI plugin: per-model Qwen3.8 thinking depth control (low / medium / xhigh / off=none)
- Stars
- 0
- Language
- JavaScript
- Created
- Aug 20, 2026
- Updated
- Aug 20, 2026
Introduction
dsh-qwen38-thinking
DSH Web GUI plugin — per-model Qwen3.8 thinking depth control (low / medium / xhigh / off=none)
为 DSH Web GUI 提供 Qwen3.8 思考深度控制:勾选模型后,其请求按 Qwen3.8 的思考等级发送 reasoning_effort(xhigh / medium / low,默认 xhigh),"关闭"档发送 reasoning_effort: "none"(已实测:服务端真正停止思考,不产生 reasoning 内容)。输入框的模型按钮旁会出现独立的思考等级下拉(低 / 中 / 超高 / 关闭),设置里新增"Qwen3.8 思考深度"区块用于勾选/取消模型。取消勾选或卸载本包时,配置自动还原。
安装
需要 pnpm(dsh plugin 转发 pnpm)。
# 本地目录(开发)
dsh plugin --profile web add /path/to/qwenth-bundle
# GitHub(纯 JS 无需构建;tag 跟随版本,锁定 commit 可换成 #<sha>)
dsh plugin --profile web add github:sd133cn/dsh-qwen38-thinking#v0.1.0
# 移除
dsh plugin --profile web remove dsh-qwen38-thinking
安装后重启 DSH(dsh web 或 npx @deepseek-ai/dsh web)使其加载。
使用
- 设置 → Qwen3.8 思考深度:勾选目标模型(例如
Qwen/Qwen3.8-27B)。 - 输入框模型按钮旁出现 ✦ 思考等级下拉,可选 低 / 中 / 超高 / 关闭。
- 取消勾选即还原该模型配置。
工作原理
- 节点端(
lib/host.js,宿主插件):在llm-pi-ai设置中为勾选的模型写入reasoningEfforts: { low:"low", medium:"medium", xhigh:"xhigh", off:"none" }、compat.supportsReasoningEffort: true与路由默认值;卸载/取消时还原原值。 提供两个同源 JSON 路由:GET /qwenth/state、POST /qwenth/toggle(toggle要求浏览器同源请求,拒绝无 Origin 的跨源调用)。 - 浏览器端(
lib/client.js,dsh.client双面包):复用conversation.input.model、conversation.input.right与settings.section插槽,渲染模型/思考等级选择器与设置区块, 通过上述 JSON 路由与节点端通信。
注意
- 勾选状态保存在
settings.yaml(llm-pi-ai命名空间),进程重启后勾选本身不保留, 但已写入的配置保留(设置区块显示"已配置(残留)",可在那里取消还原)。 - 卸载本包前建议先在设置区块取消勾选,避免留下规格残留。
- 目标服务器需接受
reasoning_effort: "none"作为关闭值(本插件按其设计); 等级值low/medium/xhigh需为服务器支持的等级。