dsh-plugin-gateway-compat
Verifieddsh-plugin-gateway-compat · v0.1.0 · MIT
DeepSeek Harness compatibility plugin for third-party OpenAI-style gateways: tolerates SSE streams that close without the [DONE] sentinel after a complete reply.
Install
dsh plugin add dsh-plugin-gateway-compat Confirm the layer applied with dsh --profile default --dump-config — see the install guide.
Source
Published to npm without a public repository. Inspect the package contents before installing.
Tags
Readme
dsh-plugin-gateway-compat
English | 中文
给 DeepSeek Harness 用的第三方 OpenAI 式网关兼容层。
有些网关在最后一个内容块之后直接结束 SSE 流,不发 data: [DONE] 哨兵。适配器会如实
把它报成 STREAM_CLOSED,于是一次已经完整送达的回复被判成失败的一轮。本插件包装
llm/stream waterfall,把这一种终止错误改写成正常的 stop。
而且仅当确实已经收到正文、且没有工具调用正在进行中时才改写——所以真正的中途断流 和被截断的工具调用仍然响亮地失败,并保留重试资格。
安装
dsh plugin --profile web add dsh-plugin-gateway-compat
无需配置。它不注册任何工具,对模型不可见。
许可
MIT