mirror of
https://github.com/open-webui/open-webui
synced 2025-04-25 08:48:21 +00:00
refac
This commit is contained in:
parent
3885ea4a15
commit
40d019ff50
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user