Skip to content

Commit e89d8a9

Browse files
updated docs
1 parent 83f2a4e commit e89d8a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/guides/SPRING_AI_INTEGRATION.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,11 @@ val advisor = new MessageChatMemoryAdvisor(memory);
152152
val cl = ChatClient.builder(client).defaultAdvisors(advisor).build();
153153

154154
Prompt prompt1 = new Prompt("What is the capital of France?", defaultOptions);
155-
String content = cl.prompt(prompt1).call().content();
156-
// content is "Paris"
155+
String content1 = cl.prompt(prompt1).call().content();
156+
// content1 is "Paris"
157157

158158
Prompt prompt2 = new Prompt("And what is the typical food there?", defaultOptions);
159-
ChatResponse response = cl.prompt(prompt2).call().chatResponse();
159+
String content2 = cl.prompt(prompt2).call().content();
160160
// chat memory will remember that the user is inquiring about France.
161161
```
162162

0 commit comments

Comments
 (0)