Commit 8c4a3e90 authored by alex yao's avatar alex yao

feat: SSE客户端断开感知

parent b0e49801
......@@ -192,9 +192,11 @@ public class AgentApplicationServiceImpl implements AgentApplicationService {
knowledgeSuperclassProblemConfig, httpServletResponse);
//保存对话记录
outputRecord.setContent(agentResultEntity.getMessage());
outputRecord.setReasoningContent(agentResultEntity.getReasoningContent());
bizAgentApplicationDialoguesRecordService.save(outputRecord);
if (StringUtils.isNotBlank(agentResultEntity.getMessage())) {
outputRecord.setContent(agentResultEntity.getMessage());
outputRecord.setReasoningContent(agentResultEntity.getReasoningContent());
bizAgentApplicationDialoguesRecordService.save(outputRecord);
}
//数据采集
if (StringUtils.isBlank(channel)) {
channel = DataAnalyzeChannelEnum.link_share.getChannel();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment