Bald0Wang/dsh-imggenerate ↗★ 0
dsh-image-gen
Image-generation tool plugin for DeepSeek Harness: qwen-image-3.0 (Aliyun MaaS) and doubao-seedream (Volcano Ark) providers
AI 분석
核心用途是为智能体扩展绘图能力。适合需要让 DSH 智能体根据文本描述直接生成并输出图片的创作类任务。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Bald0Wang/dsh-imggenerate配置 API Key(必做)
插件不携带任何密钥。二选一:
A. profile 用户层(推荐) — 编辑 $DSH_HOME/profiles//cordis.patch.yml(dsh web 对应 web profile),覆盖 image-gen 行(用户层在包层之后生效,需重述整个 config):
- id: image-gen
config:
defaultProvider: volcano
qwenApiKey: 'sk-ws-...'
volcanoApiKey: 'your-ark-key'
B. 环境变量 — DASHSCOPE_API_KEY(qwen 通道)、ARK_API_KEY(volcano 通道)。显式 config 优先于环境变量。
配置项(cordis.yml 中 config 下覆盖)
| 键 | 默认值 | 说明 |
|---|---|---|
defaultProvider | volcano | 未指定 provider 参数时使用 |
timeoutMs | 180000 | 单次请求超时 |
qwenEndpoint / qwenModel / qwenApiKey | 见 index.js | 阿里 MaaS 通道 |
volcanoEndpoint / volcanoModel / volcanoApiKey | 见 index.js | 火山方舟通道 |
volcanoSize / volcanoWatermark | 2K / true | 火山默认尺寸与水印 |