dsh-upload-button
界面增强 活跃维护

dsh-upload-button

victorytianyi-dev/dsh-upload-button

该插件可快速集成图片上传按钮功能,同时对接DashScope文生图能力,支持用户上传参考图辅助图像生成,交互轻便,部署简单,开箱即用。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
7 KB
仓库大小
3 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:victorytianyi-dev/dsh-upload-button
git clone https://github.com/victorytianyi-dev/dsh-upload-button.git
git clone git@github.com:victorytianyi-dev/dsh-upload-button.git
README.md main

dsh-upload-button

Upload-image button for the DeepSeek Harness Web GUI.

Adds an upload button beside the composer plus button: click it, pick local
images, and they enter the composer's draft-image rail as thumbnails. On send,
the images ride the standard draft-image path, so describe-image (or any other
image consumer) receives them as usual — validation, size limits, and the
thumbnail rail all come from the official conversation flow. No harness
source changes.

Also ships tools/gen-image.js, a text-to-image helper that calls the Alibaba
DashScope native image-synthesis API (wanx2.1-t2i-turbo).

Features

  • Upload button on the conversation.input.left slot (beside the plus/command button)
  • Multi-select file picker (images only — the conversation draft rail is image-only today)
  • Reuses the official draft-image drop path: synthetic DataTransfer + drop event on document
  • Zero harness changes, pure browser-side plugin

Install

# from GitHub source
dsh plugin --profile web add github:victorytianyi-dev/dsh-upload-button

# or via link (local dev)
dsh plugin --profile web add link:/path/to/dsh-upload-button

Requires DeepSeek Harness 0.1.0-rc.6+.

Usage

  1. After install and (re)start, open any session.
  2. Next to the + button in the composer there is an upload button (⬆).
  3. Click it, pick one or more images.
  4. Thumbnails appear in the draft rail; type a message and send.

How it works

The plugin registers on the official conversation.input.left slot (list,
session scope). Picking files builds a DataTransfer, then dispatches a
synthetic drop event to document — the exact path a real drag/paste takes,
so the conversation's own image intake (type checks, limits, thumbnails) runs
unchanged.

License

MIT