kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
pull/715/head
rodzic
07a1896e69
commit
4725b9bfad
|
@ -12,6 +12,7 @@ export const queryClient = new QueryClient()
|
|||
|
||||
const retryStatusCodes = new Set([408, 413, 429, 500, 502, 503, 504])
|
||||
|
||||
// Inspired by https://github.com/sindresorhus/ky#retry
|
||||
function retry(failureCount: number, error: any): boolean {
|
||||
if (error instanceof HTTPError) {
|
||||
const { status } = error.response
|
||||
|
|
Ładowanie…
Reference in New Issue