mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-05 02:41:34 +00:00
fix: check the external loader headers whenever they are set, so Save reports the error (#30434)
This commit is contained in:
parent
301aa8c5bd
commit
f8e15f92d1
1 changed files with 1 additions and 4 deletions
|
|
@ -169,10 +169,7 @@
|
|||
toast.error($i18n.t('External Document Loader URL required.'));
|
||||
return;
|
||||
}
|
||||
if (
|
||||
RAGConfig.CONTENT_EXTRACTION_ENGINE === 'external' &&
|
||||
RAGConfig.EXTERNAL_DOCUMENT_LOADER_HEADERS
|
||||
) {
|
||||
if (RAGConfig.EXTERNAL_DOCUMENT_LOADER_HEADERS) {
|
||||
try {
|
||||
const headers = JSON.parse(RAGConfig.EXTERNAL_DOCUMENT_LOADER_HEADERS);
|
||||
if (headers === null || typeof headers !== 'object' || Array.isArray(headers)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue