Skip to content

Commit 2c0f2ea

Browse files
committed
fix method reference
1 parent df8ce81 commit 2c0f2ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

orchestration/src/main/java/com/sap/ai/sdk/orchestration/OrchestrationChatResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public String getContent() throws OrchestrationOutputFilterException {
4848
Optional.of(getOriginalResponse().getModuleResults().getOutputFiltering())
4949
.map(outputFiltering -> (Map<String, Object>) outputFiltering.getData())
5050
.map(data -> (List<Map<String, Object>>) data.get("choices"))
51-
.map(List::getFirst)
51+
.map(choices -> choices.get(0))
5252
.orElseGet(Map::of);
5353

5454
throw new OrchestrationOutputFilterException(

0 commit comments

Comments
 (0)