MacilyDots/dsh-image-count-guard ↗★ 0

dsh-image-count-guard

超限时自动将历史图片转为文本占位符并重试 适合在使用多模态视觉模型时,频繁因发送图片过多导致接口报错请求失败的场景。

包名
dsh-image-count-guard
兼容性
待验证
版本
0.1.0
许可证
MIT
最近更新
2026年10月9日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:MacilyDots/dsh-image-count-guard

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