Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "uipath-langchain"
version = "0.5.10"
version = "0.5.11"
description = "Python SDK that enables developers to build and deploy LangGraph agents to the UiPath Cloud Platform"
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.11"
Expand Down
10 changes: 7 additions & 3 deletions src/uipath_langchain/chat/bedrock.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ def _check_bedrock_dependencies() -> None:
_check_bedrock_dependencies()

import boto3
import botocore.config
from botocore import UNSIGNED
from botocore.config import Config
from langchain_aws import (
ChatBedrock,
ChatBedrockConverse,
Expand Down Expand Up @@ -97,10 +98,11 @@ def get_client(self):
region_name="none",
aws_access_key_id="none",
aws_secret_access_key="none",
config=botocore.config.Config(
config=Config(
signature_version=UNSIGNED,
retries={
"total_max_attempts": 1,
}
},
),
)
client.meta.events.register(
Expand Down Expand Up @@ -183,6 +185,7 @@ def __init__(
client = passthrough_client.get_client()
kwargs["client"] = client
kwargs["model"] = model_name
kwargs.setdefault("region_name", "none")
super().__init__(**kwargs)
self.model = model_name
self.retryer = retryer
Expand Down Expand Up @@ -244,6 +247,7 @@ def __init__(
client = passthrough_client.get_client()
kwargs["client"] = client
kwargs["model"] = model_name
kwargs.setdefault("region_name", "none")
super().__init__(**kwargs)
self.model = model_name
self.retryer = retryer
Expand Down
Loading