CaseyTso/analyze_image_tool0

analyze-image-tool

A vision bridge for text-only DeepSeek Harness models: registers an `analyze_image` tool that answers questions about images via ANY OpenAI-compatible vision/multimodal endpoint (SiliconFlow, DashScope, Zhipu, OpenRouter, Ollama, ...).

AI 分析

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

パッケージ
analyze-image-tool
バージョン
0.1.0
ライセンス
MIT
最終更新
2026/08/14

インストール

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

ドキュメント

README 全文を読む ↗

配置

在 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,完全离线