From 8ddb5db6ca188c89bda91c749e08ec497f017c6a Mon Sep 17 00:00:00 2001
From: Xinfan Chen <2024111082@stu.hit.edu.cn>
Date: Sat, 30 May 2026 00:00:37 +0800
Subject: [PATCH] refine subagent
---
video-claw/video-claw/backend/models/video_client.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/video-claw/video-claw/backend/models/video_client.py b/video-claw/video-claw/backend/models/video_client.py
index b404ee0..f9ac1ba 100644
--- a/video-claw/video-claw/backend/models/video_client.py
+++ b/video-claw/video-claw/backend/models/video_client.py
@@ -112,6 +112,9 @@
if not model:
model = "wan2.7-i2v"
+ # 确保 duration 是整数,视频模型通常要求整数秒
+ duration = int(duration)
+
if Config.PRINT_MODEL_INPUT:
lines = [
"---- VIDEO GENERATION REQUEST ----",
--
Gitblit v1.8.0