From f29380e14781192f74491883e5cea9b55bccaec4 Mon Sep 17 00:00:00 2001 From: Anirban Kar Date: Wed, 22 Jan 2025 00:30:31 +0530 Subject: [PATCH] fix: auto select starter template bugfix (#1148) --- app/components/chat/Chat.client.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/components/chat/Chat.client.tsx b/app/components/chat/Chat.client.tsx index c56a4ee1..40dbe15d 100644 --- a/app/components/chat/Chat.client.tsx +++ b/app/components/chat/Chat.client.tsx @@ -274,7 +274,7 @@ export const ChatImpl = memo( runAnimation(); - if (!chatStarted && messageInput && autoSelectTemplate) { + if (!chatStarted && _input && autoSelectTemplate) { setFakeLoading(true); setMessages([ { @@ -296,7 +296,7 @@ export const ChatImpl = memo( // reload(); const { template, title } = await selectStarterTemplate({ - message: messageInput, + message: _input, model, provider, }); @@ -319,7 +319,7 @@ export const ChatImpl = memo( { id: `${new Date().getTime()}`, role: 'user', - content: messageInput, + content: _input, // annotations: ['hidden'], },