fix:设置有记忆的模型为默认时,chatHistoryConf=2

This commit is contained in:
rainv123
2025-11-21 18:39:57 +08:00
parent b15b5af349
commit 1e5b03edb5
2 changed files with 7 additions and 9 deletions
+3 -3
View File
@@ -606,10 +606,10 @@ export default {
}
if (type === "Memory") {
if (value === "Memory_nomem") {
// 无记忆功能的模型,默认不记录聊天记录
this.form.chatHistoryConf = 0;
} else if (value === "Memory_mem0ai" || value === "Memory_mem_local_short") {
this.form.chatHistoryConf = 2;
} else if (this.form.chatHistoryConf === 0 || this.form.chatHistoryConf === null) {
} else {
// 有记忆功能的模型,默认记录文本和语音
this.form.chatHistoryConf = 2;
}
}