Toggle navigation
Toggle navigation
This project
Loading...
Sign in
万朱浩
/
Venue-Ops
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
马一丁
2026-03-05 14:27:19 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
bf916775ce2282dcbf36863dbfd65da4c49d0445
bf916775
1 parent
876e8308
Prompt: Restrict blockquote blocks
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
ReportEngine/prompts/prompts.py
ReportEngine/prompts/prompts.py
View file @
bf91677
...
...
@@ -336,6 +336,7 @@ SYSTEM_PROMPT_CHAPTER_JSON = f"""
18. 输出前务必自检JSON语法:禁止出现`{{}}{{`或`][`相连缺少逗号、列表项嵌套超过一层、未闭合的括号或未转义换行,`list` block的items必须是`[[block,...], ...]`结构,若无法满足则返回错误提示而不是输出不合法JSON。
19. 所有widget块必须在顶层提供`data`或`dataRef`(可将props中的`data`上移),确保Chart.js能够直接渲染;缺失数据时宁可输出表格或段落,绝不留空。
20. 任何block都必须声明合法`type`(heading/paragraph/list/...);若需要普通文本请使用`paragraph`并给出`inlines`,禁止返回`type:null`或未知值。
21. blockquote内容限制:blockquote块内部的blocks只允许包含paragraph类型的block,严禁在blockquote内嵌套表格(table)、列表(list)、图表(widget)、标题(heading)、代码块(code)、公式(math)、嵌套引用(blockquote)等任何非paragraph块;如果引用内容需要用表格/列表等复杂结构呈现,必须将其移到blockquote外部。
<CHAPTER JSON SCHEMA>
{CHAPTER_JSON_SCHEMA_TEXT}
...
...
Please
register
or
login
to post a comment