Retr67/dsh-model-fix ↗★ 1

dsh-model-fix

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

Package
dsh-model-fix
Compatibility
Unverified
Harness peer range
^0.1.0-rc.7
Cordis peer range
^4.0.1
Version
0.2.0
License
MIT
Last updated
Aug 23, 2026

Other repositories with this package name

Install

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

配置

cordis.patch.yml 中 config 两个字段:

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

只修 luna 可改为 modelPattern: '^gpt-5\.6-luna';只想限定某个路由可加 providers: [ 'opencode-go' ]。