From 996d28999da0c9f035cdc06a4c1d276ad137d096 Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Mon, 1 May 2023 21:54:46 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/chatgpt-unofficial-proxy-api.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/chatgpt-unofficial-proxy-api.ts b/src/chatgpt-unofficial-proxy-api.ts index 4dd10bfc..e67813ec 100644 --- a/src/chatgpt-unofficial-proxy-api.ts +++ b/src/chatgpt-unofficial-proxy-api.ts @@ -218,7 +218,9 @@ export class ChatGPTUnofficialProxyAPI { } } } catch (err) { - console.warn('chatgpt unexpected JSON error', err) + if (this._debug) { + console.warn('chatgpt unexpected JSON error', err) + } // reject(err) } },