deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
PROJECT README
外接模型识图插件:当当前模型不支持识图但需要识别图片时,通过外部 VL 模型(默认 qwen3.5-omni-plus,OpenAI 兼容接口)识别图片并返回文字描述。
Referer(iconfont/alicdn 使用 https://www.iconfont.cn/,其他 URL 使用同源地址),降低 CDN 403 拒绝概率。read_image 工具、但当前模型不支持图片输入时,插件会自动调用外部 VL 模型识别图片,并把文字描述作为工具结果返回给 AI。read_image 拦截同时支持 file_path 与 url / imageUrl / file_url 参数。在 DSH Web 中进入:
设置 → 外接识图
可配置:
| 配置项 | 说明 |
|---|---|
| 模型提供方 | 服务商名称,例如“阿里云百炼” |
| Base URL | OpenAI 兼容接口地址 |
| 模型名称 | 外部视觉模型名 |
| API Key | 用户手动输入的 API Key |
GET /@dsh-external/ui-external-vision/api/status
响应:
{
"ok": true,
"defaultBaseUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1",
"defaultModel": "qwen3.5-omni-plus"
}
该接口不返回 API Key。
GET /@dsh-external/ui-external-vision/api/config
POST /@dsh-external/ui-external-vision/api/config
Content-Type: application/json
请求体:
{
"provider": "阿里云百炼",
"baseUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1",
"model": "qwen3.5-omni-plus"
}
保存设置页面时,客户端会自动调用该接口,把非敏感配置通过项目 storage domain 持久化保存,并同步到 host 内存供自动识图使用。
POST /@dsh-external/ui-external-vision/api/vision
Content-Type: application/json
请求体:
{
"baseUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1",
"model": "qwen3.5-omni-plus",
"imagePath": "C:\\Users\\...\\image.png",
"prompt": "请详细描述这张图片的内容。"
}
或:
{
"baseUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1",
"model": "qwen3.5-omni-plus",
"imageUrl": "https://example.com/image.png",
"prompt": "用中文描述这张图片"
}
使用 imageUrl 时,host 会先把远程图片下载到内存并转为 base64 data URL,再发送给外部 VL 模型;不会写入磁盘,也不依赖外部模型自行抓取 URL。
API Key 由 host 从项目凭证服务中读取,不需要在请求体中传递。
成功响应:
{
"text": "图片描述文字..."
}
失败响应:
{
"error": "apiKey is required; configure it in the 外接识图 settings page"
}
https://example.com/image.png),插件会在当前模型不支持图片输入时自动识别并把描述注入给 AI。read_image 且当前模型不支持图片输入时,插件也会自动调用外部模型识别图片并把结果返回给 AI。dev_build_plugin {"dir": "C:/Users/<user>/.dsh/plugins/ui-external-vision"}
dev_inject_plugin {"dir": "C:/Users/<user>/.dsh/plugins/ui-external-vision"}
如果你已安装 dsh CLI,可以按项目官方教程使用 dsh plugin 命令安装:
# 从本地插件目录安装
dsh plugin --profile web add C:/Users/<user>/.dsh/plugins/ui-external-vision
# 或从 GitHub 仓库安装
dsh plugin --profile web add github:xiyue718/dsh-ui-external-vision
安装后启动:
dsh --profile web
查看组合配置:
dsh --profile web --dump-config
详细命令说明见项目文档:docs/user/develop/basic/publish.md。
lib/index.jslib/client.jsdsh-external-ui-external-vision-0.0.1.tgzCLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。