aboutsummaryrefslogtreecommitdiff
path: root/apps/web/src
diff options
context:
space:
mode:
authorDhravya <[email protected]>2024-04-13 01:53:50 -0700
committerDhravya <[email protected]>2024-04-13 01:53:50 -0700
commitf0b2412a8b9b01ab5807dbb807eedb5cd46c69d4 (patch)
treeb0f9b885eb7bbf16f9729ad93ed7458476ab54ac /apps/web/src
parentswitch to cloudfalre (diff)
downloadsupermemory-f0b2412a8b9b01ab5807dbb807eedb5cd46c69d4.tar.xz
supermemory-f0b2412a8b9b01ab5807dbb807eedb5cd46c69d4.zip
CloudflareAI for better streaming
Diffstat (limited to 'apps/web/src')
-rw-r--r--apps/web/src/components/Main.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/web/src/components/Main.tsx b/apps/web/src/components/Main.tsx
index 9869a0fe..037d48a5 100644
--- a/apps/web/src/components/Main.tsx
+++ b/apps/web/src/components/Main.tsx
@@ -374,7 +374,10 @@ export function Chat({
loading={i === chatHistory.length - 1 ? isLoading : false}
sources={msg.answer.sources}
>
- {msg.answer.parts.map((part) => part.text).join(" ")}
+ {msg.answer.parts
+ .map((part) => part.text)
+ .join("")
+ .replace("</s>", "")}
</ChatAnswer>
</ChatMessage>
))}