fix(canvas): 视频生成 - Seedance 视频请求正确传递声音开关

This commit is contained in:
ddCat
2026-07-27 21:38:26 +08:00
parent 1aaa5a438e
commit 82d868ab0b
3 changed files with 41 additions and 7 deletions

View File

@@ -225,6 +225,7 @@ async function buildSeedanceVideosPayload(config: AiConfig, model: string, promp
prompt: buildSeedanceVideosPromptText(prompt, imageUrls.length, videoUrls.length, audioUrls.length),
aspect_ratio: ratio === "adaptive" ? "16:9" : ratio,
duration: duration < 4 ? 5 : duration,
generate_audio: boolConfig(config.videoGenerateAudio, true),
...(imageUrls[0] ? { image_url: imageUrls[0] } : {}),
...(imageUrls.length > 1 ? { reference_image_urls: imageUrls.slice(1) } : {}),
...(videoUrls.length ? { reference_videos: videoUrls } : {}),