mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-14 15:25:17 +02:00
fix serper integration bug to support batch queries
This commit is contained in:
parent
4812a50cbd
commit
b4536807d7
4 changed files with 7 additions and 7 deletions
|
|
@ -5,7 +5,7 @@ from metagpt.tools import SearchEngineType
|
|||
|
||||
async def main():
|
||||
# Serper API
|
||||
await Searcher(engine = SearchEngineType.SERPER_GOOGLE).run("What are some good sun protection products?")
|
||||
await Searcher(engine = SearchEngineType.SERPER_GOOGLE).run(["What are some good sun protection products?","What are some of the best beaches?"])
|
||||
# Serper API
|
||||
#await Searcher(engine = SearchEngineType.SERPAPI_GOOGLE).run("What are the best ski brands for skiers?")
|
||||
# Google API
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue