You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AWS Bedrock - An error occurred (AccessDeniedException) when calling the Converse operation: You don't have access to the model with the specified model ID.
#174
Open
FelipeErmeson opened this issue
Jan 3, 2025
· 0 comments
When correctly configuring the AWS_ACCESS_KEY, AWS_SECRET_KEY and AWS_REGION environment variables, and releasing access to the template to be used, I am getting access denied.
Error I'm getting:
An error occurred (AccessDeniedException) when calling the Converse operation: You don't have access to the model with the specified model ID.
Code:
client = ai.Client()
model="aws:anthropic.claude-3-5-sonnet-20240620-v1:0"
messages = [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "What’s the weather like in San Francisco?"},
]
try:
response = client.chat.completions.create(
model=model,
messages=messages,
)
except Exception as ex:
print(ex)
Library:
boto3==1.35.91
The text was updated successfully, but these errors were encountered:
FelipeErmeson
changed the title
An error occurred (AccessDeniedException) when calling the Converse operation: You don't have access to the model with the specified model ID.
AWS Bedrock - An error occurred (AccessDeniedException) when calling the Converse operation: You don't have access to the model with the specified model ID.
Jan 3, 2025
When correctly configuring the AWS_ACCESS_KEY, AWS_SECRET_KEY and AWS_REGION environment variables, and releasing access to the template to be used, I am getting access denied.
Error I'm getting:
An error occurred (AccessDeniedException) when calling the Converse operation: You don't have access to the model with the specified model ID.
Code:
Library:
boto3==1.35.91
The text was updated successfully, but these errors were encountered: