Just tested the vanilla example of Bedrock model, reported here, and I keep on getting invalid credentials for all the calls, even if the credentials are valid (I tested them via AWS CLI and they work).
response = completion(
model="bedrock/anthropic.claude-3-sonnet-20240229-v1:0",
messages=[{ "content": "Hello, how are you?","role": "user"}]
)`
Relevant log output
raise AuthenticationError(
litellm.exceptions.AuthenticationError: litellm.AuthenticationError: BedrockException Invalid Authentication - {"message":"The security token included in the request is invalid."}
What happened?
Just tested the vanilla example of Bedrock model, reported here, and I keep on getting invalid credentials for all the calls, even if the credentials are valid (I tested them via AWS CLI and they work).
LiteLLM==1.49.5 boto3==1.35.41
`import os from litellm import completion
os.environ["AWS_ACCESS_KEY_ID"] = ""
os.environ["AWS_SECRET_ACCESS_KEY"] = ""
os.environ["AWS_REGION_NAME"] = "us-west-2"
response = completion( model="bedrock/anthropic.claude-3-sonnet-20240229-v1:0", messages=[{ "content": "Hello, how are you?","role": "user"}] )`
Relevant log output
Twitter / LinkedIn details
No response