bitterSmilezzz/dsh-model-fix0

dsh-model-fix

DSH 模型流式缺陷修复:opencode 聚合端点上 muse-spark-1.2 不发送 finish_reason/[DONE],导致 pi-ai 每次对话结尾报 "Stream ended without finish_reason"(TRANSPORT)并触发重试。本插件在 llm/stream waterfall 上把「已输出内容但结尾被截断」的 finish 改写为正常 stop,直连即可使用,无需代理。

包名
dsh-model-fix
版本
0.1.0
最近更新
2026年8月19日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:bitterSmilezzz/dsh-model-fix

配置

cordis.patch.ymlconfig 两个字段:

字段默认说明
modelPattern^muse-spark对模型 id 测试的正则;只修复匹配的模型
providers[]provider 路由键白名单(如 opencode-go3);空 = 所有 provider 中匹配的模型
- id: model-fix
  name: dsh-model-fix
  config:
    modelPattern: '^muse-spark'
    providers: []