diff options
| author | Dhravya <[email protected]> | 2024-04-13 01:53:50 -0700 |
|---|---|---|
| committer | Dhravya <[email protected]> | 2024-04-13 01:53:50 -0700 |
| commit | f0b2412a8b9b01ab5807dbb807eedb5cd46c69d4 (patch) | |
| tree | b0f9b885eb7bbf16f9729ad93ed7458476ab54ac /apps/web/src | |
| parent | switch to cloudfalre (diff) | |
| download | supermemory-f0b2412a8b9b01ab5807dbb807eedb5cd46c69d4.tar.xz supermemory-f0b2412a8b9b01ab5807dbb807eedb5cd46c69d4.zip | |
CloudflareAI for better streaming
Diffstat (limited to 'apps/web/src')
| -rw-r--r-- | apps/web/src/components/Main.tsx | 5 |
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> ))} |