This commit is contained in:
Timothy J. Baek 2024-05-21 17:47:53 -07:00
parent cc47e63526
commit 0cc4366f70

View File

@ -687,6 +687,7 @@
...messages
]
.filter((message) => message)
.filter((message) => message.content != '')
.map((message, idx, arr) => ({
role: message.role,
...((message.files?.filter((file) => file.type === 'image').length > 0 ?? false) &&