← 返回列表
D

dsh-plugin-thinking-mode

v0.1.0 · 3 天前发布

DeepSeek Harness plugin: per-request thinking-mode switch (enable_thinking) for Qwen3-family models on OpenAI-compatible endpoints

deepseek-harnessdsh-pluginthinking-modeqwenllm

README

dsh-plugin-thinking-mode

DeepSeek Harness 插件:为 Qwen3 系列模型(Qwen3.8-27B 等,经 OpenAI 兼容端点提供,如 SGLang / vLLM / Qwen Cloud 兼容网关)切换思考(thinking)模式

参考:

  • 模型卡片 <https://huggingface.co/Qwen/Qwen3.8-27B> —— Qwen3.8 默认开启思考,可通过 Chat Completions API 的 chat_template_kwargs: { enable_thinking: true|false } 按请求开关。

  • DSH 插件教程 <https://deepseek-harness.github.io/deepseek-harness/develop/basic/>
  • 功能

    | 组件 | 说明 |
    | --- | --- |
    | thinking_mode 工具 | 模型或用户可调用:get / on / off / auto / toggle。输出当前模式、说明、是否变更、两套采样预设,以及默认模型路由上拦截是否生效(interceptActive)。 |
    | thinking-mode 设置节 | 持久化在 ~/.dsh/settings.yamlapplies: live 即时生效,并在 Web 设置页中显示(设置页里也能直接切换,是第二个切换入口)。 |
    | 系统提示段 | 每轮重新渲染,向模型报告当前模式及可用操作(模型知道如何响应"关闭思考/打开思考"这类指令)。 |
    | llm/stream 拦截器 | 全局 waterfall 监听器。当模式为 on/off 请求命中

    查看完整 README →

    版本兼容矩阵

    DSH 版本状态说明
    dsh@0.1.0-rc.6 ✅ 兼容 cordis patch ✅
    dsh@0.1.0 ✅ 兼容 标准 patch ✅
    dsh@0.2.0 ⚠️ 待验证 待实测(API 可能在变)
    dsh@0.3.0+ ❓ 未知 尚未发布

    💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正

    元数据

    License
    MIT
    npm
    dsh-plugin-thinking-mode
    Repo
    git+https://github.com/lovedheart/dsh-plugin-thinking-mode.git
    Engines
    {}
    Weekly DL
    0
    Monthly DL
    0
    dsh.bundle
    {"bundle":{"patch":"./cordis.patch.yml"}}