dsh pluginsEnglish
← 返回热门插件目录

双 VLM 视觉分析插件

huashenglian/dsh-her-eyes · 模型适配

为每个会话提供图像分析工具,并在主、备用 OpenAI 兼容视觉端点之间自动故障转移。

★ 4GitHub 星标
1分支
2026-08-14最近更新
JavaScript开发语言
MIT许可证

项目简介

1. 把插件包放到 $DSHHOME/profiles/web/plugins/dsh-her-eyes/。 2. 在 profile 的 package.json dependencies 加 "dsh-her-eyes": "file:./plugins/dsh-her-eyes"。 3. 在 profile 的 dsh.profile.bundles 数组加入 "dsh-her-eyes"。 4. 运行 pnpm install(或 npx --yes pnpm@11.7.0 install),重启 dsh web。 不要在 profile 的 cordis.patch.yml 里再加 - insert: - id: her-eyes 一行——bundle 已自带。重复 insert 会导致启动时报 duplicate loader entry id: her-eyes。 配置

所有配置集中在一个 JSON 文件:$DSHHOME/vlm-vision.json(默认 /.dsh/vlm-vision.json)。 endpoint:OpenAI 兼容 base(如 https://api.openai.com/v1)或完整 …/chat/completions 地址。 apiKey:文件中可留空;通过设置面板保存,存储时打码。 retryCount:单个 API 连续失败超过该次数后,切换当前使用的主/备 API。

本包是双面插件: 宿主半(lib/index.js):cordis 插件,在全局工具注册表注册 analyzeimage 工具,在 web server 注册 /vlm/config|models|reset 路由,读写 vlm-vision.json。 浏览器半(lib/client.js):浏览器模块,因包声明了 dsh.client 由 ModuleLoader 加载。注册 设置 → 视觉模型 (VLM) 分区(list 槽 settings.section,id vlm-vision,order 40)与 locale 命名空间 settings.her-eyes。

安装命令

dsh plugin --profile web add github:huashenglian/dsh-her-eyes
查看 GitHub 仓库 ↗返回热门插件目录