Hielo19/dsh-think-chinese ↗★ 0
dsh-think-chinese
DSH 插件:让模型的思考链(reasoning / thinking)始终用中文输出——为每个会话注入一条“用中文思考”的系统提示段落。 适合希望强制大模型思考链(reasoning)输出中文的用户
同名パッケージの別リポジトリ
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Hielo19/dsh-think-chineseドキュメント
README 全文を読む ↗直接使用 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 会作为段落最后一部分追加,适合放置「术语统一译法」这类要求。