From 57e08ce2f0ecbac8a5efa8a3c13f0a157f0a8956 Mon Sep 17 00:00:00 2001
From: hit-cxf <2024111082@stu.hit.edu.cn>
Date: Thu, 02 Apr 2026 15:10:07 +0800
Subject: [PATCH] 修改分镜设计提示词
---
aigc-director/aigc-claw/backend/core/agents/storyboard_agent.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/aigc-director/aigc-claw/backend/core/agents/storyboard_agent.py b/aigc-director/aigc-claw/backend/core/agents/storyboard_agent.py
index 3cbc048..9dbe1a7 100644
--- a/aigc-director/aigc-claw/backend/core/agents/storyboard_agent.py
+++ b/aigc-director/aigc-claw/backend/core/agents/storyboard_agent.py
@@ -281,6 +281,9 @@
characters = {c["name"]: c for c in script_json.get("characters", [])}
settings_map = {s["name"]: s for s in script_json.get("settings", [])}
+ # 拼接完整剧情以供扩写参考
+ full_plot_text = "\n".join([f"场景{s.get('scene_number', i+1)}: {s.get('plot', '')}" for i, s in enumerate(scenes)])
+
is_zh = any('\u4e00' <= c <= '\u9fff' for c in script_json.get("title", ""))
lang = 'zh' if is_zh else 'en'
shot_prompt_template = _get_shot_prompt(lang)
@@ -332,7 +335,7 @@
plot=original_plot,
char_descriptions=char_desc_text,
setting_description=setting_desc,
- script=json.dumps(script_json, ensure_ascii=False, indent=2)
+ script=full_plot_text
)
expanded_plot = original_plot
--
Gitblit v1.8.0