fix: a new chat starts with one model when the Multiple Models permission is off (#32668)

This commit is contained in:
G30 authored and GitHub committed 2026-10-21 02:44:35 +09:00
1 parent fc2ef33f16
commit 5d75c1905b
1 file changed
+4
+4
View File
@@ -2738,6 +2738,10 @@
}
}
if (!($user?.role === 'admin' || ($user?.permissions?.chat?.multiple_models ?? true))) {
selectedModels = selectedModels.length > 0 ? [selectedModels[0]] : [''];
}
if ($mobile) {
await showControls.set(false);
}