From bf6185c62ef6ee6cf1d13ad4018d5b1005c8fb0a Mon Sep 17 00:00:00 2001
From: hit-cxf <2024111082@stu.hit.edu.cn>
Date: Fri, 03 Apr 2026 09:34:32 +0800
Subject: [PATCH] 修改了人物 场景提示词
---
aigc-director/aigc-claw/backend/core/agents/character_agent.py | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/aigc-director/aigc-claw/backend/core/agents/character_agent.py b/aigc-director/aigc-claw/backend/core/agents/character_agent.py
index 09de1cd..f836ae8 100644
--- a/aigc-director/aigc-claw/backend/core/agents/character_agent.py
+++ b/aigc-director/aigc-claw/backend/core/agents/character_agent.py
@@ -16,7 +16,7 @@
from concurrent.futures import ThreadPoolExecutor, as_completed
from .base_agent import AgentInterface
-from prompts.loader import load_prompt, load_style_prompt
+from prompts.loader import load_prompt
logger = logging.getLogger(__name__)
@@ -31,19 +31,19 @@
@staticmethod
def _char_prompt(name: str, desc: str, style: str, species: str = "") -> str:
- """角色4视图提示词 - 从风格提示词文件加载"""
- # 加载风格提示词模板
- template = load_style_prompt('character', style)
+ """角色4视图提示词 - 直接加载 character_zh 模板"""
+ # 加载基础角色提示词模板
+ template = load_prompt('character', 'character', 'zh')
# 替换角色信息
- return template.format(name=name, desc=desc)
+ return template.format(name=name, desc=desc, style=style)
@staticmethod
def _setting_prompt(name: str, desc: str, style: str) -> str:
- """场景全景图提示词 - 从风格提示词文件加载"""
- # 加载风格提示词模板
- template = load_style_prompt('setting', style)
+ """场景全景图提示词 - 直接加载 setting_zh 模板"""
+ # 加载基础场景提示词模板
+ template = load_prompt('setting', 'setting', 'zh')
# 替换场景信息
- return template.format(name=name, desc=desc)
+ return template.format(name=name, desc=desc, style=style)
# ─── 文件管理(基于唯一ID) ───
@@ -138,7 +138,7 @@
base_prompt = self._setting_prompt(name, desc, style)
video_ratio = "16:9"
- resolution = "1080P"
+ resolution = "4K"
current_prompt = base_prompt
for iteration in range(max_iterations):
--
Gitblit v1.8.0