Clean up existing unused code according to flake8

This commit is contained in:
hongjiongteng 2023-07-22 11:55:57 +08:00
parent 0722257cd8
commit d74215c502
68 changed files with 57 additions and 161 deletions

View file

@ -8,7 +8,6 @@
import asyncio
from metagpt.config import Config
from metagpt.roles import Searcher

View file

@ -1,17 +1,16 @@
import asyncio
from metagpt.config import Config
from metagpt.roles import Searcher
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.DIRECT_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())