Bundle
@gelomen/glm-vision-plugin
DSH Web 插件:调用智谱 GLM 视觉模型分析图片(analyze_image 工具 + 插件设置卡片)。
- Source
- Gelomen
- stars
- 1 stars
- License
- MIT
- Updated
- Updated 14 days ago
Readme
# @gelomen/glm-vision-plugin DSH 插件:把智谱(Zhipu)GLM 视觉模型接进 DSH,提供 `analyze_image` 工具。 ## 构建 ```sh pnpm install pnpm build ``` ## 安装 ### 方式一:npm(推荐) ```sh dsh plugin --profile web add @gelomen/glm-vision-plugin ``` 装完重启 `dsh web` 生效。 ### 方式二:手动装配 1. 在 `~/.dsh/profiles/web/package.json` 的 `dependencies` 加 `"@gelomen/glm-vision-plugin": "^0.2.0"`; 2. 在 `dsh.profile.bundles` 数组追加 `"@gelomen/glm-vision-plugin"`; 3. `cd ~/.dsh/profiles/web && pnpm install`,重启 `dsh web`。 ### 方式三:git 直装 ```sh 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` |
Install
dsh plugin --profile web add github:Gelomen/glm-vision-plugin
Profile: web
With the hub plugin installed, ask your agent to install it by name — it resolves the same plan shown here.
dsh plugin --profile web add github:stvlynn/dsh.fish#path:packages/dsh-plugin-hub
install gelomen-glm-vision-plugin from the hub
- This package builds from source on install. pnpm will ask you to allow its build script — that is permission to run the package’s code on your machine, outside the agent sandbox. Only allow sources you trust.
- This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.