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
+12 -14
View File
@@ -28,9 +28,10 @@ from ..utils.video_task import (
InterruptProcessingException,
)
from ..utils.http_error import async_request_with_retry
from ..utils.o1key_video_catalog import SEEDANCE_REFERENCE_AUDIO_EXTENSIONS
from .seedance_autopass import (
SeedanceAutoPass,
_BASE_MODELS,
_AUTOPASS_BASE_MODELS,
_SUCCESS_STATUSES,
_FAILURE_STATUSES,
_RATIOS,
@@ -46,7 +47,6 @@ from .seedance_autopass import (
_LIMITED_RESOLUTION_MODELS,
_normalize_model_route,
_resolve_model_matrix,
_resolve_asset_creation_mode,
)
from .seedance_video import (
_MM_MODELS,
@@ -67,7 +67,7 @@ except ImportError:
_LABEL = "Seedance全能生成视频(批量)"
_MAX_BATCH = 10 # 每批最多并发提交数(用户要求硬上限 10)
_VIDEO_EXTENSIONS = {".mp4", ".mov"}
_AUDIO_EXTENSIONS = {".wav", ".mp3", ".m4a", ".aac", ".flac", ".ogg"}
_AUDIO_EXTENSIONS = set(SEEDANCE_REFERENCE_AUDIO_EXTENSIONS)
_MM_DEFAULT_MODEL = _MM_MODELS[0]
@@ -234,7 +234,7 @@ class _LegacySeedanceAutoPassBatch:
web_search = kwargs["联网搜索"] == "打开"
batch_size = max(1, min(int(kwargs.get("每批并发数", _MAX_BATCH)), _MAX_BATCH))
sub_dir = (kwargs.get("输出子目录") or "").strip()
seed = int(kwargs.get("seed", 0))
seed = int(kwargs.get("seed", -1))
# 解析真实模型 ID 并做分辨率校验
model_id = _resolve_model(model_label)
@@ -472,7 +472,7 @@ class SeedanceAutoPassBatch(io.ComfyNode):
io.String.Input(
"音频文件夹",
default="",
tooltip="支持 wav/mp3/m4a/aac/flac/ogg,按序号配对。",
tooltip="支持 wav/mp3,按序号配对。",
),
],
),
@@ -522,7 +522,7 @@ class SeedanceAutoPassBatch(io.ComfyNode):
],
tooltip="切换后仅显示当前模式需要的文件夹输入。",
),
io.Combo.Input("主模型", options=_BASE_MODELS, default="seedance 2.0"),
io.Combo.Input("主模型", options=_AUTOPASS_BASE_MODELS, default="seedance 2.5"),
io.Combo.Input("模型线路", options=_MODEL_ROUTES, default="国内"),
io.Combo.Input("分辨率", options=_RESOLUTIONS, default="720p"),
io.Combo.Input("宽高比", options=_RATIOS, default="智能"),
@@ -680,8 +680,6 @@ class SeedanceAutoPassBatch(io.ComfyNode):
duration_s = kwargs["时长"]
gen_audio = kwargs["生成音频"] == "打开"
web_search = mode_inputs.get("联网搜索", "关闭") == "打开"
create_mode = _resolve_asset_creation_mode(model_route)
seed = int(kwargs.get("seed", 0))
batch_size = max(1, min(int(kwargs.get("每批并发数", _MAX_BATCH)), _MAX_BATCH))
sub_dir = (kwargs.get("输出子目录") or "").strip()
@@ -699,7 +697,7 @@ class SeedanceAutoPassBatch(io.ComfyNode):
task["images"], task["videos"], task["audios"],
)
SeedanceAutoPass._validate_reference_media(
task["images"], task["videos"], task["audios"],
base_model, task["images"], task["videos"], task["audios"],
)
if not FOLDER_PATHS_AVAILABLE:
@@ -735,7 +733,7 @@ class SeedanceAutoPassBatch(io.ComfyNode):
cls._run_one(
session, base_url, headers, out_dir,
model, resolution, ratio, duration_s,
gen_audio, web_search, seed, create_mode,
gen_audio, web_search,
generation_mode, task, start + offset + 1, total,
)
for offset, task in enumerate(batch)
@@ -774,17 +772,17 @@ class SeedanceAutoPassBatch(io.ComfyNode):
async def _run_one(
cls, session, base_url, headers, out_dir,
model, resolution, ratio, duration_s,
gen_audio, web_search, seed, create_mode,
gen_audio, web_search,
generation_mode, task, task_no, total,
):
prompt = task["prompt"]
try:
image_urls, video_urls, audio_urls = await SeedanceAutoPass._create_assets(
task["images"], task["videos"], task["audios"], base_url, create_mode
image_urls, video_urls, audio_urls = await SeedanceAutoPass._upload_assets(
task["images"], task["videos"], task["audios"], base_url
)
body = SeedanceAutoPass._build_body(
model, prompt, resolution, ratio, duration_s,
gen_audio, web_search, seed,
gen_audio, web_search,
image_urls, video_urls, audio_urls,
use_asset_protocol=True,
generation_mode=generation_mode,