format code

This commit is contained in:
seehi 2023-12-21 12:44:43 +08:00
parent 9a4f0d555c
commit 163da9a2e7
3 changed files with 3 additions and 4 deletions

View file

@ -28,7 +28,6 @@ from tenacity import (
wait_random_exponential,
)
from metagpt.config import CONFIG, Config, LLMProviderEnum
from metagpt.logs import logger
from metagpt.provider.base_gpt_api import BaseGPTAPI

View file

@ -70,7 +70,7 @@ class Researcher(Role):
return ret
def research_system_text(self, topic, current_task: Action) -> str:
""" BACKWARD compatible
"""BACKWARD compatible
This allows sub-class able to define its own system prompt based on topic.
return the previous implementation to have backward compatible
Args:

View file

@ -106,8 +106,8 @@ def _gen_get_driver_func(browser_type, *args, executable_path=None):
options.add_argument("--headless")
options.add_argument("--enable-javascript")
if browser_type == "chrome":
options.add_argument("--disable-gpu") # This flag can help avoid renderer issue
options.add_argument("--disable-dev-shm-usage") # Overcome limited resource problems
options.add_argument("--disable-gpu") # This flag can help avoid renderer issue
options.add_argument("--disable-dev-shm-usage") # Overcome limited resource problems
options.add_argument("--no-sandbox")
for i in args:
options.add_argument(i)