mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: format code
This commit is contained in:
parent
2679206be9
commit
414eb1b098
12 changed files with 819 additions and 908 deletions
|
|
@ -239,7 +239,7 @@ export class dalle extends plugin {
|
|||
this.reply('请提供绘图prompt')
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
let bingToken = ''
|
||||
if (await redis.exists('CHATGPT:BING_TOKENS') != 0) {
|
||||
let bingTokens = JSON.parse(await redis.get('CHATGPT:BING_TOKENS'))
|
||||
|
|
@ -251,7 +251,6 @@ export class dalle extends plugin {
|
|||
})
|
||||
bingToken = minElement.Token
|
||||
} else if (restricted.length > 0) {
|
||||
allThrottled = true
|
||||
const minElement = restricted.reduce((min, current) => {
|
||||
return current.Usage < min.Usage ? current : min
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue