diff --git a/assistant.py b/assistant.py index cfa2465..b958d79 100755 --- a/assistant.py +++ b/assistant.py @@ -193,11 +193,10 @@ def chat2(args, user_input, stream=True): elif type(command_result) == str: # sometimes I want to change the user prompt with a command user_input = command_result + print('\033[91m' + 'assistant' + '\033[0m: ', end='') if args.reflect: - print('assistant: ', end='') result = reflection_mode(user_input, stream) else: - print('assistant: ', end='') result = chat(user_input, stream) conversation += 'user: ' + user_input + '\n'