refactor: Modify cmd_web to add scraped content to cur_messages as assistant reply

This commit is contained in:
Paul Gauthier (aider) 2024-11-08 14:21:59 -08:00
parent 9dd7b795ca
commit b3d13e44b2

View file

@ -162,7 +162,8 @@ class Commands:
self.io.tool_output("... done.")
return content
# Add the content to cur_messages as a faux assistant reply
self.coder.cur_messages.append(dict(role="assistant", content=content))
def is_command(self, inp):
return inp[0] in "/!"