Fix chat-with-history.py example (#337)

Fix chat-with-history.py example

---------

Co-authored-by: Parth Sareen <[email protected]>
This commit is contained in:
Shahil Yadav
2024-11-24 10:49:46 -08:00
committed by GitHub
co-authored by Parth Sareen
parent 64e3723e6b
commit 6c44bb2729
+2 -2
View File
@@ -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')