@wuxjs/dsh-chat-continue
DSH plugin that auto-retries failed API requests — when third-party APIs return errors (rate limiting, service unavailable, etc.), intercepts and retries to keep the conversation going. Supports auto/manual mode with configurable status codes and error codes.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Chu-m/dsh-chat-continue说明文档
阅读完整 README ↗Usage
- Restart DSH after installation
- Open Settings (sidebar gear icon)
- Find the Chat Continue tab
- Configure your settings:
| Setting | Description | Default |
|---|---|---|
| Retry Mode | Auto = automatic retry, Manual = notification popup | Auto |
| Retry Interval | Seconds to wait between retries (1–60) | 5s |
| Max Retries | Maximum retry attempts (1–100) | 10 |
| Retry HTTP Status Codes | Comma-separated, e.g. 429, 503 | 429 |
| Retry Error Codes | Comma-separated, e.g. rate_limit, service_unavailable | rate_limit |
Configuration Examples
Example 1: OpenAI-compatible API returning 429
Retry HTTP Status Codes: 429
Retry Error Codes: rate_limit
Example 2: Custom API returning 503 + service_unavailable
Retry HTTP Status Codes: 429, 503
Retry Error Codes: rate_limit, service_unavailable
Example 3: Strict rate limiting with quota exceeded
Retry HTTP Status Codes: 429
Retry Error Codes: rate_limit, quota_exceeded, insufficient_quota
使用说明
- 安装并重启 DSH
- 打开 Settings(侧边栏齿轮图标)
- 找到 对话继续 选项卡
- 配置参数:
| 配置项 | 说明 | 默认值 |
|---|---|---|
| 重试模式 | 自动 = 自动重试,手动 = 弹窗通知 | 自动 |
| 重试间隔 | 每次重试之间的等待时间(1–60 秒) | 5 秒 |
| 最大重试次数 | 超过此次数后停止重试(1–100 次) | 10 次 |
| 重试 HTTP 状态码 | 逗号分隔,如 429, 503 | 429 |
| 重试错误码 | 逗号分隔,如 rate_limit, service_unavailable | rate_limit |
配置示例
示例 1:OpenAI 兼容接口返回 429
重试 HTTP 状态码: 429
重试错误码: rate_limit
示例 2:自定义 API 返回 503 + service_unavailable
重试 HTTP 状态码: 429, 503
重试错误码: rate_limit, service_unavailable
示例 3:严格限流 + quota_exceeded
重试 HTTP 状态码: 429
重试错误码: rate_limit, quota_exceeded, insufficient_quota