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
type fix
Gregor Žuničf21a1e07faa2
diff --git a/browser_use/llm/aws/chat_bedrock.py b/browser_use/llm/aws/chat_bedrock.pyindex f7f9740ae..3a1259544 100644--- a/browser_use/llm/aws/chat_bedrock.py+++ b/browser_use/llm/aws/chat_bedrock.py@@ -1,5 +1,3 @@-# pyright: reportMissingImports=false-import jsonfrom dataclasses import dataclassfrom os import getenv@@ -14,8 +12,8 @@ from browser_use.llm.messages import BaseMessagefrom browser_use.llm.views import ChatInvokeCompletion, ChatInvokeUsageif TYPE_CHECKING:- from boto3 import client as AwsClient- from boto3.session import Session+ from boto3 import client as AwsClient # type: ignore+ from boto3.session import Session # type: ignoreT = TypeVar('T', bound=BaseModel)@@ -59,10 +57,10 @@ class ChatAWSBedrock(BaseChatModel):def provider(self) -> str:return 'aws_bedrock'- def _get_client(self) -> 'AwsClient':+ def _get_client(self) -> 'AwsClient': # type: ignore"""Get the AWS Bedrock client."""try:- from boto3 import client as AwsClient+ from boto3 import client as AwsClient # type: ignoreexcept ImportError:raise ImportError('`boto3` not installed. Please install using `pip install browser-use[aws] or pip install browser-use[all]`'@@ -171,7 +169,7 @@ class ChatAWSBedrock(BaseChatModel):Either a string response or an instance of output_format"""try:- from botocore.exceptions import ClientError+ from botocore.exceptions import ClientError # type: ignoreexcept ImportError:raise ImportError('`boto3` not installed. Please install using `pip install browser-use[aws] or pip install browser-use[all]`'