co-Elly/dsh-plugin-vision ↗★ 0
dsh-plugin-vision
DSH 视觉能力插件,通过对接 GLM-4V-Flash 接口,使纯文本大模型具备图像分析能力。
AI 分析
核心用途是为不支持多模态的纯文本模型补充图片理解与分析工具。适合需要让 AI 识别本地图片、截图,且希望使用免费视觉模型的用户。
安装
此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗
说明文档
阅读完整 README ↗⚙️ Configuration
Get a free API Key
- Visit Zhipu Open Platform
- Register and log in
- Create an API Key in the API Keys page
- The
glm-4v-flashmodel is free — no payment needed
Environment variables
export ZHIPU_API_KEY="your-api-key"
cordis.yml
plugins:
- name: dsh-plugin-vision/cordis
config:
apiKey: "your-api-key" # or use $ZHIPU_API_KEY
baseUrl: "https://api.z.ai/api/paas/v4/chat/completions" # default
model: "glm-4v-flash" # default
🚀 Usage
Once registered, the agent automatically gets the vision_analyze tool:
vision_analyze({
image_path: "/path/to/screenshot.png",
question: "What is shown in this chart?"
})
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
image_path | string | ✅ | Image file path or HTTP(S) URL |
question | string | ❌ | Question about the image (default: "请描述这张图片的内容") |
Returns
{
"description": "A bar chart showing monthly revenue..."
}