Skip to content

Commit 860ae68

Browse files
committed
fix: spring-javaformat:apply
Signed-off-by: YuJie Wan <[email protected]>
1 parent c4c9754 commit 860ae68

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spring-ai-client-chat/src/main/java/org/springframework/ai/chat/client/advisor/PromptChatMemoryAdvisor.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ public ChatClientResponse after(ChatClientResponse chatClientResponse, AdvisorCh
146146
List<Message> assistantMessages = new ArrayList<>();
147147
// Handle streaming case where we have a single result
148148
Optional.of(chatClientResponse)
149-
.map(ChatClientResponse::chatResponse)
150-
.map(ChatResponse::getResult)
151-
.map(Generation::getOutput)
152-
.ifPresent(assistantMessages::add);
149+
.map(ChatClientResponse::chatResponse)
150+
.map(ChatResponse::getResult)
151+
.map(Generation::getOutput)
152+
.ifPresent(assistantMessages::add);
153153

154154
if (!assistantMessages.isEmpty()) {
155155
this.chatMemory.add(this.getConversationId(chatClientResponse.context(), this.defaultConversationId),

0 commit comments

Comments
 (0)