From 9b8ea98fd14924f38189785a78d873b940c5d5af Mon Sep 17 00:00:00 2001 From: Jicheng Lu <103353@smsassist.com> Date: Fri, 4 Oct 2024 11:22:45 -0500 Subject: [PATCH 1/2] increase max text length --- src/routes/chat/[agentId]/[conversationId]/chat-box.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte b/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte index c45b02d..92e1835 100644 --- a/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte +++ b/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte @@ -77,7 +77,7 @@ const params = $page.params; const messageLimit = 100; const screenWidthThreshold = 1024; - const maxTextLength = 4096; + const maxTextLength = 64000; /** @type {import('$agentTypes').AgentModel} */ export let agent; From 098a4511666026584271a9eba4ad8b391e2a18d9 Mon Sep 17 00:00:00 2001 From: Jicheng Lu <103353@smsassist.com> Date: Fri, 4 Oct 2024 11:25:29 -0500 Subject: [PATCH 2/2] increase text limit --- src/routes/chat/[agentId]/[conversationId]/chat-box.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte b/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte index 92e1835..2d14c30 100644 --- a/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte +++ b/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte @@ -221,6 +221,7 @@ isCreatingNewConv = false; if (conv && !!e.data.text) { dialogs = []; + await signalr.stop(); await signalr.start(conv.id); isLoading = true; openFrame();