mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-26 18:26:38 +00:00
fix: auto select starter template bugfix (#1148)
This commit is contained in:
parent
d62e211d09
commit
f29380e147
@ -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'],
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user