Skip to content

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

hotfix

mertunsall073b6bdbce3a
diff --git a/browser_use/llm/google/serializer.py b/browser_use/llm/google/serializer.py
index 560de2544..7ab748759 100644
--- a/browser_use/llm/google/serializer.py
+++ b/browser_use/llm/google/serializer.py
@@ -93,6 +93,7 @@ class GoogleMessageSerializer:
# Create the Content object
if message_parts:
final_message = Content(role=role, parts=message_parts)
- formatted_messages.append(final_message)
+ # for some reason, the type checker is not able to infer the type of formatted_messages
+ formatted_messages.append(final_message) # type: ignore
return formatted_messages, system_message