I'm using the DeepSeek model, but it keeps prompting that there is no OPENAI_API_KEY.
INFO [src.webui.components.browser_use_agent_tab] Submit button clicked for new task. INFO [src.webui.components.browser_use_agent_tab] Initializing LLM: Provider=deepseek, Model=deepseek-chat, Temp=0.6 INFO [src.webui.components.browser_use_agent_tab] Launching new browser instance. INFO [src.webui.components.browser_use_agent_tab] Creating new browser context. INFO [src.webui.components.browser_use_agent_tab] Initializing new agent for task: Recent advancements in ai WARNING [agent] ⚠️ DeepSeek models do not support use_vision=True yet. Setting use_vision=False for now... INFO [agent] Starting an agent with main_model=deepseek-chat +tools +memory, planner_model=None, extraction_model=deepseek-chat WARNING [agent] ❌ Expected LLM API Key environment variables might be missing for ChatOpenAI: OPENAI_API_KEY ERROR [src.webui.components.browser_use_agent_tab] Error setting up agent task: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable Traceback (most recent call last): File "D:\ga_office\web_ui\src\webui\components\browser_use_agent_tab.py", line 529, in run_agent_task webui_manager.bu_agent = BrowserUseAgent( ^^^^^^^^^^^^^^^^ File "D:\ga_office\web_ui.venv\Lib\site-packages\browser_use\\utils.py", line 305, in wrapper result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "D:\ga_office\web_ui.venv\Lib\site-packages\browser_use\agent\service.py", line 269, in init self.memory = Memory( ^^^^^^^ File "D:\ga_office\web_ui.venv\Lib\site-packages\browser_use\agent\memory\service.py", line 82, in init self.mem0 = Mem0Memory.from_config(config_dict=self.config.full_config_dict) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ga_office\web_ui.venv\Lib\site-packages\mem0\memory\main.py", line 87, in from_config return cls(config) ^^^^^^^^^^^ File "D:\ga_office\web_ui.venv\Lib\site-packages\mem0\memory\main.py", line 46, in init self.embedding_model = EmbedderFactory.create( ^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ga_office\web_ui.venv\Lib\site-packages\mem0\\utils\factory.py", line 66, in create return embedder_instance(base_config) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ga_office\web_ui.venv\Lib\site-packages\mem0\embeddings\openai.py", line 32, in init self.client = OpenAI(api_key=api_key, base_url=base_url) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ga_office\web_ui.venv\Lib\site-packages\openai_client.py", line 135, in init raise OpenAIError( openai.OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable
Source: browser-use/web-ui