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限定

パッケージ
dsh-model-fix
互換性
未検証
Harness ピア範囲
^0.1.0-rc.7
Cordis ピア範囲
^4.0.1
バージョン
0.2.0
ライセンス
MIT
最終更新
2026/08/23

同名パッケージの別リポジトリ

インストール

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

ドキュメント

README 全文を読む ↗

配置

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' ]。