This commit is contained in:
Timothy J. Baek 2024-02-23 22:27:28 -08:00
parent ee22e641ff
commit af388dfe62

View file

@ -545,17 +545,6 @@
}
: undefined,
...messages.filter((message) => !message.deleted)
]
.filter((message) => message)
.map((message, idx, arr) => ({
role: message.role,
...(message.files?.filter((file) => file.type === 'image').length > 0 ?? false
? {
role: 'system',
content: $settings.system
}
: undefined,
...messages
]
.filter((message) => message)
.map((message, idx, arr) => ({