跳到主要内容

dsh-plugin-gateway-compat

已验证

dsh-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.

安装

dsh plugin add dsh-plugin-gateway-compat

dsh --profile default --dump-config 确认 layer 已生效 —— 参见安装指南

源码

发布到 npm 但没有公开仓库。安装前请检查包内容。

标签

说明文档

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