github lobehub/lobehub v2.1.31
🚀 Release v2.1.31

3 hours ago

📦 Release v2.1.31

This release was automatically published from PR #11708.

Changes

See PR description: #11708

Commit Message

💻 Change Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 👷 build
  • ⚡️ perf
  • ✅ test
  • 📝 docs
  • 🔨 chore

🔗 Related Issue

Closes #10346

🔀 Description of Change

  1. 更新的文生图,图生图模型列表,z-image wan2.5 wan2.6 qwen-image-plus/max qwen-image-edit-plus/max
  2. 新增 image2image endpoint,为老版本图生图模型进行兼容
  3. 默认使用 multimodal-generation endpoint(新模型目前调研下来都是用这个了,同时支持图生图和文生图)
  4. 支持多区域 Dashscope URL,跟随 baseUrl 参数,自动切分 /compatible-mode/v1 默认北京区域
    北京 https://dashscope.aliyuncs.com
    新加坡 https://dashscope-intl.aliyuncs.com
    弗吉尼亚 https://dashscope-us.aliyuncs.com
Endpoint
multimodal-generation imageimageimage
text2image image

🧪 How to Test

  • Tested locally
  • Added/updated tests
  • No tests needed

📸 Screenshots / Videos

Before After
... ...

📝 Additional Information

ref: https://help.aliyun.com/zh/model-studio/newly-released-models
ref: https://bailian.console.aliyun.com/cn-beijing/?tab=doc#/doc/?type=model&url=2987148

Summary by Sourcery

Extend Qwen image generation support to cover new text-to-image and image-to-image models while routing legacy models via dedicated text2image/image2image endpoints and defaulting other models to the multimodal-generation API.

New Features:

  • Add model metadata and configuration for new Qwen image models including Z-Image Turbo, Qwen Image Edit Max/Plus, Qwen Image Max/Plus, and Wanxiang 2.5/2.6 variants.
  • Introduce explicit handling of legacy text-to-image and image-to-image Qwen models via separate async text2image and image2image endpoints.

Enhancements:

  • Update the Qwen image creation flow to prefer the multimodal-generation endpoint for newer models and improve error messaging and logging across image workflows.
  • Reformat select Qwen chat model descriptions for consistency without changing behavior.

Tests:

  • Adjust Qwen image creation tests to align with the new multimodal-generation behavior and removed strict input validation on qwen-image-edit-specific image URL requirements.

Don't miss a new lobehub release

NewReleases is sending notifications on new releases.