- LlmService: Auto-Discovery lokales Ollama + OpenAI-kompatibler Remote-API-Modus - KontierungsvorschlagService: PDF-Textextraktion (pdftotext) + Vision für Bilder - Async-Badge in Beleg-Detailansicht: "Analysiere..." → Formular vorausgefüllt - Einstellung in Settings (default: aus) mit Provider-Status-Anzeige - .env.example: Beispielkonfiguration für beide Provider-Typen (auskommentiert) - Dockerfile: poppler-utils für pdftotext - Migration 011: ki_vorschlag/ki_vorschlag_at in belege, ki_vorschlag_aktiv in settings - Test 11: saveKiVorschlag, JSON-Extraktion, isEnabled-Default
11 lines
453 B
SQL
11 lines
453 B
SQL
-- KI-Kontierungsvorschlag: Spalten in belege
|
|
ALTER TABLE belege
|
|
ADD COLUMN IF NOT EXISTS ki_vorschlag JSON NULL,
|
|
ADD COLUMN IF NOT EXISTS ki_vorschlag_at TIMESTAMP NULL;
|
|
|
|
-- KI-Einstellung in company_settings
|
|
ALTER TABLE company_settings
|
|
ADD COLUMN IF NOT EXISTS ki_vorschlag_aktiv TINYINT(1) NOT NULL DEFAULT 0
|
|
COMMENT '1 = automatischer Kontierungsvorschlag per LLM aktiv';
|
|
|
|
UPDATE company_settings SET ki_vorschlag_aktiv = 0 WHERE id = 1;
|