Skip to content

Commit

Permalink
fix: restore original behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
astsiapanay committed Dec 11, 2024
1 parent a65d17a commit 3528a53
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,13 @@ private void append(ProxyContext context, LogEntry entry, String assembledStream
append(entry, ProxyUtil.MAPPER.writeValueAsString(executionPath), false);
}

if (!context.isSecuredApiKey() && assembledStreamingResponse != null) {
if (!context.isSecuredApiKey()) {
append(entry, ",\"assembled_response\":\"", false);
append(entry, assembledStreamingResponse, true);
if (assembledStreamingResponse != null) {
append(entry, assembledStreamingResponse, true);
} else {
append(entry, context.getResponseBody());
}
append(entry, "\"", false);
}

Expand Down

0 comments on commit 3528a53

Please sign in to comment.