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
small fixes
Gregor Žunič160d0160fb8d
diff --git a/browser_use/llm/anthropic/serializer.py b/browser_use/llm/anthropic/serializer.pyindex b10a131cf..166be26ee 100644--- a/browser_use/llm/anthropic/serializer.py+++ b/browser_use/llm/anthropic/serializer.py@@ -41,7 +41,7 @@ class AnthropicMessageSerializer:# Ensure it's a supported media typesupported_types = ['image/jpeg', 'image/png', 'image/gif', 'image/webp']if media_type not in supported_types:- # Default to jpeg if not recognized+ # Default to png if not recognizedmedia_type = 'image/png'return media_type, data # type: ignorediff --git a/browser_use/tokens/service.py b/browser_use/tokens/service.pyindex cba421af0..eb907cdd1 100644--- a/browser_use/tokens/service.py+++ b/browser_use/tokens/service.py@@ -13,7 +13,6 @@ from pathlib import Pathfrom typing import Anyimport aiofiles-import aiofiles.osimport httpxfrom dotenv import load_dotenv