log with_message

This commit is contained in:
Paul Gauthier 2023-06-23 19:09:39 -07:00
parent f23327ecf9
commit 9e506cccb0
2 changed files with 4 additions and 2 deletions

View file

@ -279,6 +279,7 @@ class Coder:
try: try:
if with_message: if with_message:
new_user_message = with_message new_user_message = with_message
self.io.user_input(with_message)
else: else:
new_user_message = self.run_loop() new_user_message = self.run_loop()

View file

@ -182,7 +182,10 @@ class InputOutput:
break break
print() print()
self.user_input(inp)
return inp
def user_input(self, inp):
prefix = "####" prefix = "####"
if inp: if inp:
hist = inp.splitlines() hist = inp.splitlines()
@ -195,8 +198,6 @@ class InputOutput:
{prefix} {hist}""" {prefix} {hist}"""
self.append_chat_history(hist, linebreak=True) self.append_chat_history(hist, linebreak=True)
return inp
# OUTPUT # OUTPUT
def ai_output(self, content): def ai_output(self, content):