中文模式
全局中文模式:在系统提示词里要求回复、思考过程、工具说明使用中文(或按区域改为英文)。移植自 dawnliming/dsh-chinese-mode(MIT)。
- 低风险
- 已签名
- chinese-mode v0.1.0
- Chen1431
- 2 次下载
- 更新于 2026-11-22
中文模式(chinese-mode)
全局中文模式:在系统提示词里要求回复、思考过程、工具说明使用中文(或按区域改为英文)。移植自 dawnliming/dsh-chinese-mode(MIT)。
提供什么
- 斜杠命令
/chinese-mode:开关中文模式:/chinese-mode on | off | status - 界面:页面「main」(侧边栏入口),设置卡片
- 系统提示词:向系统提示词追加一段说明(见
index.js的prompt)
需要的授权
不需要任何额外能力。
配置项
在“设置 → 扩展”里改,或写进 config.toml 的 [plugins.chinese-mode]。
| 配置项 | 类型 | 默认值 | 说明 |
|---|---|---|---|
text_reply |
string | (空) | 覆盖“回复语言”要求的文案(留空用默认) |
text_thinking |
string | (空) | 覆盖“思考语言”要求的文案(留空用默认) |
text_tools |
string | (空) | 覆盖“工具说明语言”要求的文案(留空用默认) |
安装
cp -r chinese-mode ~/.dshr/plugins/
dshr plugin list # 确认显示“可用”
来源与许可证
- 上游:dawnliming/dsh-chinese-mode,基于提交
830f1fce7f19(2026-08-18,上游版本 0.2.1) - 版权:Copyright (c) 2026 离冥
- 许可证:MIT(全文见
LICENSE,与上游一致) - 移植说明、相对上游的改动、未移植的部分:见
NOTICE.md
已知限制(未移植 / 未验证)
- “锚定模式”(对名字匹配
liangshen/anchored的预设强制思考用英文):dshr 的prompt读不到当前会话预设,无法判断,未移植。 - 输入框旁的胶囊开关:dshr 插件界面没有对应的输入框控件,用斜杠命令替代。
声明
本移植是对上游作品的修改版本(derivative work),按上游许可证的条款分发;与上游作者无隶属关系,也未经其背书。上游的问题请到上游仓库反馈,移植造成的问题请单独反馈。
许可证
MIT · LICENSE
MIT License
Copyright (c) 2026 离冥
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
版本历史
| 版本 | 发布日期 | 要求 dshr | 大小 | 下载 |
|---|---|---|---|---|
| 0.1.0 | 2026-11-22 | >=0.1 | 6.0 KB | 2 |
已撤回的版本不再出现在插件索引中,已安装的副本不受影响。