fix: 删除必应无token的提示因为不需要token了

This commit is contained in:
ikechan8370 2023-06-02 13:41:54 +08:00
parent cecb16ee62
commit 5c7d85efd0

View file

@ -2112,7 +2112,11 @@ export class chatgpt extends plugin {
async function getAvailableBingToken (conversation, throttled = []) {
let allThrottled = false
if (!await redis.get('CHATGPT:BING_TOKENS')) {
throw new Error('未绑定Bing Cookie请使用#chatgpt设置必应token命令绑定Bing Cookie')
return {
bingToken: null,
allThrottled
}
// throw new Error('未绑定Bing Cookie请使用#chatgpt设置必应token命令绑定Bing Cookie')
}
let bingToken = ''