mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-15 11:02:36 +02:00
This commit is contained in:
parent
38cea1daf2
commit
223a018083
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue