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. 适合图片体积受限环境下保持接口成功率,需接受旧图替换与重试行为。

パッケージ
dsh-hyper-tools
互換性
未検証
Harness ピア範囲
^0.1.5-rc.1
Cordis ピア範囲
^4.0.1
バージョン
0.1.0
ライセンス
MIT
最終更新
2026/09/13

インストール

$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.

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