Publish Seedance 2.5 draft mode and video updates

- Add the 样片模式 flow: 480p draft generation, a linkable draft task ID, and pre-flight verification before the 1080p final request.

- Allow reference images and audio in video edit/extend requests, matching the provider's 2.5 contract.

- Move 主模型 and 样片模式 ahead of 生成模式, default 主模型 to seedance 2.5, and migrate saved widget values.

- Refresh the video panel, asset API response logs, and LLM node handling; cover the new behavior with offline tests.
This commit is contained in:
Jony
2026-10-21 20:13:55 +08:00
parent 532d4a9541
commit ff1cf830fa
27 changed files with 1810 additions and 341 deletions
+33
View File
@@ -55,6 +55,7 @@ const SEEDANCE_AUTO_PASS_ROUTES = new Set(["国内", "海外", "海外HC", "海
const SEEDANCE_AUTO_PASS_NODE_TYPES = new Set(["SeedanceAutoPass", "SeedanceAutoPassBatch"]);
const SEEDANCE_ASSET_CREATE_TOGGLES = new Set(["关闭", "打开"]);
const SEEDANCE_ASSET_CREATE_MODES = new Set(["标准", "高并发", "HC"]);
const SEEDANCE_DRAFT_MODES = new Set(["关闭", "生成样片", "按样片生成"]);
const SEEDANCE_AUTO_PASS_DEFAULT_MODE = "多模态";
const SEEDANCE_AUTO_PASS_MODE_ALIASES = new Map([
["多模态参考生视频", "多模态"],
@@ -1027,11 +1028,43 @@ const MIGRATIONS = [
&& REMOVED_NANO_BANANA_RESOLUTIONS.has(wv[4]),
apply: (wv) => { wv[4] = "1K"; },
},
{
type: "SeedanceAutoPass",
note: "将主模型与样片模式移到生成模式之前",
when: (wv) => wv.length >= 62
&& typeof wv[0] === "string"
&& _isSeedanceAutoPassMode(wv[1])
&& SEEDANCE_AUTO_PASS_MODELS.has(wv[2]),
apply: (wv) => {
const hasDraft = wv.length >= 65
&& SEEDANCE_DRAFT_MODES.has(wv[wv.length - 2])
&& typeof wv[wv.length - 1] === "string";
const hasOutputFormat = hasDraft || wv.length >= 63;
const draftMode = hasDraft ? wv[wv.length - 2] : "关闭";
const draftTaskId = hasDraft ? wv[wv.length - 1] : "";
const bodyEnd = hasDraft ? wv.length - 2 : wv.length;
const body = wv.slice(3, bodyEnd);
const [prompt, mode, model] = wv;
wv.splice(
0,
wv.length,
prompt,
model,
draftMode,
mode,
...body,
...(hasOutputFormat ? [] : ["mp4"]),
draftTaskId,
);
},
},
];
function _isSeedanceAutoPassMode(value) {
return value === "多模态"
|| value === "首尾帧"
|| value === "视频编辑"
|| value === "视频延长"
|| value === "多模态参考生视频"
|| value === "图生视频-首帧"
|| value === "图生视频-首尾帧"