Skip to content

Commit 4248561

Browse files
authored
Update sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/controllers/OrchestrationController.java
1 parent cabe252 commit 4248561

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/controllers/OrchestrationController.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,12 @@ ResponseEntity<String> completion(
4040
@RequestHeader(value = "accept", required = false) final String accept)
4141
throws JsonProcessingException {
4242
final var response = service.completion("HelloWorld!");
43-
final var content = response.getContent();
44-
log.info("Our trusty AI answered with: {}", content);
4543
if (accept.equals("application/json")) {
4644
return ResponseEntity.ok()
4745
.contentType(MediaType.APPLICATION_JSON)
4846
.body(mapper.writeValueAsString(response));
4947
}
50-
return ResponseEntity.ok(content);
48+
return ResponseEntity.ok(response.getContent());
5149
}
5250

5351
/**

0 commit comments

Comments
 (0)