fixes typo in AWS ThrottlingException

This commit is contained in:
nai-degen
2024-10-23 15:36:21 -05:00
parent 55f7337ea4
commit 251ea6d412
+1 -1
View File
@@ -304,7 +304,7 @@ See https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference-
// is being rate limited. I think if a key does not have access to the
// model, it cannot receive a 429 response, so this should be a success.
if (status === 429) {
if (errorType.match(/ThrosttlingException/i)) {
if (errorType.match(/ThrottlingException/i)) {
this.log.debug(
{ key: key.hash, model, errorType, data, status, headers },
"Model is available but key is rate limited."