Skip to content

Commit 84ebaab

Browse files
committed
remove unused method
1 parent 3dc86d3 commit 84ebaab

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

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

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -522,19 +522,6 @@ private ChatClientResponse doGetObservableChatClientResponse(ChatClientRequest c
522522
return chatClientResponse != null ? chatClientResponse : ChatClientResponse.builder().build();
523523
}
524524

525-
@NonNull
526-
private static ChatClientRequest augmentPromptWithFormatInstructions(ChatClientRequest chatClientRequest,
527-
String outputFormat) {
528-
Prompt augmentedPrompt = chatClientRequest.prompt()
529-
.augmentUserMessage(userMessage -> userMessage.mutate()
530-
.text(userMessage.getText() + System.lineSeparator() + outputFormat)
531-
.build());
532-
return ChatClientRequest.builder()
533-
.prompt(augmentedPrompt)
534-
.context(Map.copyOf(chatClientRequest.context()))
535-
.build();
536-
}
537-
538525
@Nullable
539526
private static String getContentFromChatResponse(@Nullable ChatResponse chatResponse) {
540527
return Optional.ofNullable(chatResponse)

0 commit comments

Comments
 (0)