Fix NPE in a test fixture

This commit is contained in:
Christian Tzolov
2024-10-07 20:48:10 +02:00
parent 4b95dfc2ef
commit 9678ea53e8

View File

@@ -230,6 +230,7 @@ class OpenAiChatClientIT extends AbstractIT {
String generationTextFromStream = chatResponses
.stream()
.filter(cr -> cr.getResult() != null)
.map(cr -> cr.getResult().getOutput().getContent())
.collect(Collectors.joining());
// @formatter:on