* Checks if the error type indicates a server issue
(error: any)
| 56 | * Checks if the error type indicates a server issue |
| 57 | */ |
| 58 | function isServerError(error: any): boolean { |
| 59 | return error.type === "server_error" || error.type === "rate_limit_exceeded"; |
| 60 | } |
| 61 | |
| 62 | /** |
| 63 | * Checks if the error message indicates a connection issue |