This commit is contained in:
Timothy Jaeryang Baek
2025-06-16 16:59:47 +04:00
parent 6c54ca552a
commit 9cbe2644b1
2 changed files with 4 additions and 4 deletions
+4
View File
@@ -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