New:Socket for Asana Is Now Available.Learn more
Get Started

dsh-plugin-gateway-compat

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

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

Keywords

dsh

FAQs

Package last updated on 20 Aug 2026

Related posts