From 47e3eea939102c771c8f1093ef42cf830eb7dcba Mon Sep 17 00:00:00 2001 From: chm10 Date: Tue, 17 Sep 2024 01:35:24 -0300 Subject: [PATCH] feat: Add cross-region inference support for Bedrock models (#535) - Fixing '(' was never closed --- backend/app/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/utils.py b/backend/app/utils.py index 113b4b50..36f28b6e 100644 --- a/backend/app/utils.py +++ b/backend/app/utils.py @@ -51,7 +51,7 @@ def get_bedrock_client(region=BEDROCK_REGION): else: if ENABLE_BEDROCK_CROSS_REGION_INFERENCE: logger.warning(f"Cross-region inference is enabled, but the region {region} is not supported. Using default region.") - return boto3.client("bedrock-runtime", region_name=REGION + return boto3.client("bedrock-runtime", region_name=REGION) def get_bedrock_agent_client(region=REGION):