CaseyTso/analyze_image_tool0

analyze-image-tool

纯文本模型的视觉桥接工具:注册 analyze_image 工具,通过任意兼容 OpenAI 的多模态端点解答关于图片的问题。

AI 分析

核心用途是为纯文本模型赋予视觉能力。适合使用 DeepSeek 等纯文本模型,但又需要让其通过第三方多模态 API 识别图片的用户。

套件
analyze-image-tool
版本
0.1.0
授權
MIT
最近更新
2026年8月14日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:CaseyTso/analyze_image_tool

配置

在 profile 的 cordis.patch.yml 里针对插件 id 配置(或在设置界面/环境变量配置):

- id: analyze-image-tool
  config:
    baseURL: https://api.siliconflow.cn/v1     # 任意 OpenAI 兼容端点
    apiKey: ''                                  # 可留空,走下方解析链
    model: Qwen/Qwen3-VL-32B-Instruct           # 端点上的视觉/多模态模型 id
    maxTokens: 2048
    timeoutMs: 60000
    maxImageBytes: 10485760

端点示例(都是同一套配置,任选)

场景baseURLmodel 示例说明
SiliconFlow(默认)https://api.siliconflow.cn/v1Qwen/Qwen3-VL-32B-Instruct需 key,视觉能力强
阿里百炼 DashScopehttps://dashscope.aliyuncs.com/compatible-mode/v1qwen3-vl-flash兼容模式,性价比高
智谱https://open.bigmodel.cn/api/paas/v4glm-4.6v-flash有免费档
OpenRouterhttps://openrouter.ai/api/v1google/gemini-2.5-flash多模型聚合
Ollama 本地http://localhost:11434/v1qwen3-vl:4b无需 key,完全离线

API key 解析链(按顺序)

  1. 插件配置 apiKey
  2. 环境变量 VISION_API_KEY,其次 SILICONFLOW_API_KEY(可写入 ~/.dsh/.env 或导出)
  3. dsh 凭据通道(VISION_API_KEY,其次 SILICONFLOW_API_KEY
  4. 本地端点(localhost)无需 key

端点示例(都是同一套配置,任选)

场景baseURLmodel 示例说明
SiliconFlow(默认)https://api.siliconflow.cn/v1Qwen/Qwen3-VL-32B-Instruct需 key,视觉能力强
阿里百炼 DashScopehttps://dashscope.aliyuncs.com/compatible-mode/v1qwen3-vl-flash兼容模式,性价比高
智谱https://open.bigmodel.cn/api/paas/v4glm-4.6v-flash有免费档
OpenRouterhttps://openrouter.ai/api/v1google/gemini-2.5-flash多模型聚合
Ollama 本地http://localhost:11434/v1qwen3-vl:4b无需 key,完全离线