Webseite überarbeitet und Telegram Bot funktion hinzugefügt #1
@@ -305,11 +305,13 @@
|
|||||||
opt.value = opt.textContent = m;
|
opt.value = opt.textContent = m;
|
||||||
modelSelect.appendChild(opt);
|
modelSelect.appendChild(opt);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Korrektur: In deiner main.py ist ein Tippfehler bei "mvidia_model" (mit m)
|
|
||||||
// Prüfe das in deiner settings API oder korrigiere es hier:
|
|
||||||
const savedModel = currentSettings[`${provider}_model`] || (provider === 'nvidia' ? currentSettings['nvidia_model'] : null);
|
const savedModel = currentSettings[`${provider}_model`] || (provider === 'nvidia' ? currentSettings['nvidia_model'] : null);
|
||||||
if (isInitialLoad && savedModel) modelSelect.value = savedModel;
|
if (isInitialLoad && savedModel) modelSelect.value = savedModel;
|
||||||
|
// Sicherer Zugriff auf die Einstellungen
|
||||||
|
if (isInitialLoad && currentSettings) {
|
||||||
|
const savedModel = currentSettings[`${provider}_model`];
|
||||||
|
if (savedModel) modelSelect.value = savedModel;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
modelSelect.innerHTML = '<option>Fehler beim Laden</option>';
|
modelSelect.innerHTML = '<option>Fehler beim Laden</option>';
|
||||||
|
|||||||
Reference in New Issue
Block a user