mirror of
https://github.com/aljazceru/gpt-engineer.git
synced 2025-12-17 12:45:26 +01:00
Fix the errors with parsing
This commit is contained in:
@@ -55,6 +55,7 @@ class AI:
|
||||
msg = delta.get("content", "")
|
||||
print(msg, end="")
|
||||
chat.append(msg)
|
||||
print()
|
||||
messages = messages + [{"role": "assistant", "content": "".join(chat)}]
|
||||
logger.debug(f"Chat completion finished: {messages}")
|
||||
return messages
|
||||
|
||||
Reference in New Issue
Block a user