aboutsummaryrefslogtreecommitdiff
path: root/apps/web/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/src/components')
-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>
))}