mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-26 00:53:54 +08:00
fix:设置默认记忆不是【无记忆】时,默认chatHistoryConf=2
This commit is contained in:
@@ -604,15 +604,14 @@ export default {
|
||||
if (type === "Intent" && value !== "Intent_nointent") {
|
||||
this.fetchAllFunctions();
|
||||
}
|
||||
if (type === "Memory" && value === "Memory_nomem") {
|
||||
this.form.chatHistoryConf = 0;
|
||||
}
|
||||
if (
|
||||
type === "Memory" &&
|
||||
value !== "Memory_nomem" &&
|
||||
(this.form.chatHistoryConf === 0 || this.form.chatHistoryConf === null)
|
||||
) {
|
||||
this.form.chatHistoryConf = 2;
|
||||
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) {
|
||||
this.form.chatHistoryConf = 2;
|
||||
}
|
||||
}
|
||||
if (type === "LLM") {
|
||||
// 当LLM类型改变时,更新意图识别选项的可见性
|
||||
|
||||
Reference in New Issue
Block a user