mirror of
https://git.mirrors.martin98.com/https://github.com/open-webui/open-webui
synced 2025-08-19 22:09:07 +08:00
refac
This commit is contained in:
parent
c8f1bdf928
commit
6636207e0c
@ -154,10 +154,8 @@ def upload_file(
|
|||||||
ProcessFileForm(file_id=id, content=result.get("text", "")),
|
ProcessFileForm(file_id=id, content=result.get("text", "")),
|
||||||
user=user,
|
user=user,
|
||||||
)
|
)
|
||||||
elif (
|
elif (not file.content_type.startswith(("image/", "video/"))) or (
|
||||||
not file.content_type.startswith(("image/", "video/"))
|
request.app.state.config.CONTENT_EXTRACTION_ENGINE == "external"
|
||||||
or request.app.state.config.CONTENT_EXTRACTION_ENGINE
|
|
||||||
== "external"
|
|
||||||
):
|
):
|
||||||
process_file(request, ProcessFileForm(file_id=id), user=user)
|
process_file(request, ProcessFileForm(file_id=id), user=user)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user