Skip to content

Commit

Permalink
fix: auto select starter template bugfix (#1148)
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodacus authored Jan 21, 2025
1 parent d62e211 commit f29380e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/components/chat/Chat.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ export const ChatImpl = memo(

runAnimation();

if (!chatStarted && messageInput && autoSelectTemplate) {
if (!chatStarted && _input && autoSelectTemplate) {
setFakeLoading(true);
setMessages([
{
Expand All @@ -296,7 +296,7 @@ export const ChatImpl = memo(
// reload();

const { template, title } = await selectStarterTemplate({
message: messageInput,
message: _input,
model,
provider,
});
Expand All @@ -319,7 +319,7 @@ export const ChatImpl = memo(
{
id: `${new Date().getTime()}`,
role: 'user',
content: messageInput,
content: _input,

// annotations: ['hidden'],
},
Expand Down

0 comments on commit f29380e

Please sign in to comment.