mirror of
https://github.com/ollama/ollama-python.git
synced 2026-08-11 07:37:47 +00:00
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:
co-authored by
Parth Sareen
parent
64e3723e6b
commit
6c44bb2729
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user