We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df8ce81 commit 2c0f2eaCopy full SHA for 2c0f2ea
orchestration/src/main/java/com/sap/ai/sdk/orchestration/OrchestrationChatResponse.java
@@ -48,7 +48,7 @@ public String getContent() throws OrchestrationOutputFilterException {
48
Optional.of(getOriginalResponse().getModuleResults().getOutputFiltering())
49
.map(outputFiltering -> (Map<String, Object>) outputFiltering.getData())
50
.map(data -> (List<Map<String, Object>>) data.get("choices"))
51
- .map(List::getFirst)
+ .map(choices -> choices.get(0))
52
.orElseGet(Map::of);
53
54
throw new OrchestrationOutputFilterException(
0 commit comments