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