Add tracking of entire conversation
This commit is contained in:
parent
0fb11b0691
commit
d074c97645
|
|
@ -150,10 +150,12 @@ def chat(message, stream=True):
|
|||
return result
|
||||
|
||||
def chat2(args, user_input, stream=True):
|
||||
conversation += 'user: ' + user_input + '\n'
|
||||
if args.reflect:
|
||||
result = reflection_mode(user_input, stream)
|
||||
else:
|
||||
result = chat(user_input, stream)
|
||||
conversation += 'assistant: ' + result + '\n'
|
||||
return result
|
||||
|
||||
def highlightify_text(full_text):
|
||||
|
|
|
|||
Loading…
Reference in a new issue