mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
fix: 对话id
This commit is contained in:
parent
d9b5d77d46
commit
2401c5aed5
2 changed files with 5 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ export class ChatGPTManagement extends plugin {
|
|||
for (const userState of userStates) {
|
||||
if (userState.current.conversationId && userState.current.messageId) {
|
||||
num++
|
||||
userState.current.conversationId = ''
|
||||
userState.current.conversationId = crypto.randomUUID()
|
||||
userState.current.messageId = ''
|
||||
await Chaite.getInstance().getUserStateStorage().setItem(userState.userId + '', userState)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue