aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/ChatBox/AnswerParser.ts
diff options
context:
space:
mode:
authorA.J. Shulman <Shulman.aj@gmail.com>2024-08-21 16:06:31 -0400
committerA.J. Shulman <Shulman.aj@gmail.com>2024-08-21 16:06:31 -0400
commit484eb670b291afa07f2f7b976fafe02bdc9ac71d (patch)
treec201a6ac6d3cd729ff07a219c7a05987138c409a /src/client/views/nodes/ChatBox/AnswerParser.ts
parente5464e4c04ef6f8a2bbf868b43bbcdba54239406 (diff)
added answer streaming parsing so it provides realtime parsing and then follow-up questions and citations are added when its finished
Diffstat (limited to 'src/client/views/nodes/ChatBox/AnswerParser.ts')
-rw-r--r--src/client/views/nodes/ChatBox/AnswerParser.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/ChatBox/AnswerParser.ts b/src/client/views/nodes/ChatBox/AnswerParser.ts
index 1d46a366d..b18083a27 100644
--- a/src/client/views/nodes/ChatBox/AnswerParser.ts
+++ b/src/client/views/nodes/ChatBox/AnswerParser.ts
@@ -56,7 +56,7 @@ export class AnswerParser {
while ((match = groundedTextRegex.exec(rawTextContent)) !== null) {
const [fullMatch, citationIndex, groundedText] = match;
- // Add normal text before the grounded text
+ // Add normal text that is before the grounded text
if (match.index > lastIndex) {
const normalText = rawTextContent.slice(lastIndex, match.index).trim();
if (normalText) {