fishcg/dsh-input-prediction ↗★ 0
dsh-input-prediction
DSH 输入预测插件:在输入框里用灰字续写你可能要发的下一句(Tab 接受),每轮回复后再给 1–3 条可一键发送的建议。 提供灰字输入预测和一键发送的后续建议,适合想要提升打字与对话效率的用户。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:fishcg/dsh-input-predictionREADME
Read the full README ↗Configuration
Everything has a working default. The most common knob: reasoningEffort must stay off
(a completion is a dozen characters long — reasoning tokens would eat the whole budget and
return empty text). See the Chinese section below for the full config table.
配置
配置写在 cordis.patch.yml 里(或 profile 的 cordis.patch.yml 里同 id 覆盖):
- insert:
- id: dsh-input-prediction
name: dsh-input-prediction
config:
enabled: true
provider: ''
model: ''
reasoningEffort: 'off'
maxTokens: 160
temperature: 0.3
contextMessages: 16
contextChars: 600
maxSuggestionChars: 60
styleHint: ''
# —— 下面这些是「出厂默认」,用户偏好文件优先 ——
completionEnabled: true
chipsEnabled: true
chipCount: 3
chipMaxChars: 40
chipsMaxTokens: 320
chipsTemperature: 0.7
settingsFile: ''
debugLog: ''
| 键 | 默认 | 说明 |
|---|---|---|
enabled | true | 总开关。false 时客户端拿到 hello 后直接不工作 |
provider / model | '' | 留空 = 跟随「默认模型」设置(agent-default-model) |
reasoningEffort | off | off/low/high/max,'' = 跟随 provider。别改成 high:修补全是「续写十几个字」,一开思考 maxTokens 全被吃光,返回空文本 |
maxTokens | 160 | 灰字建议都很短,够用 |
temperature | 0.3 | 想更放飞就调高 |
contextMessages | 16 | 喂给模型的最近消息条数 |
contextChars | 600 | 单条消息截断长度 |
maxSuggestionChars | 60 | 灰字建议文本上限(超出会被砍) |
styleHint | '' | 追加到系统提示词的口吻要求,比如「简短、别用问号」 |
completionEnabled | true | 出厂默认:灰字补全(面板里可改,改了以文件为准) |
chipsEnabled | true | 出厂默认:回复后推荐 |
chipCount | 3 | 出厂默认:推荐条数(夹到 1–3) |
chipMaxChars | 40 | 单条候选的长度上限(夹到 8–120) |
chipsMaxTokens | 320 | 生成候选的 token 预算(夹到 64–1024) |
chipsTemperature | 0.7 | 生成候选的温度(夹到 0–1.5);比灰字更发散一点 |
settingsFile | '' | 用户偏好文件路径,空 = $DSH_HOME/input-prediction.settings.json |
debugLog | '' | 诊断日志路径(默认关);超 1MB 自动清空 |
配置改动要重新载入一次 patch 层才生效:动一下 profile 的 cordis.patch.yml(保存即触发一次 live reload,已验证会重新读入本插件的 bundle patch),或者重启 DSH 桌面端。