Chu-m/dsh-chat-continue

Chu-m★ 1JavaScript最后同步: 2026-08-22

在 GitHub 打开

Auto-retry failed API requests to keep DSH conversations going. Supports configurable status codes and error codes. 自动重试失败的 API 请求,让 DSH 对话不中断。支持自定义状态码和错误码。

README 摘要

DSH Chat Continue English 中文 A DSH plugin that intercepts third-party API request errors (429 Too Many Requests, 503 Service Unavailable, etc.) and automatically retries the request — preventing agent sessions from stalling when external APIs encounter issues. English The Problem When using DSH to call third-party model APIs (e.g., custom providers, external AI services), those platforms often enforce rate limits or other access restrictions . When the limit is exceeded, the API returns an error (e.g., 429 Too Many Requests, rate limit , quota exceeded ). DSH has built-in retry logic ( dsh-llm-retry ) for DeepSeek API, but it may not cover all third-party error codes. When the built-in retry is exhausted, the agent session stalls mid-conversation , requiring the user to manually type "continue" to resume — a poor experience. The Solution This plugin acts as a second line of defense after DSH's built-in retry. It: 1. Intercepts agent/request-error events after built-in retry fails 2. Matches the error against your configured status codes and error codes 3. Automatically retries or shows a notification for manual confirmation 4. Resumes the conversation seamlessly — no manual "contin…

在 GitHub 查看完整 README →
工具/开发auto-retrycordis-plugindeepseek-harnessdeepseek-harness-plugindshdsh-plugindsh-pluginserror-handling

分类