From 3d8770b5de4d73ce2dbbd0a25cde0244320330af Mon Sep 17 00:00:00 2001
From: Xinfan Chen <2024111082@stu.hit.edu.cn>
Date: Tue, 26 May 2026 09:22:47 +0800
Subject: [PATCH] feat: add global visual style prompt injection
---
video-claw/video-claw/backend/core/agents/character_agent.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/video-claw/video-claw/backend/core/agents/character_agent.py b/video-claw/video-claw/backend/core/agents/character_agent.py
index 386a7d2..3cb6fb3 100644
--- a/video-claw/video-claw/backend/core/agents/character_agent.py
+++ b/video-claw/video-claw/backend/core/agents/character_agent.py
@@ -132,10 +132,11 @@
self._check_cancel()
# 初始提示词
+ style_prompt = self._get_style_prompt(style)
if asset_type == 'characters':
- base_prompt = self._char_prompt(name, desc, style, species)
+ base_prompt = self._char_prompt(name, desc, style_prompt, species)
else:
- base_prompt = self._setting_prompt(name, desc, style)
+ base_prompt = self._setting_prompt(name, desc, style_prompt)
video_ratio = "16:9"
resolution = "2K"
--
Gitblit v1.8.0