Bald0Wang/dsh-imggenerate0

dsh-image-gen

DSH 图像生成工具插件,支持调用千问 image-3.0(阿里云)和火山引擎豆包模型进行绘图。

AI 分析

核心用途是为智能体扩展绘图能力。适合需要让 DSH 智能体根据文本描述直接生成并输出图片的创作类任务。

包名
dsh-image-gen
版本
0.1.0
最近更新
2026年8月14日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Bald0Wang/dsh-imggenerate

配置 API Key(必做)

插件不携带任何密钥。二选一:

A. profile 用户层(推荐) — 编辑 $DSH_HOME/profiles//cordis.patch.ymldsh 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 下覆盖)

默认值说明
defaultProvidervolcano未指定 provider 参数时使用
timeoutMs180000单次请求超时
qwenEndpoint / qwenModel / qwenApiKey见 index.js阿里 MaaS 通道
volcanoEndpoint / volcanoModel / volcanoApiKey见 index.js火山方舟通道
volcanoSize / volcanoWatermark2K / true火山默认尺寸与水印