Skip to content

Commit

Permalink
addDelta is propagated everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesDuboisSAP committed Aug 23, 2024
1 parent 09e1be0 commit 42ae946
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 42ae946

Please sign in to comment.