-
feat(ali): support wan3.0 all-in-one video models · 3b465226
* feat(ali): support wan3.0 all-in-one video models Extend the Alibaba task plugin for wan3.0-video / wan3.0-video-prime using DashScope media, resolution/ratio, duration rules, and billing ratios. * fix(ali): make wan3.0 smart duration billable and alias-safe Review fixes on top of #7240 (qiuliw): - duration -1 never reached the plugin: the host rejects negative canonical duration/seconds facts before any hook runs, on every entry point. Decoders now normalize -1 into an auto_duration marker; convert emits -1 upstream and bills 30s up front; non-wan3.0 models reject the marker instead of silently defaulting to 5s. - extractUsageOnComplete read output.duration/output.resolution, but wan3.0 reports usage.output_video_duration and numeric usage.SR, so smart-duration and resolution settlement never reconciled. Read the usage block first, keep the legacy output fields as fallback. - convert keyed default resolution on the client model name, so a channel-mapped alias fell to 720P while the direct request got 1080P. Every model-shaped decision in convert now uses ctx.upstreamModel. - Unknown wan3.0 size values were silently coerced to 1080P; reject them. - Image-only openai_responses input was accepted for every model, regressing t2v models into pre-consume then upstream rejection. Restore the guard and allow image-only for i2v and wan3.0 only. - Native passthrough dropped wan3.0 parameters (ratio, audio) unless media was present; forward them via metadata for wan3.0. - Hoist the triplicated size-to-resolution map; add wan3.0 contract tests. --------- Co-authored-by: qiuliw <a1807191473@qgmail.com>
Calcium-Ion committed
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| alibaba | Loading commit data... | |
| doubao | Loading commit data... | |
| Loading commit data... | ||
| hailuo | Loading commit data... | |
| jimeng | Loading commit data... | |
| kling | Loading commit data... | |
| sora | Loading commit data... | |
| sunoapi | Loading commit data... | |
| vertex-ai | Loading commit data... | |
| vidu | Loading commit data... |