@dickpy/dsh-imagegen 1.5.2 → 1.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -293,7 +293,7 @@ Agent 会把上一轮图片作为参考图提交图生图任务,因此第二
293
293
  <a id="configuration"></a>
294
294
  ## 配置模型
295
295
 
296
- 打开 DSH 的“设置 → 插件”,展开 **AI 生图(dsh-imagegen)**。每个提供方都有独立的 API 地址、密钥和模型目录,可同时配置多个服务;预置了 OpenAI、智谱、xAI、字节火山方舟(Seedream)等常用渠道,也可添加任意自定义 OpenAI 兼容渠道。
296
+ 打开 DSH 的“设置 → 插件”,展开 **AI 生图(dsh-imagegen)**。每个提供方都有独立的 API 地址、密钥和模型目录,可同时配置多个服务;预置了 OpenAI、智谱、xAI、字节火山方舟(Seedream)、阿里云百炼(Qwen-Image)等常用渠道,也可添加任意自定义 OpenAI 兼容渠道。
297
297
 
298
298
  <div align="center">
299
299
  <img src="docs/images/plugin-settings.png" alt="DSH 设置页中的 AI 生图插件配置" width="72%" />
@@ -322,6 +322,7 @@ Agent 会把上一轮图片作为参考图提交图生图任务,因此第二
322
322
  - **Grok Imagine**:原生支持 `grok-imagine-image` 与 `grok-imagine-image-2.0`(地址 `https://api.x.ai/v1`),图生图使用其 JSON `image_url` 协议,比例和清晰度映射为 `aspect_ratio` 与 `resolution`。
323
323
  - **Nano Banana(谷歌 Gemini 图像系列)**:内置 `nanobanana2` / `nanobanana2-lite` / `nanobanana-pro`(也识别官方 `gemini-3.x-image*` ID),清晰度映射为 `image_size`(1K/2K/4K)。
324
324
  - **Seedream(字节跳动生图系列)**:内置 `seedream-5.0-pro`(也识别 `seedream-4.x`、`doubao-seedream-…`),文生图与图生图统一走 `/images/generations`,参考图以 JSON `image` 数组发送。
325
+ - **Qwen-Image(通义千问)**:内置阿里云百炼渠道,使用 `https://dashscope.aliyuncs.com/api/v1` 的 DashScope 原生 `multimodal-generation` 接口(不是 OpenAI 兼容接口),支持 Qwen-Image 2.0 / 3.0 系列文生图与图像编辑,比例自动映射为 `宽*高` 尺寸。该渠道不能复用于提示词增强。
325
326
  - **智谱 GLM-Image**:内置 `glm-image`,文生图质量参数映射为 `hd`;当前不支持图生图,选择编辑模型时会被自动排除。
326
327
  - **后续模型**:未被识别的 OpenAI 兼容图片模型可手动添加;厂商专属鉴权或请求协议需要单独适配。
327
328