Skip to content

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

small fixes

Gregor Žunič160d0160fb8d
diff --git a/browser_use/llm/anthropic/serializer.py b/browser_use/llm/anthropic/serializer.py
index 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 type
supported_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 recognized
media_type = 'image/png'
return media_type, data # type: ignore
diff --git a/browser_use/tokens/service.py b/browser_use/tokens/service.py
index cba421af0..eb907cdd1 100644
--- a/browser_use/tokens/service.py
+++ b/browser_use/tokens/service.py
@@ -13,7 +13,6 @@ from pathlib import Path
from typing import Any
import aiofiles
-import aiofiles.os
import httpx
from dotenv import load_dotenv