Agent 与工作流dsh-plugin

dsh-llm-retry-settings

DSH 插件:为 DSH LLM 自动重试引擎(@deepseek-ai/dsh-llm-retry)提供设置卡片。在 设置 → 通用 中可调整重试次数与退避、勾选或自定义错误码、按 provider/model 单独设策略,并可选在回答被输出 token 上限截断时自动续写。

Stars
8
Forks
1
Open Issues
0
最近 Push
2026年9月22日
最新版本
v0.1.12
24h Growth
+0
7d Growth
+3

安装

dsh plugin --profile web add github:zeng6125-rgb/dsh-llm-retry-settings

概览

DSH 插件:为 DSH LLM 自动重试引擎(@deepseek-ai/dsh-llm-retry)提供设置卡片。在 设置 → 通用 中可调整重试次数与退避、勾选或自定义错误码、按 provider/model 单独设策略,并可选在回答被输出 token 上限截断时自动续写。

  • 在 设置 → 通用 中提供设置卡片,自带客户端包(lib/client.js),无需单独的 UI 包。
  • 覆盖 agent/request-error 重试策略的 maxRetries、initialDelayMs、maxDelayMs 与 jitterRatio;默认 enabled: false 即完全绕过。
  • retryableCodes 将额外错误码合并进各 provider 自身列表(不会替换);默认 INVALID_REQUEST 与 PI_AI_ERROR。
  • 错误码按“重试是否有帮助”分为六组;自定义 分组可输入自由格式错误码,校验规则为 A-Z 0-9 _ - .。
  • 输出截断自动续写(默认关闭):每次截断排队一次续写轮次,受 maxContinuations 上限约束。
  • continuationPrompt 可自行改写,留空则使用内置措辞;continueOnError 可在重试耗尽后对瞬时错误再续写一次。
  • 按 provider/model 单独设策略:首个匹配行生效,支持 '*' 通配,数值 -1 表示继承全局值。
  • 只读观测面板:按错误码与 provider/model 统计重试失败、自动续写、触顶与跳过轮次,并提供 ~/.dsh/logs/dsh-llm-retry-settings/host.log 日志。

相关插件