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
|
return result
|
||||||
|
|
||||||
def chat2(args, user_input, stream=True):
|
def chat2(args, user_input, stream=True):
|
||||||
|
conversation += 'user: ' + user_input + '\n'
|
||||||
if args.reflect:
|
if args.reflect:
|
||||||
result = reflection_mode(user_input, stream)
|
result = reflection_mode(user_input, stream)
|
||||||
else:
|
else:
|
||||||
result = chat(user_input, stream)
|
result = chat(user_input, stream)
|
||||||
|
conversation += 'assistant: ' + result + '\n'
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def highlightify_text(full_text):
|
def highlightify_text(full_text):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue