mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: missing return when auth failed
This commit is contained in:
parent
676baffa20
commit
5989d81f56
2 changed files with 2 additions and 0 deletions
1
index.js
1
index.js
|
|
@ -123,6 +123,7 @@ export class chatgpt extends plugin {
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
logger.error(e)
|
logger.error(e)
|
||||||
await this.reply(`OpenAI认证失败,请检查Token:${e}`, true)
|
await this.reply(`OpenAI认证失败,请检查Token:${e}`, true)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
let c
|
let c
|
||||||
logger.info(`chatgpt question: ${question}`)
|
logger.info(`chatgpt question: ${question}`)
|
||||||
|
|
|
||||||
|
|
@ -129,6 +129,7 @@ export class chatgpt extends plugin {
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
logger.error(e)
|
logger.error(e)
|
||||||
await this.reply(`OpenAI认证失败,请检查Token:${e}`, true)
|
await this.reply(`OpenAI认证失败,请检查Token:${e}`, true)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
let c
|
let c
|
||||||
logger.info(`chatgpt question: ${question}`)
|
logger.info(`chatgpt question: ${question}`)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue