gugu123a/dsh-tool-see-image ↗★ 4
dsh-tool-see-image
适用于 DSH 的 see_image 工具插件,将图像文件路由至可配置的视觉模型,并将描述返回给纯文本模型。
AI 分析
核心用途是为纯文本大模型赋予“看图”能力。适合在使用不支持多模态的主模型时,需要临时解析图片内容的用户。默认使用智谱glm-4v-flash作为免费视觉解析后端。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:gugu123a/dsh-tool-see-image说明文档
阅读完整 README ↗Configuration (tool-see-image line in cordis.patch.yml)
| Key | Default | Description |
|---|---|---|
baseURL | https://open.bigmodel.cn/api/paas/v4 | OpenAI-compatible endpoint; the plugin appends /chat/completions |
apiKeyEnv | ZHIPU_API_KEY | Env var name that holds the API key |
model | glm-4v-flash | Vision model id (free on Zhipu) |
maxTokens | 1024 | Max output tokens. Note: glm-4v-flash caps at 1024 (higher returns 400 max_tokens参数非法; raise it if you switch to a bigger model) |
timeoutMs | 60000 | Request timeout |
maxBytes | 15728640 (15MB) | Per-image size limit |
prompt | (Chinese detailed-description instruction) | Default question; the question argument takes precedence |
To use a different vision API, change these three keys, e.g. SiliconFlow:
config:
baseURL: https://api.siliconflow.cn/v1
apiKeyEnv: SILICONFLOW_API_KEY
model: Qwen/Qwen2.5-VL-32B-Instruct