You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(ali): route Wan 2.7 image generation with stale sync-model settings - #3
2026-09-29 runtime channel check: the currently enabled priority-21 channel QuantumNous#126 advertising wan2.7-image and wan2.7-image-pro is OpenAI type with base URL https://token-plan.cn-beijing.maas.aliyuncs.com/compatible-mode and no model mapping. In New API's fixed-channel UI test, selecting Image Generation (/v1/images/generations) returned HTTP 400 url error for each Wan model. Alibaba's Token Plan multimodal documentation requires the separate /api/v1/services/aigc/multimodal-generation/generation API with input.messages. This PR changes only the Ali adaptor and cannot fix the OpenAI QuantumNous#126 route. Keep this PR draft pending the user's planned channel-type change and a live retest; do not merge based on the current online failure alone. The qwen-image-2.0 control test stopped at missing gateway model pricing, so it says nothing about that upstream endpoint. See desirecore/desirecore#3522 for test details.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
本 PR 使用 AI 辅助编写;提交者已核对改动和测试结果。此 PR 是 Ali 通道旧设置的防御性修复候选,尚未合并或部署。
🔗 关联任务 / Related Issue
🚀 变更类型 / Type of change
📝 变更描述 / Description
当持久化的
qwen.sync_image_models沿用 Wan 2.7 上线前的列表时,wan2.7-image和wan2.7-image-pro的/v1/images/generations请求会被 Ali 适配器送往旧text2image/image-synthesis端点,并启用异步头、使用 prompt-only 输入。阿里云官方文档规定这两款模型的同步文生图应走multimodal-generation/generation,使用input.messages。本改动只对这两个精确的上游模型 ID 固定同步图像协议;其他模型继续使用既有可配置列表。它不改数据库或计费,不清除现有设置。补丁登记和 rc.33 候选验收说明已更新。
回归测试证明旧持久化列表在 Ali 通道会造成错误路由;线上 QuantumNous#126 原为 OpenAI 类型,改为阿里百炼类型及 Token Plan 原生 Base URL 后,两款模型已真实出图。因此本 PR 应按独立防御性改动审阅,合并前仍需确认不覆盖运维可配置策略,不能将其视为 QuantumNous#3522 的修复或上线验收。
📸 运行证明 / Proof of Work
sync_image_models列表:修复前两款模型均错误地指向text2image/image-synthesis,异步头为enable;修复后指向multimodal-generation/generation,请求使用input.messages。go test ./relay/channel/ali -count=1通过。napi.desirecore.cc/v1/images/generations对两款模型均 HTTP 200,返回可下载 PNG;DesireCoreGenerateImage(purpose="agent-avatar")也分别交付透明 PNG。这是在未部署本 PR时通过配置修正取得的结果,不能用来证明本 PR 的生产效果。✅ 提交前检查项 / Checklist