Commit 5f45381d authored by 林洋洋's avatar 林洋洋

知识库对话添加文件引用

parent 18813de1
......@@ -187,7 +187,13 @@ public class ChatController {
contentBuilder.append(assistantMessage.getText());
}
return result;
}).doOnComplete(() -> {
})
.concatWith(Mono.fromSupplier(() -> {
ChatResult result = new ChatResult();
result.setMessage(reference);
return result;
}))
.doOnComplete(() -> {
String fullResponse = contentBuilder.toString();
chatService.saveHistoryMemory(conversationId, new AssistantMessage(fullResponse));
});
......
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