feat: Add option to return web scrape content instead of printing

This commit is contained in:
Paul Gauthier 2024-11-08 14:27:59 -08:00 committed by Paul Gauthier (aider)
parent 77cb64958e
commit 52c49fc8fd
3 changed files with 5 additions and 3 deletions

View file

@ -820,7 +820,7 @@ class Coder:
"Add URL to the chat?", subject=url, group=group, allow_never=True
):
inp += "\n\n"
inp += self.commands.cmd_web(url)
inp += self.commands.cmd_web(url, return_content=True)
added_urls.append(url)
else:
self.rejected_urls.add(url)