@brainfish-ai/components 0.12.1 → 0.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/chunks/{ChatSearch.CjA53bKm.js → ChatSearch.BsztdMaK.js} +4 -1
- package/dist/esm/chunks/ChatSearch.BsztdMaK.js.map +1 -0
- package/dist/esm/components/chat-search.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/stats.html +1 -1
- package/package.json +1 -1
- package/dist/esm/chunks/ChatSearch.CjA53bKm.js.map +0 -1
|
@@ -5373,6 +5373,9 @@ const ChatSearchComponent = forwardRef(
|
|
|
5373
5373
|
const lines = new TextDecoder().decode(value).split(/\n\n/).filter((line) => line.startsWith("data: ")).map((line) => line.replace(/^data: /, "").trim());
|
|
5374
5374
|
for (const line of lines) {
|
|
5375
5375
|
try {
|
|
5376
|
+
if (line === "[DONE]") {
|
|
5377
|
+
continue;
|
|
5378
|
+
}
|
|
5376
5379
|
const event = JSON.parse(line);
|
|
5377
5380
|
if (event.type === "answer-text-chunk") {
|
|
5378
5381
|
accumulatedAnswer += event.content;
|
|
@@ -5961,4 +5964,4 @@ const ChatSearch = forwardRef(({ featureFlags, ...props }, ref) => /* @__PURE__
|
|
|
5961
5964
|
ChatSearch.displayName = "ChatSearch";
|
|
5962
5965
|
|
|
5963
5966
|
export { ChatSearch as C, ChatSearchProvider as a, useIsChatSearchDirty as b, useChatSearch as u };
|
|
5964
|
-
//# sourceMappingURL=ChatSearch.
|
|
5967
|
+
//# sourceMappingURL=ChatSearch.BsztdMaK.js.map
|