dshbase

Plugin directory / Developer / dsh-local-vision

dsh-local-vision

Unverified hyls9527

✓ Actively maintained 2 contributors Builds on 2 official DSH packages

View on GitHub ↗ ← Back to plugin directory

1Stars
0Forks
0Open issues
Language
2026-08-14Last push
Cross-platformPlatform

What it does

DSH 插件:为纯文本模型提供本地看图能力(llama.cpp / Ollama / LM Studio / vLLM 全兼容)|Local vision for text-only LLMs on any OpenAI-compatible local server

Our take
Unverified — not yet verified

DSH 插件:为纯文本模型提供本地看图能力(llama.cpp / Ollama / LM Studio / vLLM 全兼容)|Local vision for text-only LLMs on any OpenAI-compatible local server Not yet verified — install and test it yourself.

“Unverified” means our automated CI has not yet installed this plugin. Feature descriptions and version compatibility are the author’s claims. This is not a security audit and not an endorsement of third-party code.

Plugin author? Get the “Verified” label — submit your own evidence (screenshots, logs, or a short demo) and we'll review and flip the badge.

Submit verification evidence ↗

README

dsh-local-vision

DSH profile bundle · v0.2.0 —— 给纯文本大模型装上「眼睛」

English: Give text-only LLMs (e.g. deepseek-v4-flash) local vision — works with any OpenAI-compatible local inference server (llama.cpp, Ollama, LM Studio, vLLM/SGLang, Jan, GPT4All, llamafile…). Pure Node, no Python, fully offline.

为不具备视觉能力的模型(如 deepseek-v4-flash)提供本地看图能力:兼容所有
OpenAI 兼容的本地推理框架
——llama.cpp、Ollama、LM Studio、vLLM/SGLang、Jan、
GPT4All、llamafile 等。纯 Node 实现、零 Python 依赖、全程离线。

一句话用法:local_vision(image="图片路径") —— 自动选端点、自动挑视觉模型、
直接返回图片描述。

功能特性

  • 多端点自动轮询:配置多个本地推理服务,按序选用第一个「健康且含视觉模型」的端点
  • 视觉模型自动探测GET /v1/models 枚举 + 名称启发式过滤(vl/vision/llava/minicpm/internvl/glm-4v/gpt-4o 等关键词)+ Ollama 原生 /api/tags capabilities 增强
  • 仅限视觉模型:端点没有视觉模型时明确报错并列出全部模型,绝不误用纯文本模型
  • 模型参数可选model 可显式指定;缺省自动选择端点上第一个视觉模型
  • health 探测、取消信号、超时控制一应俱全

安装到本机 profile

# 构建(需 node + npm)
npm install && npm run build

# 装入 profile(link 依赖):
#   在 ~/.dsh/profiles/web/package.json 的 dependencies 加:
#     "dsh-local-vision": "link:<本仓库绝对路径>"
#   并在 dsh.profile.bundles 追加 "dsh-local-vision",然后:
cd ~/.dsh/profiles/web && pnpm install -w

工具:local_vision

参数 说明
image 图片绝对路径(png/jpg/webp/gif/bmp 等),必填
question 要问模型的问题;缺省为详细描述图片内容
maxTokens 回答长度上限,默认 1024
model 视觉模型 id(可选);缺省自动选择端点上第一个视觉模型

返回:{ description, endpoint, model, usage? }

插件配置(cordis.patch.yml 可覆盖)

# ~/.dsh/profiles/web/cordis.patch.yml 中覆盖端点列表示例:
- id: local-vision
  name: dsh-local-vision
  config:
    endpoints:
      - baseUrl: http://127.0.0.1:8090
        alias: llama.cpp
      - baseUrl: http://127.0.0.1:11434
        alias: ollama
      - baseUrl: http://127.0.0.1:1234
        alias: lm-studio
    timeoutMs: 900000

缺省端点:llama.cpp (http://127.0.0.1:8090) + Ollama (http://127.0.0.1:11434)。

与 local-vision 技能的分工

需求 用哪个
快速纯文字 OCR、发票、表格、UI 元素坐标 local-vision 技能(PaddleOCR / OmniParser)
语义理解:描述场景、看图问答、读懂截图含义 本插件(本地视觉模型,全离线)

开发

npm run typecheck   # tsc --noEmit
npm run build       # esbuild → lib/index.js

Install

🧩 Let your agent install it (recommended)

Install the catalog once, then DeepSeek Harness can find and install any plugin from this site automatically:

dsh plugin add dshbase-catalog

Then say "install dsh-local-vision for me" — your agent finds it in the directory and installs it. Docs: dshbase-catalog · verified packs.

This plugin is GitHub source (not published to npm) — install it straight from the repo:

Web profile:

dsh plugin --profile web add github:hyls9527/dsh-local-vision

Headless (CLI) profile:

dsh plugin --profile headless add github:hyls9527/dsh-local-vision

Test report

Not yet L3-verified — see failure note below if we already ran it.

Status: pending · last test 2026-08-27
Note: 验证: runtime-fail Browse all pending failures →
Security: not yet scanned — our daily static scan will cover it shortly.

Share this badge

More in Developer

Browse all 7795 plugins →