Files
DeepTutor/deeptutor/services/imagegen
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
..
2026-06-17 00:56:27 +08:00
2026-06-17 00:56:27 +08:00