mirror of
https://github.com/open-webui/open-webui.git
synced 2026-01-03 23:25:21 +00:00
refac
This commit is contained in:
parent
f1bf4f20c5
commit
bd7f1869ce
1 changed files with 2 additions and 2 deletions
|
|
@ -1604,7 +1604,7 @@
|
|||
..._files.filter(
|
||||
(item) =>
|
||||
['doc', 'text', 'note', 'chat', 'folder', 'collection'].includes(item.type) ||
|
||||
(item.type === 'file' && !item?.content_type?.startsWith('image/'))
|
||||
(item.type === 'file' && !(item?.content_type ?? '').startsWith('image/'))
|
||||
)
|
||||
);
|
||||
chatFiles = chatFiles.filter(
|
||||
|
|
@ -1831,7 +1831,7 @@
|
|||
...(userMessage?.files ?? []).filter(
|
||||
(item) =>
|
||||
['doc', 'text', 'note', 'chat', 'collection'].includes(item.type) ||
|
||||
(item.type === 'file' && !item?.content_type.startsWith('image/'))
|
||||
(item.type === 'file' && !(item?.content_type ?? '').startsWith('image/'))
|
||||
)
|
||||
);
|
||||
// Remove duplicates
|
||||
|
|
|
|||
Loading…
Reference in a new issue