JD962/dsh-model-reasoning-intensity

JD962★ 1JavaScript最后同步: 2026-08-18

在 GitHub 打开

This plugin complements DeepSeek Harness by fixing the problem where third-party platforms are unable to select the model's reasoning intensity.

README 摘要

Reasoning Effort Bridge / 思考强度桥 A DeepSeek Harness (DSH) host plugin that gives third-party ( llm-pi-ai ) models a selectable thinking-effort row in the composer's model menu — Off / Low / Medium / High / Xhigh / Max — the same experience official DeepSeek models already have. 一个 DeepSeek Harness(DSH)宿主插件:为第三方( llm-pi-ai )模型在输入框的 模型菜单中补齐思考强度选择(Off/Low/Medium/High/Xhigh/Max),与官方模型 体验一致。 How it works / 工作原理 DSH only renders the effort row when a model reports reasoning metadata. Official llm-deepseek models carry a built-in level table; third-party llm-pi-ai models report levels only when their profile entry declares reasoningEfforts — which hand-added gateway routes never do. The bridge watches the llm-pi-ai settings namespace and fills the default six-level map into every model that currently reports no reasoning metadata (probed via llm.resolveModelInfo — the exact condition under which the menu hides the row): DSH 只在模型上报 reasoning 元数据时渲染强度行。官方模型内置档位表;第三方 模型只有显式声明 reasoningEfforts 才会上报——手工添加的网关路由没有该 字段。本插件监听 llm-pi-ai 设置命名空间,对 当前完全没有 reasoning 元数据的模型(以 llm.resolveModelInfo 探测,与菜单隐藏强度行同判据) 补写默认六档表: Selecting a level dispatches a real request parameter ( reasoning.effort on openai-r…

在 GitHub 查看完整 README →
工具/开发dsh-plugindsh-plugins

分类