会话记忆
This commit is contained in:
parent
92c0344365
commit
9d95e3bff1
@ -27,6 +27,7 @@ public class LangChainConfig {
|
||||
return AiServices.builder(LangChainService.class)
|
||||
.chatModel(qwenChatModel)
|
||||
.chatMemory(chatMemory)
|
||||
.chatMemoryProvider(memoryId->MessageWindowChatMemory.withMaxMessages(10))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user