Skip to content

Commit 8c8d4cb

Browse files
committed
fix(llm): fix llm bedrock
1 parent d0b408b commit 8c8d4cb

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

  • packages/uipath-llamaindex/src/uipath_llamaindex/llms

packages/uipath-llamaindex/src/uipath_llamaindex/llms/bedrock.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ def _check_bedrock_dependencies() -> None:
4242
_check_bedrock_dependencies()
4343

4444
import boto3 # type: ignore[import-untyped]
45+
from botocore import UNSIGNED
46+
from botocore.config import Config
4547
from llama_index.core.base.llms.types import ( # noqa: E402
4648
ChatMessage,
4749
ChatResponse,
@@ -98,6 +100,12 @@ def get_client(self):
98100
region_name="us-east-1",
99101
aws_access_key_id="none",
100102
aws_secret_access_key="none",
103+
config=Config(
104+
signature_version=UNSIGNED,
105+
retries={
106+
"total_max_attempts": 1,
107+
},
108+
),
101109
verify=True,
102110
)
103111
client.meta.events.register(

0 commit comments

Comments
 (0)