fix: add 120s timeout for answering

This commit is contained in:
ikechan8370 2023-01-26 21:06:45 +08:00
parent 02ab29b4d5
commit 78a524bcbe

View file

@ -244,7 +244,8 @@ export class chatgpt extends plugin {
redis.set(`CHATGPT:CONVERSATIONS:${e.sender.user_id}`, JSON.stringify(previousConversation), { EX: CONVERSATION_PRESERVE_TIME }).then(res => {
logger.debug('redis set conversation')
})
}
},
timeoutMs: 120000
}
if (conversation) {
option = Object.assign(option, conversation)