From d7cb9aa56dced0c9c2079753512223ecb38e762a Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Sat, 17 Jun 2023 15:31:19 +0800 Subject: [PATCH] fix: unknown --- apps/chat.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/chat.js b/apps/chat.js index 12424d6..4bb7ecb 100644 --- a/apps/chat.js +++ b/apps/chat.js @@ -1532,6 +1532,9 @@ export class chatgpt extends plugin { if (bingToken?.indexOf('=') > -1) { cookies = bingToken } + if (!bingAIClient.opts) { + bingAIClient.opts = {} + } bingAIClient.opts.userToken = bingToken bingAIClient.opts.cookies = cookies opt.messageType = allThrottled ? 'Chat' : 'SearchQuery'