Sfoglia il codice sorgente

fix: correct condition for Docling OCR engine and language validation

Both must have value or both must be empty.
Athanasios Oikonomou 5 mesi fa
parent
commit
4801430ad2
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/lib/components/admin/Settings/Documents.svelte

+ 1 - 1
src/lib/components/admin/Settings/Documents.svelte

@@ -163,7 +163,7 @@
 		}
 		if (
 			RAGConfig.CONTENT_EXTRACTION_ENGINE === 'docling' &&
-			(RAGConfig.DOCLING_OCR_ENGINE === '' || RAGConfig.DOCLING_OCR_LANG === '')
+			(RAGConfig.DOCLING_OCR_ENGINE !== '' || RAGConfig.DOCLING_OCR_LANG !== '')
 		) {
 			toast.error($i18n.t('Docling OCR Engine and Language(s) required.'));
 			return;