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'], },