samuelrubiodev/dsh-hyper-tools ↗★ 1

dsh-hyper-tools

Keeps Charm Hyper requests under the gateway's 10 MiB body cap: replaces the oldest images with placeholders (newest survive) before sending, and retries with a tighter projection when the gateway still rejects the body. 适合图片体积受限环境下保持接口成功率,需接受旧图替换与重试行为。

Package
dsh-hyper-tools
Compatibility
Unverified
Harness peer range
^0.1.5-rc.1
Cordis peer range
^4.0.1
Version
0.1.0
License
MIT
Last updated
Sep 13, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:samuelrubiodev/dsh-hyper-tools

Configuration

Every field is optional; the row config carries them.

FieldDefaultMeaning
providers['charm-hyper', 'hyper']Provider routes to guard; matching is case-insensitive.
maxRequestImageBytes6291456 (6 MiB)Aggregate base64 image payload one request may carry.
maxImagesPerRequestabsentOptional bound on images per request.
recoverytrueRetry once when the gateway rejects the body.
recoveryBudgetFactor0.5Image-budget multiplier for the recovery retry.
byteQuantum1Whole-step removal quantum for byte overflow; 1 keeps the newest retainable images.
countQuantum1Whole-step removal quantum for count overflow.
- id: hyper-tools
  name: 'dsh-hyper-tools'
  config:
    providers: ['charm-hyper']
    maxRequestImageBytes: 6291456