Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

fix KeyError for some models

Nick Sweetingb7a3658e2c0c
diff --git a/browser_use/agent/views.py b/browser_use/agent/views.py
index c0819e87e..0b5a8f952 100644
--- a/browser_use/agent/views.py
+++ b/browser_use/agent/views.py
@@ -28,6 +28,8 @@ REQUIRED_LLM_API_ENV_VARS = {
'ChatBedrockConverse': ['ANTHROPIC_API_KEY'],
'ChatAnthropic': ['ANTHROPIC_API_KEY'],
'ChatGoogleGenerativeAI': ['GEMINI_API_KEY'],
+ 'ChatOllama': ['OLLAMA_API_KEY'],
+ 'ChatDeepSeek': ['DEEPSEEK_API_KEY'],
}