Commit 8fdca284 authored by youxiaoji's avatar youxiaoji

* [添加历史会话信息]

parent 1bd7e9c6
......@@ -187,7 +187,7 @@ public class DefaultReactExecutor implements ReactExecutor {
memoryService.getHistoryMessages(sessionId, historyLength);
// 添加历史消息到Prompt
// messages.addAll(historyMessages);
messages.addAll(historyMessages);
// 将当前用户消息添加到内存中,以便下次对话使用
memoryService.addUserMessageToMemory(sessionId, userInput);
......
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