mirror of
https://github.com/open-webui/open-webui
synced 2025-06-23 02:16:52 +00:00
refac
This commit is contained in:
parent
6c54ca552a
commit
9cbe2644b1
@ -1464,10 +1464,6 @@
|
||||
? [atSelectedModel.id]
|
||||
: selectedModels;
|
||||
|
||||
if (selectedModelIds.filter((id) => id !== '').length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Create response messages for each selected model
|
||||
for (const [_modelIdx, modelId] of selectedModelIds.entries()) {
|
||||
const model = $models.filter((m) => m.id === modelId).at(0);
|
||||
|
@ -256,6 +256,10 @@
|
||||
};
|
||||
|
||||
const editMessage = async (messageId, { content, files }, submit = true) => {
|
||||
if ((selectedModels ?? []).filter((id) => id).length === 0) {
|
||||
toast.error($i18n.t('Model not selected'));
|
||||
return;
|
||||
}
|
||||
if (history.messages[messageId].role === 'user') {
|
||||
if (submit) {
|
||||
// New user message
|
||||
|
Loading…
Reference in New Issue
Block a user