fix: auto select starter template bugfix (#1148)

This commit is contained in:
Anirban Kar 2025-01-22 00:30:31 +05:30 committed by GitHub
parent d62e211d09
commit f29380e147
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -274,7 +274,7 @@ export const ChatImpl = memo(
runAnimation(); runAnimation();
if (!chatStarted && messageInput && autoSelectTemplate) { if (!chatStarted && _input && autoSelectTemplate) {
setFakeLoading(true); setFakeLoading(true);
setMessages([ setMessages([
{ {
@ -296,7 +296,7 @@ export const ChatImpl = memo(
// reload(); // reload();
const { template, title } = await selectStarterTemplate({ const { template, title } = await selectStarterTemplate({
message: messageInput, message: _input,
model, model,
provider, provider,
}); });
@ -319,7 +319,7 @@ export const ChatImpl = memo(
{ {
id: `${new Date().getTime()}`, id: `${new Date().getTime()}`,
role: 'user', role: 'user',
content: messageInput, content: _input,
// annotations: ['hidden'], // annotations: ['hidden'],
}, },