Tianbaidi/dsh-plugin-vision0

dsh-plugin-vision

DeepSeek Harness 辅助视觉插件:通过兼容 OpenAI 的视觉接口分析图像,可与任意主文本模型配合使用。

AI 分析

核心用途是为不支持视觉的文本主模型补充图片分析能力。适合需要让智能体处理和描述粘贴图片的 DSH 用户。

套件
dsh-plugin-vision
版本
0.1.0
最近更新
2026年8月15日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Tianbaidi/dsh-plugin-vision

Configuration

KeyDefaultMeaning
baseUrl(empty — required)OpenAI-compatible chat-completions endpoint base URL.
apiKeyEnvVISION_API_KEYEnv var (or stored credential) holding the API key.
model(empty — required)Vision model id on the endpoint.
timeoutMs120000Per-call timeout (thinking vision models need headroom).
maxImageBytes8388608 (8 MB)Hard cap on image size.
attachImagestrueTranscribe pasted images to text for text-only main models.
attachModeautoauto: pass the user's own prompt to the vision model; describe: always generic description.
deepseekVision.enabledtrueRegister the deepseek-vision provider route (DeepSeek + image transcription).
deepseekVision.providerIddeepseek-visionProvider route id shown in the model picker.

Any OpenAI-compatible vision endpoint works. The defaults are deliberately empty so no provider is assumed; pick one:

ProviderbaseUrlmodelNotes
Zhipu GLM (free tier)https://open.bigmodel.cn/api/paas/v4glm-4.6v-flashFree registration, zero cost out of the box
Alibaba DashScope (incl. token plans)https://dashscope.aliyuncs.com/compatible-mode/v1 (or your plan's endpoint)qwen3.7-plus / qwen-vl-maxYour own plan's endpoint if you have one
Ollama (local, offline)http://localhost:11434/v1qwen3-vl:4bNo API key needed
Any OpenAI-compatible gatewayyour gateway's /v1the gateway's vision model

Configure per deployment (e.g., your profile's cordis.patch.yml or the plugin row's config):

- id: vision
  name: dsh-plugin-vision
  config:
    baseUrl: https://open.bigmodel.cn/api/paas/v4
    apiKeyEnv: VISION_API_KEY
    model: glm-4.6v-flash
    timeoutMs: 120000