Skip to content

Commit b91777d

Browse files
JM-Labmarkpollack
authored andcommitted
Fix incorrect ChatMemory initialization example in chat-memory.adoc
Signed-off-by: Jemin Huh <[email protected]>
1 parent 356a68f commit b91777d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat-memory.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ For example, if you want to use `MessageWindowChatMemory` with the `MessageChatM
151151

152152
[source,java]
153153
----
154-
ChatMemory chatMemory = MessageChatMemoryAdvisor.builder().build();
154+
ChatMemory chatMemory = MessageWindowChatMemory.builder().build();
155155
156156
ChatClient chatClient = ChatClient.builder(chatModel)
157157
.defaultAdvisors(MessageChatMemoryAdvisor.builder(chatMemory).build())

0 commit comments

Comments
 (0)