jinysun commited on
Commit
73e839b
·
verified ·
1 Parent(s): 762488e

Update tool/browsersearch.py

Browse files
Files changed (1) hide show
  1. tool/browsersearch.py +4 -4
tool/browsersearch.py CHANGED
@@ -30,14 +30,14 @@ class browseruse(BaseTool):
30
  name: str = "browseruse"
31
  description: str = ("Calling the browser to search for information in specific website"
32
  "input query, return the searching results")
33
-
34
  def __init__(
35
- self,
36
  ):
37
  super().__init__()
38
-
39
  def _run(self, task: str) -> str:
40
- result = asyncio.run(main(task))
41
  return result
42
 
43
  async def _arun(self, smiles: str) -> str:
 
30
  name: str = "browseruse"
31
  description: str = ("Calling the browser to search for information in specific website"
32
  "input query, return the searching results")
33
+ openai_api_key: str = None
34
  def __init__(
35
+ self,openai_api_key
36
  ):
37
  super().__init__()
38
+ self.openai_api_key = openai_api_key
39
  def _run(self, task: str) -> str:
40
+ result = asyncio.run(main(task, self.openai_api_key))
41
  return result
42
 
43
  async def _arun(self, smiles: str) -> str: