mirror of
https://git.mirrors.martin98.com/https://github.com/open-webui/open-webui
synced 2025-08-18 17:55:53 +08:00
fix: update validation logic for Docling OCR engine and language requirements
Both Docling OCR Engine and Language(s) must be provided or both left empty.
This commit is contained in:
parent
4801430ad2
commit
437804a2f8
@ -161,11 +161,10 @@
|
|||||||
toast.error($i18n.t('Docling Server URL required.'));
|
toast.error($i18n.t('Docling Server URL required.'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (
|
if (RAGConfig.CONTENT_EXTRACTION_ENGINE === 'docling' &&
|
||||||
RAGConfig.CONTENT_EXTRACTION_ENGINE === 'docling' &&
|
((RAGConfig.DOCLING_OCR_ENGINE === '' && RAGConfig.DOCLING_OCR_LANG !== '') ||
|
||||||
(RAGConfig.DOCLING_OCR_ENGINE !== '' || RAGConfig.DOCLING_OCR_LANG !== '')
|
(RAGConfig.DOCLING_OCR_ENGINE !== '' && RAGConfig.DOCLING_OCR_LANG === ''))) {
|
||||||
) {
|
toast.error($i18n.t('Both Docling OCR Engine and Language(s) must be provided or both left empty.'));
|
||||||
toast.error($i18n.t('Docling OCR Engine and Language(s) required.'));
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user