Chuyển đến nội dung chính

dsh-plugin-gateway-compat

Đã xác minh

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.

Cài đặt

dsh plugin add dsh-plugin-gateway-compat

Xác nhận layer đã áp bằng dsh --profile default --dump-config — xem hướng dẫn cài plugin.

Mã nguồn

Phát hành lên npm mà không có repository công khai. Hãy kiểm tra nội dung package trước khi cài.

Thẻ

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