← 返回列表
D

dsh-bundle-vision

v0.1.0 · 2 天前发布

Vision bundle + plugin for DeepSeek Harness: the describe_image tool reads local images and asks any configured multimodal route, with zero core changes

dshdsh-plugindsh-bundledeepseek-harnessvisionmultimodalimageocr

README

dsh-bundle-vision

给 DeepSeek Harness 提供零核心改动的视觉能力,以一个可安装的 npm 包同时充当 profile bundle 与插件:

  • 插件注册面向模型的 describe_image 工具;

  • bundle patch 把该插件挂载到任意 profile。
  • 工具读取本地 PNG/JPEG/WebP/GIF 文件,把字节经随附的附件服务落盘,再用一次直接的 LLM 请求询问调用参数指定的多模态路由(provider / model 是工具参数)。结果只有文本——图像块绝不进入调用会话,因此纯文本主模型无需对 dsh 做任何改动即可获得视觉能力。

    工作原理(全部走随附的公开 seam)

    工具用到的一切都随每个 dsh profile 发布:

  • ctx.fs(有界字节读取、按会话工作区解析)——文件系统能力;

  • ctx.attachmentssaveImage、图像限额、魔数校验)——持久图像存储;

  • ctx.llmresolveModelInfo + stream)配合 pi-ai 多提供方适配器——多模态请求本身。
  • 唯一的逐部署前提与 dsh 的任何视觉用法相同:多模态模型必须在 llm-pi-ai 设置段声明图像输入,例如:

    ```yaml
    llm-pi-ai:
    providers:
    my-vision:
    apiKeyEnv: MY_VISION_API_KEY
    api: openai-completions
    baseURL: https://example.invalid/v1
    models:
    - id: my-vision-model

    查看完整 README →

    版本兼容矩阵

    DSH 版本状态说明
    dsh@0.1.0-rc.6 ✅ 兼容 cordis patch ✅
    dsh@0.1.0 ✅ 兼容 标准 patch ✅
    dsh@0.2.0 ⚠️ 待验证 待实测(API 可能在变)
    dsh@0.3.0+ ❓ 未知 尚未发布

    💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正

    元数据

    License
    MIT
    npm
    dsh-bundle-vision
    Repo
    git+https://github.com/skillre/dsh-bundle-vision.git
    Engines
    {}
    Weekly DL
    0
    Monthly DL
    0
    dsh.bundle
    {"bundle":{"patch":"./cordis.patch.yml"}}