会话记忆

This commit is contained in:
huangge1199 2025-07-12 11:14:31 +08:00
parent 92c0344365
commit 9d95e3bff1

View File

@ -27,6 +27,7 @@ public class LangChainConfig {
return AiServices.builder(LangChainService.class)
.chatModel(qwenChatModel)
.chatMemory(chatMemory)
.chatMemoryProvider(memoryId->MessageWindowChatMemory.withMaxMessages(10))
.build();
}
}