|
@@ -89,7 +89,7 @@ Corrected title list:
|
|
|
)
|
|
)
|
|
|
content_pieces = []
|
|
content_pieces = []
|
|
|
for chunk in completion:
|
|
for chunk in completion:
|
|
|
- if chunk.choices:
|
|
|
|
|
|
|
+ if chunk.choices and chunk.choices[0].delta.content is not None:
|
|
|
content_pieces.append(chunk.choices[0].delta.content)
|
|
content_pieces.append(chunk.choices[0].delta.content)
|
|
|
content = "".join(content_pieces).strip()
|
|
content = "".join(content_pieces).strip()
|
|
|
# logger.info(f"Title completion: {content}")
|
|
# logger.info(f"Title completion: {content}")
|