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/backend/api/routers/workflow.py |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/video-claw/video-claw/backend/api/routers/workflow.py b/video-claw/video-claw/backend/api/routers/workflow.py
index 346ac3c..89c3a9a 100644
--- a/video-claw/video-claw/backend/api/routers/workflow.py
+++ b/video-claw/video-claw/backend/api/routers/workflow.py
@@ -52,8 +52,9 @@
     meta = {
         "idea": final_idea,
         "user_textbox_input": req.idea,
-        "style": req.style or "realistic",
+        "style": req.style or getattr(settings, "STYLE", None) or "realistic",
         "video_ratio": req.video_ratio or "9:16",
+        "video_resolution": req.video_resolution or "720P",
         "expand_idea": req.expand_idea if req.expand_idea is not None else True,
         "llm_model": req.llm_model,
         "vlm_model": req.vlm_model,
@@ -80,7 +81,8 @@
             "image_it2i_model": meta["image_it2i_model"],
             "video_model": meta["video_model"],
             "episodes": meta["episodes"],
-            "video_ratio": req.video_ratio,
+            "video_ratio": meta["video_ratio"],
+            "video_resolution": meta["video_resolution"],
         }
     }
 
@@ -163,7 +165,7 @@
     if not state:
         raise HTTPException(404, "Session not found")
     body = await request.json()
-    allowed_keys = ("llm_model", "vlm_model", "image_t2i_model", "image_it2i_model", "video_model", "video_ratio", "enable_concurrency")
+    allowed_keys = ("llm_model", "vlm_model", "image_t2i_model", "image_it2i_model", "video_model", "video_ratio", "video_resolution", "style", "enable_concurrency")
     if not state.meta:
         state.meta = {}
     for k in allowed_keys:

--
Gitblit v1.8.0