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