From 81982225e26d5311f7b6c87e93eae04343701450 Mon Sep 17 00:00:00 2001 From: karlverik Date: Fri, 13 Mar 2026 17:50:00 +0800 Subject: [PATCH] =?UTF-8?q?1-N=E6=A8=A1=E5=BC=8F=E5=A4=A7=E7=BA=B2?= =?UTF-8?q?=E6=8F=90=E5=8F=96=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit API测试发现expansion_plan没有 plot_summary这个键。 替换掉原本的分章节概要,重新生成的文章内容也完全不变,这段完全失效了。每次提供的都只有分章节的关键事件部分和上级大纲。 --- backend/app/services/chapter_context_service.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/app/services/chapter_context_service.py b/backend/app/services/chapter_context_service.py index d09dddc..8f1a4ee 100644 --- a/backend/app/services/chapter_context_service.py +++ b/backend/app/services/chapter_context_service.py @@ -289,7 +289,8 @@ class OneToManyContextBuilder: if chapter.expansion_plan: try: plan = json.loads(chapter.expansion_plan) - outline_content = f"""剧情摘要:{plan.get('plot_summary', '无')} + # expansion_plan没有plot_summary这个键, + outline_content = f"""剧情摘要:{plan.get('plot_summary') or chapter.summary or '无'} 关键事件: {chr(10).join(f'- {event}' for event in plan.get('key_events', []))}