DeepSeek Harness 插件

dsh-vision-sjakdhasdh

dsh-vision — a DeepSeek Harness plugin (tool template).(英文原文)

跳到安装方式

来源信息

GitHub 仓库
sjakdhasdh/dsh-vision
最近更新
2026年8月14日
分类
视觉与多模态
GitHub stars
1
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/sjakdhasdh/dsh-vision
插件名:dsh-vision-sjakdhasdh
作者:sjakdhasdh

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

dsh-vision 👁️

![CI](https://github.com/sjakdhasdh/dsh-vision/actions) ![License: MIT](LICENSE)

> 给 DeepSeek Harness 里没有原生识图能力的模型(如 deepseek-v4-flash)加上识图工具。 > Give image-recognition ability to DeepSeek Harness models without native vision (e.g. deepseek-v4-flash).

把本地图片或网络图片 URL 交给视觉大模型(默认阿里云百炼 qwen3.7-flash),返回中文文字描述。 Delegates local image paths / URLs to a vision LLM (default: Alibaba Cloud Bailian qwen3.7-flash) and returns a Chinese description.

[English](#english) | [中文](#中文)

![demo](demo.gif)

---

中文

特性

  • 🖼️ 支持本地图片路径、网络图片 URL
  • 🔑 OpenAI 兼容格式,不绑定特定厂商(默认阿里云百炼)
  • ⚙️ 配置优先级:插件 config > 环境变量 > 默认值
  • 📦 零额外运行时依赖(只用 Node 内置 fetch

安装

pnpm install && pnpm run build
# 在插件父目录执行:
dsh plugin --profile web add ./dsh-vision
# 重启 dsh,然后新建会话即可使用 vision 工具

配置

方式一:环境变量

export DASHSCOPE_API_KEY=sk-xxx
export VISION_MODEL=qwen3.7-flash-2026-07-15
export DASHSCOPE_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1

方式二:profile 补丁层 ~/.dsh/profiles/<name>/cordis.patch.yml

- id: dsh-vision
  config:
    apiKey: sk-xxx
    model: qwen3.7-flash-2026-07-15
    baseURL: https://dashscope.aliyuncs.com/compatible-mode/v1

使用

模型会自动调用 vision 工具,参数:

参数必填说明
image本地图片绝对路径(如 C:\a.png)或 http(s) URL
prompt识别要求,默认"请详细描述这张图片的内容"

提示:配合图片上传

DeepSeek Harness 默认的 DeepSeek adapter 声明模型纯文本,上传图片会被 MODEL_DOES_NOT_SUPPORT_IMAGES 拦截。 要让用户能直接粘贴图片(图片块渲染为 [图片附件: sha256:...] 标记),需要对 dsh-llm-deepseek 打一个小补丁(见 [PATCHES.md](PATCHES.md))。

---

English

Features

  • 🖼️ Local image paths and remote http(s) URLs
  • 🔑 OpenAI-compatible API — vendor-agnostic (Bailian by default)
  • ⚙️ Config precedence: plugin config > environment > defaults
  • 📦 Zero extra runtime deps (built-in fetch only)

Install

pnpm install && pnpm run build
# from the PARENT directory:
dsh plugin --profile web add ./dsh-vision
# restart dsh, then open a NEW session — the `vision` tool appears in the model's toolset

Configuration

Option A — environment variables:

export DASHSCOPE_API_KEY=sk-xxx
export VISION_MODEL=qwen3.7-flash-2026-07-15
export DASHSCOPE_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1

Option B — profile patch layer ~/.dsh/profiles/<name>/cordis.patch.yml:

- id: dsh-vision
  config:
    apiKey: sk-xxx
    model: qwen3.7-flash-2026-07-15
    baseURL: https://dashscope.aliyuncs.com/compatible-mode/v1

Usage

The model calls the vision tool automatically:

ParamRequiredDescription
imageAbsolute local path (e.g. C:\a.png) or http(s) URL
promptInstruction; defaults to "describe this image in detail"

Note: enabling image upload

The stock DeepSeek adapter declares models text-only and rejects uploads with MODEL_DOES_NOT_SUPPORT_IMAGES. To let users paste images directly (rendered as [图片附件: sha256:...] markers), apply the small patch described in [PATCHES.md](PATCHES.md).

Articles / 相关文章

License

MIT