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
|
|
@ -38,6 +38,9 @@ export class Chat extends plugin {
|
|||
if (!state.current.conversationId) {
|
||||
state.current.conversationId = crypto.randomUUID()
|
||||
}
|
||||
if (!state.current.messageId) {
|
||||
state.current.messageId = crypto.randomUUID()
|
||||
}
|
||||
const preset = await getPreset(e, state?.settings.preset || Config.llm.defaultChatPresetId, Config.basic.toggleMode, Config.basic.togglePrefix)
|
||||
if (!preset) {
|
||||
logger.debug('不满足对话触发条件或未找到预设,不进入对话')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue