masknull/dsh-llm-resilience ↗★ 0
dsh-llm-resilience
A configuration card in the DSH Web UI for tuning LLM request retry policy and stream idle timeout (retry mode, max retries, retryable codes, backoff, jitter, timeout).
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:masknull/dsh-llm-resilience说明文档
阅读完整 README ↗Configuration
All fields are optional; blank = provider default.
| Field | Default | Meaning |
|---|---|---|
| Retry mode | normal | normal retries only eligible failure codes; always retries every failure. |
| Max retries | 5 | Eligible retries after the first request (normal mode). |
| Retryable codes | EMPTY_RESPONSE,RATE_LIMIT,SERVER,TIMEOUT,TRANSPORT | Comma-separated failure codes eligible for retry (normal mode). |
| Initial backoff (ms) | 500 | First local backoff delay before retrying. |
| Max backoff (ms) | 10000 | Ceiling for scheduled or provider-requested retry delay. |
| Jitter ratio | 0.1 | Symmetric random multiplier (0..1) around each backoff delay. |
| Stream idle timeout (ms) | 300000 | Max provider idle time while one stream read is outstanding. |