how should i configure the browser? code: [code] produced error: """ line 33, in…
- User
how should i configure the browser?
code:
codebrowser = Browser( BrowserConfig=BrowserConfig( headless=False, disable_security=True, chrome_instance_path=r"C:\Program Files\Google\Chrome\Application\chrome.exe", extra_chromium_args=[ r"--user-data-dir=C:\Users\YINL\AppData\Local\Google\Chrome\User Data" ], new_context_config=context_config ) ) async def main(): agent = Agent( task="search 'openai' on google.com and describe the result page.", llm=llm, use_vision=True, browser=browser, save_conversation_path="logs/conversation.json", ) result = await agent.run() print(result) asyncio.run(main())produced error: """ line 33, in browser = Browser( ^^^^^^^^ TypeError: Browser.init() got an unexpected keyword argument 'BrowserConfig' """
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.