MacilyDots/dsh-image-count-guard ↗★ 0
dsh-image-count-guard
超限时自动将历史图片转为文本占位符并重试 适合在使用多模态视觉模型时,频繁因发送图片过多导致接口报错请求失败的场景。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:MacilyDots/dsh-image-count-guard說明文件
閱讀完整 README ↗Configuration (optional)
No configuration is needed by default. When you do need it, override by id in the profile's cordis.patch.yml:
- id: image-count-guard
config:
defaultImageLimit: 20 # assumed limit when the error text gives no number
safetyMargin: 2 # margin kept after offloading, so adding one more image does not fail again
maxOffloadPerRetry: 80 # maximum number of images omitted per retry