浏览代码

refactor: improve dictionary formatting in output structure

myhloli 5 月之前
父节点
当前提交
c18934a339
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      mineru/utils/llm_aided.py

+ 6 - 1
mineru/utils/llm_aided.py

@@ -60,7 +60,12 @@ def llm_aided_title(page_info_list, title_aided_config):
 
 IMPORTANT: 
 请直接返回优化过的由标题层级组成的字典,格式为{{标题id:标题层级}},如下:
-{{0:1,1:2,2:2,3:3}}
+{{
+  0:1,
+  1:2,
+  2:2,
+  3:3
+}}
 不需要对字典格式化,不需要返回任何其他信息。
 
 Input title list: