浏览代码

Update llm_aided.py

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

+ 1 - 1
mineru/utils/llm_aided.py

@@ -90,7 +90,7 @@ Corrected title list:
             content_pieces = []
             for chunk in completion:
                 if chunk.choices:
-                    content_pieces.append(chunk.choices[0].delta.content)
+                    content_pieces.append(chunk.choices[0].delta.content.strip())
             content = "".join(content_pieces)
             # logger.info(f"Title completion: {content}")
             if "</think>" in content: