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
fixed few more ruff linter issues
Sandeepffb2ee38acbc
diff --git a/browser_use/llm/oci_raw/serializer.py b/browser_use/llm/oci_raw/serializer.pyindex a0a5dd02c..caf438cad 100644--- a/browser_use/llm/oci_raw/serializer.py+++ b/browser_use/llm/oci_raw/serializer.py@@ -5,8 +5,6 @@ This module handles the conversion between browser-use message formatsand the OCI Raw API message format using proper OCI SDK models."""-from typing import List-from oci.generative_ai_inference.models import ImageContent, ImageUrl, Message, TextContentfrom browser_use.llm.messages import (@@ -61,7 +59,7 @@ class OCIRawMessageSerializer:return ImageContent(image_url=image_url)@staticmethod- def serialize_messages(messages: List[BaseMessage]) -> List[Message]:+ def serialize_messages(messages: list[BaseMessage]) -> list[Message]:"""Serialize a list of browser-use messages to OCI Raw API Message objects.@@ -156,7 +154,7 @@ class OCIRawMessageSerializer:return oci_messages@staticmethod- def serialize_messages_for_cohere(messages: List[BaseMessage]) -> str:+ def serialize_messages_for_cohere(messages: list[BaseMessage]) -> str:"""Serialize messages for Cohere models which expect a single message string.