Commit Graph

5 Commits

Author SHA1 Message Date
Bingxi Zhao (Frank)
bc6d73de10 fix(media): reject unsupported Wan 2.2 video size 2026-09-27 03:20:17 +08:00
Bingxi Zhao (Frank)
a2e487dfcf fix(media): send valid DashScope video sizes 2026-09-27 02:56:36 +08:00
wumajiehechuan-lab
e9655d579a fix(media): use the real DashScope image/video submit endpoints
Both native DashScope media adapters post to a path that is missing its last
segment, so every generate request falls through to a generic async route and
is rejected before the model ever runs:

    400 InvalidParameter: task can not be null

- image: `services/aigc/image-synthesis` -> `services/aigc/text2image/image-synthesis`
- video: `services/aigc/video-generation` -> `services/aigc/video-generation/video-synthesis`

Verified against the live endpoint with the real adapters: the old paths answer
`task can not be null`, the new ones return a `task_id` (the image task was
polled to SUCCEEDED and produced a result URL; the video probe task failed on an
intentionally invalid `size`, so no render was charged).

Update the two URL assertions in `tests/services/test_media_gen.py` accordingly.

Note: `wan2.6-t2i` uses a different route
(`services/aigc/image-generation/generation`) *and* a `messages` body, so it is
out of scope here.
2026-09-22 23:02:31 -07:00
XZH
d9538192d2 feat(media): add DashScope providers (#1016) 2026-08-27 10:25:41 -07:00
Bingxi Zhao (Frank)
c9d387e2b6 super super great great update 2026-06-17 00:56:27 +08:00