mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: add 120s timeout for answering
This commit is contained in:
parent
02ab29b4d5
commit
78a524bcbe
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue