Skip to content

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

removed save image google serializer

Gregor Žunič737c292e756a
diff --git a/browser_use/llm/google/serializer.py b/browser_use/llm/google/serializer.py
index 2edf6b107..560de2544 100644
--- a/browser_use/llm/google/serializer.py
+++ b/browser_use/llm/google/serializer.py
@@ -85,10 +85,6 @@ class GoogleMessageSerializer:
# Decode base64 to bytes
image_bytes = base64.b64decode(data)
- # Save the image to a file
- with open('tmp/image.png', 'wb') as f:
- f.write(image_bytes)
-
# Add image part
image_part = Part.from_bytes(data=image_bytes, mime_type='image/png')