fix serper integration bug to support batch queries

This commit is contained in:
leonzh0u 2023-07-21 09:42:01 -04:00
parent 4812a50cbd
commit b4536807d7
4 changed files with 7 additions and 7 deletions

View file

@ -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