From 0145cd128df3cb0371f768596d3ac164971e781d Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Mon, 1 May 2023 21:54:07 -0500 Subject: [PATCH] fix: unofficial api proxy be less strict with json parsing --- legacy/src/chatgpt-unofficial-proxy-api.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/legacy/src/chatgpt-unofficial-proxy-api.ts b/legacy/src/chatgpt-unofficial-proxy-api.ts index 57a3b0d1..4dd10bfc 100644 --- a/legacy/src/chatgpt-unofficial-proxy-api.ts +++ b/legacy/src/chatgpt-unofficial-proxy-api.ts @@ -218,7 +218,8 @@ export class ChatGPTUnofficialProxyAPI { } } } catch (err) { - reject(err) + console.warn('chatgpt unexpected JSON error', err) + // reject(err) } }, onError: (err) => {