Pārlūkot izejas kodu

Update llm_aided.py

Xiaomeng Zhao 4 mēneši atpakaļ
vecāks
revīzija
b0c74884f4
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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: