From b0931573696b780d4b6d608d9f75dfa6aa793e67 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Sat, 15 Mar 2025 19:33:17 -0700 Subject: [PATCH] fix(converse_transformation.py): fix linting error --- litellm/llms/bedrock/chat/converse_handler.py | 20 +------------------ 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/litellm/llms/bedrock/chat/converse_handler.py b/litellm/llms/bedrock/chat/converse_handler.py index c4c518cca53..a4230177b54 100644 --- a/litellm/llms/bedrock/chat/converse_handler.py +++ b/litellm/llms/bedrock/chat/converse_handler.py @@ -13,7 +13,7 @@ from litellm.llms.custom_httpx.http_handler import ( get_async_httpx_client, ) from litellm.types.utils import ModelResponse -from litellm.utils import CustomStreamWrapper, get_secret +from litellm.utils import CustomStreamWrapper from ..base_aws_llm import BaseAWSLLM, Credentials from ..common_utils import BedrockError @@ -301,24 +301,6 @@ class BedrockConverseLLM(BaseAWSLLM): aws_sts_endpoint = optional_params.pop("aws_sts_endpoint", None) optional_params.pop("aws_region_name", None) - # if aws_region_name is None: - # # check env # - # litellm_aws_region_name = get_secret("AWS_REGION_NAME", None) - - # if litellm_aws_region_name is not None and isinstance( - # litellm_aws_region_name, str - # ): - # aws_region_name = litellm_aws_region_name - - # standard_aws_region_name = get_secret("AWS_REGION", None) - # if standard_aws_region_name is not None and isinstance( - # standard_aws_region_name, str - # ): - # aws_region_name = standard_aws_region_name - - # if aws_region_name is None: - # aws_region_name = "us-west-2" - litellm_params["aws_region_name"] = ( aws_region_name # [DO NOT DELETE] important for async calls )