Webseite überarbeitet und Telegram Bot funktion hinzugefügt #1
@@ -100,7 +100,8 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
border-left: 1px solid #475569;
|
border-left: 1px solid #475569;
|
||||||
padding-left: 20px;
|
padding-left: 12px;
|
||||||
|
min-width: 300px; /* Macht das Feld deutlich breiter */
|
||||||
}
|
}
|
||||||
|
|
||||||
.toolbar-controls select,
|
.toolbar-controls select,
|
||||||
@@ -341,7 +342,7 @@
|
|||||||
const provider = document.getElementById('ai-provider').value;
|
const provider = document.getElementById('ai-provider').value;
|
||||||
const modelSelect = document.getElementById('ai-model');
|
const modelSelect = document.getElementById('ai-model');
|
||||||
const urlContainer = document.getElementById('ollama-url-container');
|
const urlContainer = document.getElementById('ollama-url-container');
|
||||||
let ollamaUrl = document.getElementById('ollama-url').value;
|
const ollamaUrl = document.getElementById('ollama-url').value;
|
||||||
|
|
||||||
urlContainer.style.display = (provider === "ollama") ? "flex" : "none";
|
urlContainer.style.display = (provider === "ollama") ? "flex" : "none";
|
||||||
modelSelect.innerHTML = '<option>Lade...</option>';
|
modelSelect.innerHTML = '<option>Lade...</option>';
|
||||||
@@ -357,10 +358,11 @@
|
|||||||
opt.value = opt.textContent = m;
|
opt.value = opt.textContent = m;
|
||||||
modelSelect.appendChild(opt);
|
modelSelect.appendChild(opt);
|
||||||
});
|
});
|
||||||
|
|
||||||
const savedModel = currentSettings[`${provider}_model`];
|
const savedModel = currentSettings[`${provider}_model`];
|
||||||
if (isInitialLoad && savedModel) modelSelect.value = savedModel;
|
if (isInitialLoad && savedModel) modelSelect.value = savedModel;
|
||||||
}
|
}
|
||||||
} catch (e) { modelSelect.innerHTML = '<option>Fehler</option>'; }
|
} catch (e) { modelSelect.innerHTML = '<option>Fehler beim Laden</option>'; }
|
||||||
}
|
}
|
||||||
|
|
||||||
async function saveSettings() {
|
async function saveSettings() {
|
||||||
|
|||||||
Reference in New Issue
Block a user