mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: 使用更清晰的报错信息
This commit is contained in:
parent
b4f37b5339
commit
cae324f250
2 changed files with 1 additions and 4 deletions
|
|
@ -1052,9 +1052,6 @@ export class chatgpt extends plugin {
|
|||
break
|
||||
} catch (error) {
|
||||
const message = error?.message || error?.data?.message || error || '出错了'
|
||||
if (message !== 'Timed out waiting for first message.') {
|
||||
logger.error(error)
|
||||
}
|
||||
retry--
|
||||
errorMessage = message === 'Timed out waiting for response. Try enabling debug mode to see more information.' ? (reply ? `${reply}\n不行了,我的大脑过载了,处理不过来了!` : '必应的小脑瓜不好使了,不知道怎么回答!') : message
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue