Webseite überarbeitet und Telegram Bot funktion hinzugefügt #1

Merged
pi-farm merged 59 commits from dev into main 2026-03-07 23:50:03 +00:00
Showing only changes of commit c6f88253ba - Show all commits

View File

@@ -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>';