mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
Merge pull request #11526 from rragundez/exlude-images-from-embeddings
Exlude images from embeddings
This commit is contained in:
commit
8905d9e63b
@ -81,7 +81,7 @@ def upload_file(
|
|||||||
ProcessFileForm(file_id=id, content=result.get("text", "")),
|
ProcessFileForm(file_id=id, content=result.get("text", "")),
|
||||||
user=user,
|
user=user,
|
||||||
)
|
)
|
||||||
else:
|
elif file.content_type not in ["image/png", "image/jpeg", "image/gif"]:
|
||||||
process_file(request, ProcessFileForm(file_id=id), user=user)
|
process_file(request, ProcessFileForm(file_id=id), user=user)
|
||||||
|
|
||||||
file_item = Files.get_file_by_id(id=id)
|
file_item = Files.get_file_by_id(id=id)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user