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

Fix chat-with-history.py example

---------

Co-authored-by: Parth Sareen <parth.sareen@ollama.com>
This commit is contained in:
Shahil Yadav
2024-11-25 00:19:46 +05:30
committed by GitHub
parent 64e3723e6b
commit 6c44bb2729

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')