actually fixed AWS checker this time

This commit is contained in:
based
2023-11-22 03:08:33 +10:00
parent bb87f63cd8
commit 4eaeac7ae3
+1
View File
@@ -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})