mirror of
https://github.com/open-webui/open-webui
synced 2024-11-06 08:56:39 +00:00
fix
This commit is contained in:
parent
b31d314638
commit
04b324996c
@ -475,10 +475,12 @@
|
||||
selectedModels = $config?.default_models.split(',');
|
||||
}
|
||||
|
||||
if ($models.length > 0) {
|
||||
selectedModels = [$models[0].id];
|
||||
} else {
|
||||
selectedModels = [''];
|
||||
if (selectedModels.length === 0) {
|
||||
if ($models.length > 0) {
|
||||
selectedModels = [$models[0].id];
|
||||
} else {
|
||||
selectedModels = [''];
|
||||
}
|
||||
}
|
||||
|
||||
if ($page.url.searchParams.get('youtube')) {
|
||||
|
Loading…
Reference in New Issue
Block a user