Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
bumped up azure api version
Gregor Žunič6ecbf13e3b95
diff --git a/browser_use/llm/azure/chat.py b/browser_use/llm/azure/chat.pyindex b947a9fc8..ce1af2c20 100644--- a/browser_use/llm/azure/chat.py+++ b/browser_use/llm/azure/chat.py@@ -24,7 +24,7 @@ class ChatAzureOpenAI(ChatOpenAILike):# Client initialization parametersapi_key: str | None = None- api_version: str | None = '2024-10-21'+ api_version: str | None = '2024-12-01-preview'azure_endpoint: str | None = Noneazure_deployment: str | None = Nonebase_url: str | None = Nonediff --git a/examples/models/azure_openai.py b/examples/models/azure_openai.pyindex c5d923670..b2154e328 100644--- a/examples/models/azure_openai.py+++ b/examples/models/azure_openai.py@@ -18,18 +18,9 @@ load_dotenv()from browser_use import Agentfrom browser_use.llm import ChatAzureOpenAI-# Retrieve Azure-specific environment variables-azure_openai_api_key = os.getenv('AZURE_OPENAI_KEY')-azure_openai_endpoint = os.getenv('AZURE_OPENAI_ENDPOINT')--if not azure_openai_api_key or not azure_openai_endpoint:- raise ValueError('AZURE_OPENAI_KEY or AZURE_OPENAI_ENDPOINT is not set')-# Initialize the Azure OpenAI clientllm = ChatAzureOpenAI(- model='gpt-4.1',- api_key=azure_openai_api_key,- azure_endpoint=azure_openai_endpoint, # Corrected to use azure_endpoint instead of openai_api_base+ model='o4-mini',)agent = Agent(