File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
spring-ai-client-chat/src/main/java/org/springframework/ai/chat/client Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -522,19 +522,6 @@ private ChatClientResponse doGetObservableChatClientResponse(ChatClientRequest c
522
522
return chatClientResponse != null ? chatClientResponse : ChatClientResponse .builder ().build ();
523
523
}
524
524
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
-
538
525
@ Nullable
539
526
private static String getContentFromChatResponse (@ Nullable ChatResponse chatResponse ) {
540
527
return Optional .ofNullable (chatResponse )
You can’t perform that action at this time.
0 commit comments