pureexe/dsh-image-base640

dsh-image-base64

DeepSeek Harness plugin: transcodes images to a base64-safe format (PNG) before a vision request, fixing gateways like LM Studio that reject non-PNG/JPEG/GIF data URLs with "'url' field must be a base64 encoded image."

AI Analysis

适合使用LM Studio等对非PNG/JPEG/GIF格式报错的网关的用户。

Package
dsh-image-base64
Version
0.1.0
License
MIT
Last updated
Sep 12, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:pureexe/dsh-image-base64

Configuration

Accepted media types default to [image/png, image/jpeg, image/gif] (LM Studio's whitelist). To widen or narrow that, target the plugin's id from your own patch layer (profile cordis.patch.yml or $DSH_HOME/cordis.patch.yml):

- id: image-base64-compat
  config:
    acceptedMediaTypes: [image/png, image/jpeg, image/gif, image/webp]