mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-03 10:49:21 -05:00
refac
This commit is contained in:
@@ -726,6 +726,8 @@ def get_images_from_messages(message_list):
|
||||
for file in message.get("files", []):
|
||||
if file.get("type") == "image":
|
||||
message_images.append(file.get("url"))
|
||||
elif file.get("content_type", "").startswith("image/"):
|
||||
message_images.append(file.get("url"))
|
||||
|
||||
if message_images:
|
||||
images.append(message_images)
|
||||
|
||||
Reference in New Issue
Block a user