samuelrubiodev/dsh-hyper-tools ↗★ 1
dsh-hyper-tools
超限图片请求自动降级占位并重试,保持网关请求体可发 适合图片体积受限环境下保持接口成功率,需接受旧图替换与重试行为。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:samuelrubiodev/dsh-hyper-tools說明文件
閱讀完整 README ↗Configuration
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