Skip to content

Commit

Permalink
fix(bedrock_endpoint): removing the use of the bedrock endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
massi-ang authored and spugachev committed Nov 27, 2023
1 parent f70325d commit a2e5634
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/shared/layers/python-sdk/python/genai_core/clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,10 @@ def get_bedrock_client(service_name="bedrock-runtime"):

bedrock_config_data = {"service_name": service_name}
region_name = bedrock_config.get("region")
endpoint_url = bedrock_config.get("endpointUrl")
role_arn = bedrock_config.get("roleArn")

if region_name:
bedrock_config_data["region_name"] = region_name
if endpoint_url:
bedrock_config_data["endpoint_url"] = endpoint_url

if role_arn:
assumed_role_object = sts_client.assume_role(
Expand Down

0 comments on commit a2e5634

Please sign in to comment.