DeepseekDays/dsh-ofm-addition ↗★ 0
dsh-ofm-addition
OFM Addition — Our Free Model 的附属插件。两项能力:①回答因达到输出 token 上限被截断时自动替你发送「继续」(连续次数可设上限或「不限」,并在接近上下文窗口时自动停下);②每个 Our Free Model 路由的请求参数表——思考档位、输出上限、温度与停止序列,可逐模型调整、一键顶配,或让一个模型按各模型声明的能力填写。 适合需要解决长文本截断并精细调整模型请求参数的用户。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:DeepseekDays/dsh-ofm-additionドキュメント
README 全文を読む ↗配置
存三份 JSON,都在 $DSH_HOME(默认 ~/.dsh)下:
ofm-addition/settings.json—— 设置页写的那些字段ofm-addition/stats.json—— 计数与最近 60 条决策记录ofm-addition/params.json—— 逐模型参数表:{ version, scope, entries: { 'provider|model': {...} }, ai }
params.json 是可以在 profile 里预置的:
也可以在 ~/.dsh/profiles/desktop/cordis.patch.yml 里给这一行挂初始值(文件里的值
优先):
- id: ofm-addition
name: dsh-ofm-addition
config:
maxContinuations: 0 # 0 = 不限
contextGuard: true # 不限时唯一的刹车,别关
contextRatio: 0.9
providers: ['our-free-model*']
# 逐模型参数的初始值;文件里已有的值优先(页面里改过的以页面为准)
modelParams:
scope: ['our-free-model*']
entries:
'our-free-model|space-bunny-free':
enabled: true
effort: deep # 必须是该模型声明过的档位
maxTokens: 32768
temperature: null # null = 模型默认
stop: []
ai:
provider: '' # 留空 = 用当前默认模型
model: ''
maxTokens: 4096