Webseite überarbeitet und Telegram Bot funktion hinzugefügt #1
@@ -305,11 +305,13 @@
|
||||
opt.value = opt.textContent = m;
|
||||
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);
|
||||
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) {
|
||||
modelSelect.innerHTML = '<option>Fehler beim Laden</option>';
|
||||
|
||||
Reference in New Issue
Block a user