Add local ML models and document suggestions (#13)

This commit is contained in:
2026-10-19 16:20:34 +02:00
committed by GitHub
parent f21cef5377
commit 0748584b22
23 changed files with 2372 additions and 537 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ const status = document.getElementById('config-status');
const loadConfig = async () => {
try {
const response = await fetch('/api/config');
const response = await fetch('/config');
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
@@ -28,7 +28,7 @@ form.addEventListener('submit', async (event) => {
status.textContent = 'Validating and saving configuration...';
try {
const response = await fetch('/api/config', {
const response = await fetch('/config', {
method: 'PUT',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ content: editor.value }),