Revert "fix:修复智能体记忆模型配置变更时错误删除历史聊天音频的问题"

This commit is contained in:
wengzh 2026-03-24 11:05:35 +08:00 committed by GitHub
parent 94cc8564aa
commit 87f9ab7bb4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -410,6 +410,9 @@ public class AgentServiceImpl extends BaseServiceImpl<AgentDao, AgentEntity> imp
// 删除所有记录
agentChatHistoryService.deleteByAgentId(existingEntity.getId(), true, true);
existingEntity.setSummaryMemory("");
} else if (existingEntity.getChatHistoryConf() != null && existingEntity.getChatHistoryConf() == 1) {
// 删除音频数据
agentChatHistoryService.deleteByAgentId(existingEntity.getId(), true, false);
}
// 更新上下文源配置