mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
minor bug fix for external document loader not working
This commit is contained in:
parent
ed0659aca6
commit
f408b08965
@ -226,7 +226,7 @@ class Loader:
|
||||
api_key=self.kwargs.get("EXTERNAL_DOCUMENT_LOADER_API_KEY"),
|
||||
mime_type=file_content_type,
|
||||
)
|
||||
if self.engine == "tika" and self.kwargs.get("TIKA_SERVER_URL"):
|
||||
elif self.engine == "tika" and self.kwargs.get("TIKA_SERVER_URL"):
|
||||
if self._is_text_file(file_ext, file_content_type):
|
||||
loader = TextLoader(file_path, autodetect_encoding=True)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user