2503455457-max/dsh-reasoning-translate-zh ↗★ 0
dsh-think-zh
把模型的思考过程(reasoning)实时翻译成中文:折叠摘要显示中文,展开显示中文正文 + 英文原文;翻译引擎可在 DSH 已配置模型与本地 Ollama 之间切换。只作用于显示层,不修改会话记录。
Other repositories with this package name
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:2503455457-max/dsh-reasoning-translate-zhREADME
Read the full README ↗首次使用
默认引擎是「DSH 已配置模型」——用你账号里当前选中的模型翻译,会产生模型调用费用。
想完全免费、且内容不出本机:装 Ollama 并 ollama pull qwen2.5:1.5b,
然后在右上角「思」面板里把引擎切成 Ollama 本地。
配置
首次运行会把配置写到 $DSH_HOME/dsh-think-zh/config.json
(默认 ~/.dsh/dsh-think-zh/config.json):
{
"enabled": true,
"engine": "dsh",
"showOriginal": true,
"defaultOpenOriginal": false,
"minChars": 40,
"glossary": [],
"engines": {
"dsh": { "provider": "deepseek-account", "model": "deepseek-flash", "reasoningEffort": "off", "maxTokens": 1024, "temperature": 0 },
"ollama": { "baseURL": "http://127.0.0.1:11434", "model": "qwen3.8:latest", "keepAlive": "30m", "timeoutMs": 120000 },
"openai-compatible": { "baseURL": "", "model": "", "apiKey": "", "displayName": "OpenAI-compatible", "timeoutMs": 60000 }
}
}
| 字段 | 说明 |
|---|---|
enabled | 总开关。关掉即完全恢复原生英文显示 |
engine | dsh / ollama / openai-compatible |
showOriginal | 是否提供「展开英文原文」入口 |
defaultOpenOriginal | 是否默认展开英文原文 |
minChars | 推理短于这个长度不翻译 |
engines.dsh.provider / .model | 留空时回退到 agentDefaultModel 的当前选择 |
界面右上角有一个标着「思」的小圆钮(页面固定定位,不占布局),点开是设置面板: 开关、英文原文开关、引擎切换、引擎连通性测试。面板里改动即时保存到上面的配置文件。
如果右上角与你的界面控件打架,改 client.source.js 里那两个 top/right 常量再重新构建即可。