Skip to content

Commit

Permalink
append newline
Browse files Browse the repository at this point in the history
  • Loading branch information
brunostjohn committed Nov 14, 2024
1 parent 5117bda commit 8d6e119
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/(app)/chat/[id]/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ const handleResponseData = (
}
if (data.type === "sources") {
handleSources(data, newMessageId)
.then(() => controller.enqueue(JSON.stringify({ type: "doneSources" })))
.then(() => controller.enqueue(JSON.stringify({ type: "doneSources" }) + "\n"))
.catch(console.error);
}
};
Expand Down

0 comments on commit 8d6e119

Please sign in to comment.