Hielo19/dsh-think-chinese ↗★ 0

dsh-think-chinese

为会话注入提示词以使模型始终用中文思考 适合希望强制大模型思考链(reasoning)输出中文的用户

包名
dsh-think-chinese
兼容性
待验证
版本
1.0.0
许可证
MIT
最近更新
2026年10月14日

同名包的其他仓库

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Hielo19/dsh-think-chinese

直接使用 Releases 中的附件

dsh plugin --profile web add https://github.com/Hielo19/dsh-think-chinese/releases/download/v1.0.0/dsh-think-chinese-1.0.0.tgz

配置

注意:本插件刻意不导出 Config(原因见「实现要点」),因此它不会出现在 设置 → 插件页的配置表单中(cordis_inspect 会将其报为 status: absent)。 修改配置请编辑 YAML,DSH 会重读 profile 的 patch 层;若未生效,重启应用即可重新装载。

配置可写在 bundle 自带的 cordis.patch.yml,也可写在 profile 自己的 cordis.patch.yml (用户层优先级更高,可覆盖 bundle 层):

- id: dsh-think-chinese
  name: dsh-think-chinese
  config:
    enabled: true          # 总开关,false 时完全不注入
    language: 中文          # 目标语言名,会写入提示词文案
    scope: reasoning       # reasoning | reply | all
    extraInstruction: ''   # 追加要求,例如术语表

scope 的取值含义:

取值效果
reasoning只强制思考链使用中文,正文保持原样(默认)
all思考链与正文均使用中文
reply只强制正文使用中文

extraInstruction 会作为段落最后一部分追加,适合放置「术语统一译法」这类要求。