mirror of
https://git.mirrors.martin98.com/https://github.com/open-webui/open-webui
synced 2025-08-16 09:55:53 +08:00
enh: always process file with external document loader
This commit is contained in:
parent
797c7d4e56
commit
3f2025dc6e
@ -154,14 +154,11 @@ def upload_file(
|
||||
ProcessFileForm(file_id=id, content=result.get("text", "")),
|
||||
user=user,
|
||||
)
|
||||
elif file.content_type not in [
|
||||
"image/png",
|
||||
"image/jpeg",
|
||||
"image/gif",
|
||||
"video/mp4",
|
||||
"video/ogg",
|
||||
"video/quicktime",
|
||||
]:
|
||||
elif (
|
||||
not file.content_type.startswith(("image/", "video/"))
|
||||
or request.app.state.config.CONTENT_EXTRACTION_ENGINE
|
||||
== "external"
|
||||
):
|
||||
process_file(request, ProcessFileForm(file_id=id), user=user)
|
||||
else:
|
||||
log.info(
|
||||
|
Loading…
x
Reference in New Issue
Block a user