File tree Expand file tree Collapse file tree 2 files changed +2
-70
lines changed
sample-code/spring-app/src
main/java/com/sap/ai/sdk/app/services
test/java/com/sap/ai/sdk/app/controllers Expand file tree Collapse file tree 2 files changed +2
-70
lines changed Original file line number Diff line number Diff line change @@ -100,8 +100,8 @@ public ChatResponse ChatMemory() {
100100 val memory = MessageWindowChatMemory .builder ().chatMemoryRepository (repository ).build ();
101101 val advisor = MessageChatMemoryAdvisor .builder (memory ).build ();
102102 val cl = ChatClient .builder (chatClient ).defaultAdvisors (advisor ).build ();
103- val prompt1 = new Prompt ("What is the capital of France?" , new OpenAiChatOptions ());
104- val prompt2 = new Prompt ("And what is the typical food there?" , new OpenAiChatOptions ());
103+ val prompt1 = new Prompt ("What is the capital of France?" , new OpenAiChatOptions ());
104+ val prompt2 = new Prompt ("And what is the typical food there?" , new OpenAiChatOptions ());
105105
106106 cl .prompt (prompt1 ).call ().content ();
107107 return Objects .requireNonNull (
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments