diff --git a/foundation-models/openai/src/main/java/com/sap/ai/sdk/foundationmodels/openai/model/OpenAiChatCompletionOutput.java b/foundation-models/openai/src/main/java/com/sap/ai/sdk/foundationmodels/openai/model/OpenAiChatCompletionOutput.java index a43bf802..86861d62 100644 --- a/foundation-models/openai/src/main/java/com/sap/ai/sdk/foundationmodels/openai/model/OpenAiChatCompletionOutput.java +++ b/foundation-models/openai/src/main/java/com/sap/ai/sdk/foundationmodels/openai/model/OpenAiChatCompletionOutput.java @@ -28,7 +28,12 @@ public class OpenAiChatCompletionOutput extends OpenAiCompletionOutput @Getter(onMethod_ = @Nonnull) private String systemFingerprint; - void addDelta(OpenAiDeltaChatCompletion delta) { + /** + * Add a streamed delta to the total output. + * + * @param delta the delta to add. + */ + public void addDelta(OpenAiDeltaChatCompletion delta) { if (delta.getSystemFingerprint() != null) { systemFingerprint = delta.getSystemFingerprint();