dsh-image-gen
DeepSeek Harness plugin: generate images via Aliyun Bailian Qwen-Image (bl CLI). Adds a generate_image tool that returns images as conversation attachments.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:haimuhaimu/dsh-image-gen说明文档
阅读完整 README ↗使用
装好后 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 与常见安装位置