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.
`modalities_attempts` is never empty, so `resp` is always bound when the
loop ends — the second refusal stays in it. `last_404`, the `resp is None`
guard and the `assert` were three ways of restating that, and an `assert`
in a request path disappears under `python -O`.
(cherry picked from commit f2dfe4550d52c80d5bee1502a281eafcfaa491d4)
Ship a content workspace you choose, one exec tool for every language,
Mastery Path modes that gate its tools, and Settings that grades
readiness instead of listing faults.
Release notes: assets/releases/ver1-6-5.md