fix(bedrock.py): add support for sts based boto3 initialization

https://github.com/BerriAI/litellm/issues/1476
This commit is contained in:
Krrish Dholakia 2024-01-17 12:08:39 -08:00
parent 809edbfb2d
commit cc89aa7456
5 changed files with 106 additions and 4 deletions

View file

@ -2527,9 +2527,7 @@ def embedding(
)
## Map to OpenAI Exception
raise exception_type(
model=model,
original_exception=e,
custom_llm_provider="azure" if azure == True else None,
model=model, original_exception=e, custom_llm_provider=custom_llm_provider
)