Skip to content

Commit

Permalink
Fix streaming final result (#611)
Browse files Browse the repository at this point in the history
  • Loading branch information
raulraja authored Dec 28, 2023
1 parent bdc12b6 commit 46aed9e
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,12 @@ sealed class StreamedFunction<out A> {
// because the previous chunk may had a partial property whose body
// may had not been fully streamed
streamProperty(path, currentProperty, functionCall.arguments, streamedProperties)

// we stream the result
streamResult(functionCall, messages, serializer)
}
}
if (finishReason != null) {
// we stream the result
streamResult(functionCall, messages, serializer)
}
}
}
}
Expand Down

0 comments on commit 46aed9e

Please sign in to comment.