fix: selectedModels

This commit is contained in:
Timothy J. Baek 2024-10-23 14:51:25 -07:00
parent b16c4bc1df
commit 0e56ef20cb

View File

@ -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')}`