fix: unofficial api proxy be less strict with json parsing

chatgpt-api
Travis Fischer 2023-05-01 21:54:07 -05:00
rodzic f9bd80cd47
commit 0145cd128d
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -218,7 +218,8 @@ export class ChatGPTUnofficialProxyAPI {
} }
} }
} catch (err) { } catch (err) {
reject(err) console.warn('chatgpt unexpected JSON error', err)
// reject(err)
} }
}, },
onError: (err) => { onError: (err) => {