DSH 插件:把智谱(Zhipu)GLM 视觉模型接进 DSH,提供 analyze_image 工具。
pnpm install
pnpm builddsh plugin --profile web add @gelomen/glm-vision-plugin装完重启 dsh web 生效。
- 在
~/.dsh/profiles/web/package.json的dependencies加"@gelomen/glm-vision-plugin": "^0.1.3"; - 在
dsh.profile.bundles数组追加"@gelomen/glm-vision-plugin"; cd ~/.dsh/profiles/web && pnpm install,重启dsh web。
dsh plugin --profile web add Gelomen/glm-vision-plugin| 项 | 默认 |
|---|---|
| 端点 | https://open.bigmodel.cn/api/paas/v4 |
| 模型 | glm-4.6v-flash |
| 温度 | 0.3 |
| 超时 | 90s |
| credentials 引用 | ZHIPU_API_KEY |