fix(writer): 正文语言须与章节标题一致(模板日文则输出日文)

This commit is contained in:
lhl
2026-08-14 00:12:51 +08:00
parent 4da5f7087d
commit 48a9624723
3 changed files with 12 additions and 2 deletions
+4 -1
View File
@@ -22,7 +22,10 @@ WRITER_PROMPT_TEMPLATE = (
"设计规则:\n{{design_rules}}\n"
"模板样式:\n{{template_styles}}\n"
"参考资料:\n{{source}}\n"
"请输出符合 schema 的章节内容 JSON。"
"请输出符合 schema 的章节内容 JSON。\n"
"【语言约束】章节正文(所有 block 的 text 字段)所使用的自然语言,"
"必须与章节标题「{{title}}」所用语言保持一致:标题为日文则用日文撰写,"
"为中文则用中文撰写,依此类推。"
)
CHAPTER_OUTPUT_SCHEMA = {