Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
liangfung committed Dec 31, 2024
1 parent a0d1772 commit 61cff29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/tabby-agent/src/utils/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function isUnauthorizedError(error: any) {
}

export function isRateLimitedError(error: any) {
return error instanceof HttpError && [429].includes(error.status);
return error instanceof HttpError && error.status === 429;
}

export function errorToString(error: Error) {
Expand Down

0 comments on commit 61cff29

Please sign in to comment.