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. 适合图片体积受限环境下保持接口成功率,需接受旧图替换与重试行为。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:samuelrubiodev/dsh-hyper-toolsConfiguration
Every field is optional; the row config carries them.
| Field | Default | Meaning |
|---|---|---|
providers | ['charm-hyper', 'hyper'] | Provider routes to guard; matching is case-insensitive. |
maxRequestImageBytes | 6291456 (6 MiB) | Aggregate base64 image payload one request may carry. |
maxImagesPerRequest | absent | Optional bound on images per request. |
recovery | true | Retry once when the gateway rejects the body. |
recoveryBudgetFactor | 0.5 | Image-budget multiplier for the recovery retry. |
byteQuantum | 1 | Whole-step removal quantum for byte overflow; 1 keeps the newest retainable images. |
countQuantum | 1 | Whole-step removal quantum for count overflow. |
- id: hyper-tools
name: 'dsh-hyper-tools'
config:
providers: ['charm-hyper']
maxRequestImageBytes: 6291456