mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-14 09:03:16 +00:00
fix(bedrock): preserve missing credentials error
This commit is contained in:
parent
77a740ba08
commit
df6b749960
1 changed files with 0 additions and 5 deletions
|
|
@ -1472,11 +1472,6 @@ class BaseAWSLLM:
|
|||
from botocore.exceptions import NoCredentialsError
|
||||
except ImportError:
|
||||
raise ImportError("Missing boto3 to call bedrock. Run 'pip install boto3'.")
|
||||
if credentials is None:
|
||||
raise ValueError(
|
||||
"AWS credentials are required when Bedrock bearer token authentication is not configured."
|
||||
)
|
||||
|
||||
if credentials is None:
|
||||
raise NoCredentialsError()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue