dsh-image-gen
DeepSeek Harness plugin: generate images via Aliyun Bailian Qwen-Image (bl CLI). Saves a conversation attachment, writes the file to ~/.dsh/image-gen/ and auto-opens it in the system viewer. 适合需要通过DSH对话调用Qwen-Image模型生成图片并自动本地预览的用户。
같은 패키지 이름의 다른 저장소
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:haimuhaimu/dsh-image-gen使用
装好后 agent 会自动获得 generate_image 工具,直接对 DSH 说"生成一张……的图片"即可。
工具参数:
| 参数 | 必填 | 说明 |
|---|---|---|
prompt | ✅ | 图片描述(越详细越好:主体、风格、构图、光线) |
size | 尺寸:比例 3:4 / 16:9 / 1:1 或像素 1024*1024、2048*2048;默认 1024*1024 | |
model | 模型:默认 qwen-image-3.0;可选 wan2.6-t2i、z-image-turbo 等 | |
n | 生成数量(1-6),默认 1 | |
negative_prompt | 排除的元素 | |
seed | 随机种子,可复现结果 | |
watermark | 是否保留水印,默认 false |
配置
cordis.patch.yml 的 config 块:
- id: image-gen
name: dsh-image-gen
config:
blPath: "" # bl CLI 路径;留空自动查找 PATH 与常见安装位置
autoOpen: true # 生成后自动用系统看图器弹出(默认 true)
生成的图片持久保存在 ~/.dsh/image-gen/,可随时手动查看。
Windows 支持 npm 全局安装或项目 node_modules/.bin 中的 bailian-cli:发现 bl.cmd 后,插件读取该安装包的 bin.bl,直接用 Node.js 启动,不通过命令解释器。自定义 blPath 可指向 .js / .mjs / .cjs 入口或原生可执行文件;其他 .cmd / .bat 包装脚本会明确报错,不会退回 shell 执行。