Ver código fonte

Update mineru/utils/llm_aided.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Xiaomeng Zhao 4 meses atrás
pai
commit
0530f59968
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      mineru/utils/llm_aided.py

+ 2 - 2
mineru/utils/llm_aided.py

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