mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-24 22:37:38 -05:00
fix: a new chat starts with one model when the Multiple Models permission is off (#32668)
This commit is contained in:
1 file changed
+4
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user