mirror of
https://gh-proxy.org/https://github.com/klinsmaya/new-api.git
synced 2026-11-08 01:17:09 +08:00
A plugin that declares duration-auto@1 may receive a duration of -1 (the vendor picks the length) anywhere in the request; other negative values and values above the limit are still rejected, and usage facts stay non-negative. A declaring plugin reserves the model's longest duration and settles on the usage the vendor reports. - doubao 1.3.0 declares it, forwards -1 to Ark and reserves each model's longest duration (12 s for Seedance 1.0 and 1.5 pro, 15 s for 2.0, 30 s for 2.5). A JSON duration on /v1/videos now reaches Ark. - alibaba 1.4.2 declares it, so wan3.0 smart duration also works on /v1/video/generations. Fixes #7700