huyang218/dsh-plugins--packages-gateway-compat ↗★ 0
dsh-plugin-gateway-compat
DeepSeek Harness compatibility plugin for third-party OpenAI-style gateways: tolerates SSE streams that close without the [DONE] sentinel after a complete reply.
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:huyang218/dsh-plugins#efa02c42cd65f80b544659dfd6dbd00b6f293d41&path:packages/gateway-compat说明文档
阅读完整 README ↗dsh-plugin-gateway-compat
English | 中文
Compatibility shim for third-party OpenAI-style gateways used with DeepSeek Harness.
Some gateways end an SSE stream right after the last content chunk, without the
data: [DONE] sentinel. The adapter correctly reports that as STREAM_CLOSED,
which turns a fully delivered reply into a failed turn. This plugin wraps the
llm/stream waterfall and rewrites that one terminal error into a normal
stop finish.
It does so only when plain content was actually received and no tool call was in flight, so genuine mid-stream disconnects and truncated tool calls still fail loudly and stay eligible for the provider's retry policy.
Install
dsh plugin --profile web add dsh-plugin-gateway-compat
No configuration. The plugin registers no tools and is invisible to the model.
License
MIT