diff --git a/main/manager-api/src/main/java/xiaozhi/modules/agent/service/impl/AgentServiceImpl.java b/main/manager-api/src/main/java/xiaozhi/modules/agent/service/impl/AgentServiceImpl.java index 981a2bcf4..d4f4dbda5 100644 --- a/main/manager-api/src/main/java/xiaozhi/modules/agent/service/impl/AgentServiceImpl.java +++ b/main/manager-api/src/main/java/xiaozhi/modules/agent/service/impl/AgentServiceImpl.java @@ -97,7 +97,7 @@ public class AgentServiceImpl extends BaseServiceImpl imp agent.setChatHistoryConf(Constant.ChatHistoryConfEnum.IGNORE.getCode()); } if (agent.getChatHistoryConf() == null) { - agent.setChatHistoryConf(Constant.ChatHistoryConfEnum.RECORD_TEXT_AUDIO.getCode()); + agent.setChatHistoryConf(Constant.ChatHistoryConfEnum.RECORD_TEXT.getCode()); } // 查询上下文源配置 @@ -501,8 +501,8 @@ public class AgentServiceImpl extends BaseServiceImpl imp // 无记忆功能的模型,默认不记录聊天记录 entity.setChatHistoryConf(0); } else { - // 有记忆功能的模型,默认记录文本和语音 - entity.setChatHistoryConf(2); + // 有记忆功能的模型,默认记录文本 + entity.setChatHistoryConf(1); } } else { entity.setChatHistoryConf(template.getChatHistoryConf()); diff --git a/main/manager-api/src/main/java/xiaozhi/modules/config/service/impl/ConfigServiceImpl.java b/main/manager-api/src/main/java/xiaozhi/modules/config/service/impl/ConfigServiceImpl.java index 4d8c71ee7..4cd539053 100644 --- a/main/manager-api/src/main/java/xiaozhi/modules/config/service/impl/ConfigServiceImpl.java +++ b/main/manager-api/src/main/java/xiaozhi/modules/config/service/impl/ConfigServiceImpl.java @@ -189,7 +189,7 @@ public class ConfigServiceImpl implements ConfigService { } else if (agent.getMemModelId() != null && !agent.getMemModelId().equals(Constant.MEMORY_NO_MEM) && agent.getChatHistoryConf() == null) { - chatHistoryConf = Constant.ChatHistoryConfEnum.RECORD_TEXT_AUDIO.getCode(); + chatHistoryConf = Constant.ChatHistoryConfEnum.RECORD_TEXT.getCode(); } result.put("chat_history_conf", chatHistoryConf); // 如果客户端已实例化模型,则不返回 diff --git a/main/manager-mobile/src/pages/agent/edit.vue b/main/manager-mobile/src/pages/agent/edit.vue index 964ad0b2b..5f7c83079 100644 --- a/main/manager-mobile/src/pages/agent/edit.vue +++ b/main/manager-mobile/src/pages/agent/edit.vue @@ -490,7 +490,7 @@ async function onPickerConfirm(type: string, value: any, name: string) { break case 'memory': formData.value.memModelId = value - formData.value.chatHistoryConf = value === 'Memory_nomem' ? 0 : 2 + formData.value.chatHistoryConf = value === 'Memory_nomem' ? 0 : 1 displayNames.value.memory = name // 确保显示名称正确更新 displayNames.value.report = reportOptions[1].name isVisibleReport.value = value !== 'Memory_nomem' diff --git a/main/manager-web/src/views/roleConfig.vue b/main/manager-web/src/views/roleConfig.vue index 151094ef4..d37e1928d 100644 --- a/main/manager-web/src/views/roleConfig.vue +++ b/main/manager-web/src/views/roleConfig.vue @@ -954,8 +954,8 @@ export default { // 无记忆功能的模型,默认不记录聊天记录 this.form.chatHistoryConf = 0; } else { - // 有记忆功能的模型,默认记录文本和语音 - this.form.chatHistoryConf = 2; + // 有记忆功能的模型,默认记录文本 + this.form.chatHistoryConf = 1; } if (value === "Memory_nomem" || value === "Memory_mem_report_only") { this.tempSummaryMemory = this.form.summaryMemory;