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

This commit is contained in:
G30 2026-10-20 13:44:35 -04:00 • committed by GitHub
parent fc2ef33f16
commit 5d75c1905b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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);
}