From 58607e16134d6d669ea557cf266f325d226b8786 Mon Sep 17 00:00:00 2001 From: leonzh0u Date: Sun, 16 Jul 2023 23:13:43 -0400 Subject: [PATCH] update example file for serper --- examples/search_with_specific_engine.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/search_with_specific_engine.py b/examples/search_with_specific_engine.py index 46d604b95..81333bf83 100644 --- a/examples/search_with_specific_engine.py +++ b/examples/search_with_specific_engine.py @@ -5,11 +5,11 @@ 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?") # Serper API - # await Searcher(engine = SearchEngineType.SERPAPI_GOOGLE).run("What are the best ski brands for skiers?") + #await Searcher(engine = SearchEngineType.SERPAPI_GOOGLE).run("What are the best ski brands for skiers?") # Google API - await Searcher(engine = SearchEngineType.SERPAPI_GOOGLE).run("What are the most interesting human facts?") + #await Searcher(engine = SearchEngineType.DIRECT_GOOGLE).run("What are the most interesting human facts?") if __name__ == '__main__': asyncio.run(main())