mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-25 04:29:51 +01:00
fix: 修复智能体配置变更时错误删除历史音频的问题
This commit is contained in:
parent
6d89ae1c66
commit
1a6d9d7490
1 changed files with 0 additions and 3 deletions
|
|
@ -410,9 +410,6 @@ public class AgentServiceImpl extends BaseServiceImpl<AgentDao, AgentEntity> imp
|
||||||
// 删除所有记录
|
// 删除所有记录
|
||||||
agentChatHistoryService.deleteByAgentId(existingEntity.getId(), true, true);
|
agentChatHistoryService.deleteByAgentId(existingEntity.getId(), true, true);
|
||||||
existingEntity.setSummaryMemory("");
|
existingEntity.setSummaryMemory("");
|
||||||
} else if (existingEntity.getChatHistoryConf() != null && existingEntity.getChatHistoryConf() == 1) {
|
|
||||||
// 删除音频数据
|
|
||||||
agentChatHistoryService.deleteByAgentId(existingEntity.getId(), true, false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 更新上下文源配置
|
// 更新上下文源配置
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue