mirror of
https://github.com/open-webui/open-webui
synced 2024-11-06 08:56:39 +00:00
fix: selectedModels
This commit is contained in:
parent
b16c4bc1df
commit
0e56ef20cb
@ -475,14 +475,14 @@
|
||||
selectedModels = $config?.default_models.split(',');
|
||||
}
|
||||
|
||||
if (selectedModels.length === 0) {
|
||||
if (selectedModels.length === 1 && selectedModels[0] === '') {
|
||||
if ($models.length > 0) {
|
||||
selectedModels = [$models[0].id];
|
||||
} else {
|
||||
selectedModels = [''];
|
||||
}
|
||||
}
|
||||
|
||||
console.log(selectedModels);
|
||||
|
||||
if ($page.url.searchParams.get('youtube')) {
|
||||
uploadYoutubeTranscription(
|
||||
`https://www.youtube.com/watch?v=${$page.url.searchParams.get('youtube')}`
|
||||
|
Loading…
Reference in New Issue
Block a user