From 7e0cddec8f9f41a33a6055380ba1b0a83b86f927 Mon Sep 17 00:00:00 2001
From: hit-cxf <2024111082@stu.hit.edu.cn>
Date: Sat, 30 May 2026 21:25:38 +0800
Subject: [PATCH] Optimized VLM Judge-Refine Cycle
---
video-claw/video-claw/frontend/components/WorkflowPanel.tsx | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/video-claw/video-claw/frontend/components/WorkflowPanel.tsx b/video-claw/video-claw/frontend/components/WorkflowPanel.tsx
index e7898d3..d1a2c05 100644
--- a/video-claw/video-claw/frontend/components/WorkflowPanel.tsx
+++ b/video-claw/video-claw/frontend/components/WorkflowPanel.tsx
@@ -204,7 +204,7 @@
setHistory(
sessions.map((s: any) => ({
id: s.id,
- idea: (s.idea || 'Untitled').slice(0, 60),
+ idea: (s.title || s.idea || 'Untitled').slice(0, 60),
style: s.style || '',
date: s.date
? new Date(s.date * 1000).toLocaleDateString('zh-CN')
@@ -458,6 +458,7 @@
file_path: params.file_path, // 修复:将上传的文件路径传给后端
style: params.style,
video_ratio: params.video_ratio,
+ video_resolution: params.video_resolution,
llm_model: params.llm_model,
vlm_model: params.vlm_model,
image_t2i_model: params.image_t2i_model,
@@ -488,6 +489,7 @@
session_id: result.session_id,
style: params.style,
video_ratio: params.video_ratio,
+ video_resolution: params.video_resolution,
llm_model: params.llm_model,
vlm_model: params.vlm_model,
image_t2i_model: params.image_t2i_model,
@@ -577,6 +579,7 @@
image_it2i_model: projectParams?.image_it2i_model,
video_model: projectParams?.video_model,
video_ratio: projectParams?.video_ratio,
+ video_resolution: projectParams?.video_resolution,
video_sound: videoSound,
video_shot_type: videoShotType,
};
@@ -665,6 +668,7 @@
session_id: sessionId,
style: projectParams?.style,
video_ratio: projectParams?.video_ratio,
+ video_resolution: projectParams?.video_resolution,
llm_model: projectParams?.llm_model,
vlm_model: projectParams?.vlm_model,
image_t2i_model: projectParams?.image_t2i_model,
@@ -948,7 +952,8 @@
image_t2i_model: projectParams?.image_t2i_model,
image_it2i_model: projectParams?.image_it2i_model,
video_model: projectParams?.video_model,
- video_ratio: projectParams?.video_ratio,
+ video_ratio: projectParams?.video_ratio,
+ video_resolution: projectParams?.video_resolution,
};
// 尝试获取场景数
@@ -1047,6 +1052,7 @@
idea: s.idea || '',
style: s.style || '',
video_ratio: s.video_ratio || '16:9',
+ video_resolution: s.video_resolution || '720P',
llm_model: s.llm_model || '',
vlm_model: s.vlm_model || '',
image_t2i_model: s.image_t2i_model || '',
@@ -1114,6 +1120,7 @@
image_it2i_model: projectParams.image_it2i_model,
video_model: projectParams.video_model,
video_ratio: projectParams.video_ratio,
+ video_resolution: projectParams.video_resolution || '720P',
enable_concurrency: projectParams.enable_concurrency || false,
// web_search: projectParams.web_search || false,
// expand_idea: projectParams.expand_idea || false,
--
Gitblit v1.8.0