This commit is contained in:
Timothy Jaeryang Baek committed 2026-08-24 20:34:59 -04:00
1 parent f3f7659da7
commit 2a0274a0a0
3 files changed
+51 -3

No files matched your search

+1
View File
@@ -153,6 +153,7 @@ def build_loader_from_config(request, config: dict):
from open_webui.retrieval.loaders.main import Loader
loader_config = {key: config.get(key) for key in LOADER_CONFIG_KEYS if key.isupper()}
loader_config['FILE_MAX_SIZE'] = config.get('file_max_size')
return Loader(
engine=loader_config['CONTENT_EXTRACTION_ENGINE'],
**{key: value for key, value in loader_config.items() if key != 'CONTENT_EXTRACTION_ENGINE'},