Skip to content

Commit

Permalink
[fix] Propagate predict output code to batch request output codes in … (
Browse files Browse the repository at this point in the history
  • Loading branch information
davidthomas426 authored Oct 23, 2024
1 parent c807fe0 commit 87b86bb
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,11 @@ public void run() {
BytesSupplier err = BytesSupplier.wrap(JsonUtils.GSON.toJson(out));
for (Request req : list) {
req.last = true;
if (isBackportForNonStreamingHttpErrorCodes) {
// Note: This will only change the HTTP response code if the first chunk
// has not yet been sent
req.output.setCode(code);
}
req.data.appendContent(err, true);
}
list.clear();
Expand Down

0 comments on commit 87b86bb

Please sign in to comment.