Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

https://github.com/geekan/MetaGPT/issues/1356

Igor Pechersky223a018083a8
diff --git a/metagpt/roles/researcher.py b/metagpt/roles/researcher.py
index fd40960e2..5c6c1d9f4 100644
--- a/metagpt/roles/researcher.py
+++ b/metagpt/roles/researcher.py
@@ -58,7 +58,7 @@ class Researcher(Role):
)
elif isinstance(todo, WebBrowseAndSummarize):
links = instruct_content.links
- todos = (todo.run(*url, query=query, system_text=research_system_text) for (query, url) in links.items())
+ todos = (todo.run(*url, query=query, system_text=research_system_text) for (query, url) in links.items() if url)
if self.enable_concurrency:
summaries = await asyncio.gather(*todos)
else: