This commit is contained in:
Timothy Jaeryang Baek 2025-04-06 20:23:23 -07:00
parent 3885ea4a15
commit 40d019ff50

View File

@ -1744,6 +1744,11 @@
history.currentId = userMessageId;
await tick();
if (autoScroll) {
scrollToBottom();
}
await sendPrompt(history, userPrompt, userMessageId);
};
@ -1754,6 +1759,10 @@
let userMessage = history.messages[message.parentId];
let userPrompt = userMessage.content;
if (autoScroll) {
scrollToBottom();
}
if ((userMessage?.models ?? [...selectedModels]).length == 1) {
// If user message has only one model selected, sendPrompt automatically selects it for regeneration
await sendPrompt(history, userPrompt, userMessage.id);