Commit 37c9fd28 authored by alex yao's avatar alex yao

feat:知识库超纲回复

parent 9a822a4e
......@@ -216,6 +216,7 @@ public class AgentApplicationInfoServiceImpl implements AgentApplicationInfoServ
LargeModelDemandResult result = new LargeModelDemandResult();
result.setCode("0");
result.setMessage(mess);
result.setFinish_reason("finish");
writer.write(EVENT_STREAM_PREFIX + JsonUtils.serialize(result) + "\n\n");
writer.write(EVENT_STREAM_PREFIX + "[DONE]" + "\n\n");
writer.flush();
......@@ -572,10 +573,6 @@ public class AgentApplicationInfoServiceImpl implements AgentApplicationInfoServ
result.setKnowledgeContentResult(knowledgeResult);
writer.write(EVENT_STREAM_PREFIX + JsonUtils.serialize(result) + "\n\n");
writer.flush();
} else {
//todo 处理知识库超纲问题
}
if (ObjectUtil.isNotNull(functionResult) && StringUtils.isNotBlank(functionResult.getFunctionName())) {
LargeModelDemandResult result = new LargeModelDemandResult();
......
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