From 82f2c4843a9b7fd082747b503aa9bf764d913673 Mon Sep 17 00:00:00 2001
From: Xinfan Chen <2024111082@stu.hit.edu.cn>
Date: Mon, 25 May 2026 23:23:52 +0800
Subject: [PATCH] modify: set default resolution to 720P

---
 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 0913c27..b404ee0 100644
--- a/video-claw/video-claw/backend/models/video_client.py
+++ b/video-claw/video-claw/backend/models/video_client.py
@@ -225,6 +225,9 @@
         audio: Optional[bool],
     ) -> str:
         """通过万象模型生成视频"""
+        # 设置 Wan 和 Happyhorse 系列视频生成的默认分辨率为 720P
+        resolution = resolution or "720P"
+        
         logger.info("VideoClient routed to Wan: model=%s", model)
         return self.Dashscope_client.generate_video(
             prompt=prompt,

--
Gitblit v1.8.0