This commit is contained in:
Timothy Jaeryang Baek
2025-12-21 23:22:14 +04:00
parent f1bf4f20c5
commit bd7f1869ce
+2 -2
View File
@@ -1604,7 +1604,7 @@
..._files.filter( ..._files.filter(
(item) => (item) =>
['doc', 'text', 'note', 'chat', 'folder', 'collection'].includes(item.type) || ['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( chatFiles = chatFiles.filter(
@@ -1831,7 +1831,7 @@
...(userMessage?.files ?? []).filter( ...(userMessage?.files ?? []).filter(
(item) => (item) =>
['doc', 'text', 'note', 'chat', 'collection'].includes(item.type) || ['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 // Remove duplicates