fix(converse_transformation.py): fix linting error

This commit is contained in:
Krrish Dholakia 2025-03-15 19:33:17 -07:00
parent 937f0e2ca2
commit b093157369

View file

@ -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
)