dsh-anthropic-image-clamp:多圖 Claude 請求前的圖片尺寸鉗制

在 DeepSeek Harness 中,會話內聯圖片超過 20 張時 Anthropic 會將單邊最大像素限制爲 2000px,易觸發 messages 圖片尺寸錯誤。host 插件 dsh-anthropic-image-clamp 包裝對 api.anthropic.com/v1/messages 的 fetch,在出站前按 maxDimension(默認 2000)縮小超長邊的 base64 內聯圖,結果確定性並可按內容哈希緩存。安裝:dsh plugin --profile desktop add github:noahchalifour/dsh-anthropic-image-clamp,重啓 DSH 後生效;可在 cordis.patch.yml 中配置 maxDimension 與 hosts。經 subscriptions-plugin HTTP 代理的請求可能繞過包裝。MIT,Node >= 22。

閱讀全文