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,直连即可使用,无需代理。

AI 분석

核心用途是拦截并修复如 muse-spark-1.2 等模型在特定端点不发送结束标识导致的报错与重试。适合使用此类特定模型且受流式中断困扰的用户。直连即可生效,支持正则匹配和提供商白名单过滤。

패키지
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: []