diff --git a/examples/chat-with-history.py b/examples/chat-with-history.py index e98d15f..39775d6 100644 --- a/examples/chat-with-history.py +++ b/examples/chat-with-history.py @@ -31,8 +31,8 @@ while True: ) # Add the response to the messages to maintain the history - messages.append( + messages += [ {'role': 'user', 'content': user_input}, {'role': 'assistant', 'content': response.message.content}, - ) + ] print(response.message.content + '\n')