Retr67/dsh-model-fix ↗★ 1

dsh-model-fix

修复特定模型流式结尾缺失finish_reason导致的传输报错与重试 适合使用opencode聚合端点相关模型的用户;可按模型与provider限定

套件
dsh-model-fix
相容性
待驗證
Harness 依賴範圍
^0.1.0-rc.7
Cordis 依賴範圍
^4.0.1
版本
0.2.0
授權
MIT
最近更新
2026年8月23日

同名套件的其他儲存庫

安裝

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