mirror of
https://github.com/cunnymessiah/keychecker.git
synced 2026-05-10 18:39:04 -07:00
actually fixed AWS checker this time
This commit is contained in:
@@ -115,6 +115,7 @@ def test_invoke_perms(bedrock_runtime_client):
|
||||
}
|
||||
try:
|
||||
bedrock_runtime_client.invoke_model(body=json.dumps(data), modelId="anthropic.claude-instant-v1")
|
||||
except bedrock_runtime_client.exceptions.ValidationException:
|
||||
return True
|
||||
except bedrock_runtime_client.exceptions.AccessDeniedException as e:
|
||||
print({e})
|
||||
|
||||
Reference in New Issue
Block a user