9 Commits

Author SHA1 Message Date
Bingxi Zhao (Frank)
1d21aebfbc Merge dev while preserving xAI video paths and polling deadlines 2026-10-31 17:28:44 +08:00
Rudy Celekli
d62ab07411 refactor(videogen): keep polling implementation composable
Keep the existing poll body unchanged behind a narrow budget wrapper, allowing the provider extension in PR2203 to apply alongside this fix.
2026-10-31 01:53:29 -04:00
Rudy Celekli
214ca4d724 fix(videogen): enforce the complete polling time budget
Apply the configured polling deadline to status requests, progress callbacks and intervals in both video adapters. Keep external cancellation and unrelated callback timeout errors intact.

AI-assisted: implemented and validated with OpenAI Codex; real local HTTP fixtures, no live generation provider calls.
2026-10-31 01:48:44 -04:00
Antonio-Faure
b4cb6615d0 feat(providers): add xAI model coverage and Mistral embeddings/voice
- register xAI as an OpenAI-compatible Grok provider (dynamic /v1/models)\n- add Mistral embeddings (mistral-embed / codestral-embed)\n- add xAI Grok Imagine image and video generation\n- add xAI Grok Voice and Mistral Voxtral TTS/STT adapters\n- expose provider/voice hints and add mocked contract tests
2026-10-30 14:57:35 +01:00
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