mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
fix: 对话错误问题
This commit is contained in:
parent
af28390a54
commit
b30488bdb9
2 changed files with 5 additions and 2 deletions
|
|
@ -99,7 +99,7 @@ export class ChatGPTManagement extends plugin {
|
|||
if (userState.current.conversationId && userState.current.messageId) {
|
||||
num++
|
||||
userState.current.conversationId = crypto.randomUUID()
|
||||
userState.current.messageId = ''
|
||||
userState.current.messageId = crypto.randomUUID()
|
||||
await Chaite.getInstance().getUserStateStorage().setItem(userState.userId + '', userState)
|
||||
}
|
||||
}
|
||||
|
|
@ -111,7 +111,7 @@ export class ChatGPTManagement extends plugin {
|
|||
return false
|
||||
}
|
||||
state.current.conversationId = crypto.randomUUID()
|
||||
state.current.messageId = ''
|
||||
state.current.messageId = crypto.randomUUID()
|
||||
await Chaite.getInstance().getUserStateStorage().setItem(e.sender.user_id + '', state)
|
||||
this.reply('已结束当前对话')
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue