mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-28 06:22:33 +00:00
fix: a new chat starts with one model when the Multiple Models permission is off (#32668)
This commit is contained in:
parent
fc2ef33f16
commit
5d75c1905b
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue