SundaeYAGO/dsh-stream-timeout-fix ↗★ 0

dsh-stream-timeout-fix

DSH host plugin for third-party/self-hosted OpenAI-compatible endpoints: replace undici's default 300s body/headers timeouts so long silent gaps in LLM SSE streams no longer die as misleading 'TypeError: terminated' (TRANSPORT) errors. No retry logic included. 适合使用第三方或自建API,常因SSE流长时间静默导致连接报错的用户。

Package
dsh-stream-timeout-fix
Compatibility
Unverified
Version
1.0.0
License
MIT
Last updated
Oct 12, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:SundaeYAGO/dsh-stream-timeout-fix

Configuration

SettingDefaultWhere
bodyTimeoutMs1800000patch row config, or env DSH_STREAM_TIMEOUT_BODY_MS
headersTimeoutMs600000patch row config, or env DSH_STREAM_TIMEOUT_HEADERS_MS

Set either to 0 to disable that clock entirely (not recommended globally — you lose the last-resort reclamation of dead sockets).