Skip to content

Commit 616e4e3

Browse files
committed
Handling JsonProcessingException
1 parent 55a8cf1 commit 616e4e3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/services/SpringAiOrchestrationService.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,6 @@ public ChatResponse getPromptTemplate() {
288288
OrchestrationSpringUtil.getPromptTemplate(
289289
"prompt_template_name",
290290
Map.of("current_timestamp", System.currentTimeMillis(), "topic", "Time"));
291-
292-
val response = cl.prompt(prompt).call();
293-
return response.chatResponse();
291+
return cl.prompt(prompt).call().chatResponse();
294292
}
295293
}

0 commit comments

Comments
 (0)