fix/refac: images
This commit is contained in:
1 parent
927a765641
commit
1148d1c927
6 files changed
+10
-8
No files matched your search
@@ -1734,7 +1734,7 @@
|
||||
// Skip this check if image generation is enabled, as images may be for editing or are generated outputs in the history
|
||||
const hasImages = createMessagesList(_history, parentId).some((message) =>
|
||||
message.files?.some(
|
||||
(file) => file.type === 'image' || file?.content_type?.startsWith('image/')
|
||||
(file) => file.type === 'image' || (file?.content_type ?? '').startsWith('image/')
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user