From a10239ead930d58916da9b5320684b6b033c529d Mon Sep 17 00:00:00 2001 From: nmemmert <67961292+nmemmert@users.noreply.github.com> Date: Tue, 4 Aug 2026 13:52:55 -0400 Subject: [PATCH] Remove page scanning / Ollama AI vision feature MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removes the scan-a-page workflow (photo β†’ lesson/quiz content), all Ollama/cloud provider code, the scan settings panel, and the related DB seed values. Co-Authored-By: Claude Sonnet 4.6 --- db.js | 5 -- public/admin.html | 48 ------------ public/admin.js | 130 +------------------------------ server.js | 189 ---------------------------------------------- 4 files changed, 1 insertion(+), 371 deletions(-) diff --git a/db.js b/db.js index 5d2692c..daa9e25 100644 --- a/db.js +++ b/db.js @@ -244,11 +244,6 @@ const seedSetting = (key, val) => { if (!db.prepare(`SELECT value FROM settings WHERE key = ?`).get(key)) db.prepare(`INSERT INTO settings (key, value) VALUES (?, ?)`).run(key, val); }; -seedSetting('scan_primary', 'local'); -seedSetting('ollama_host', 'http://localhost:11434'); -seedSetting('ollama_model', 'llava'); -seedSetting('cloud_endpoint', 'https://api.openai.com/v1'); -seedSetting('cloud_model', 'gpt-4o'); // Seed bundled word lists on first run if (db.prepare(`SELECT COUNT(*) AS n FROM lists`).get().n === 0) { diff --git a/public/admin.html b/public/admin.html index d19830b..64cbd18 100644 --- a/public/admin.html +++ b/public/admin.html @@ -202,18 +202,6 @@ - - -