mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
fix(converse_transformation.py): fix linting error
This commit is contained in:
parent
937f0e2ca2
commit
b093157369
1 changed files with 1 additions and 19 deletions
|
|
@ -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
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue