Skip to content

Commit

Permalink
Add identifier before json payload
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuacanter committed Nov 7, 2024
1 parent 3ffe0f0 commit 4d47b38
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ public Multi<String> chat(ChatBotRequest request) {
.onNext(em::emit)
.onRetrieved(sources -> {
try {
em.emit("START_SOURCES_STRING\n");
em.emit(objectMapper.writeValueAsString(new ContentResponse(sources)));
em.emit("\nEND_SOURCES_STRING\n");
} catch (JsonProcessingException e) {
log.error("Sources not processable: %e", e);
e.printStackTrace();
}
})
.onError(em::fail)
Expand Down

0 comments on commit 4d47b38

Please sign in to comment.