mirror of
https://github.com/pionxzh/chatgpt-exporter.git
synced 2026-07-23 09:00:51 -05:00
fix: preserve multimodal tool image exports
This commit is contained in:
@@ -707,14 +707,13 @@ export function shouldSkipMessageInExport(message?: ConversationNodeMessage): bo
|
||||
const hasExecutionImages = message.content.content_type === 'execution_output'
|
||||
&& !!message.metadata?.aggregate_result?.messages?.some(msg => msg.message_type === 'image')
|
||||
|
||||
const hasDalleImage = message.content.content_type === 'multimodal_text'
|
||||
const hasMultimodalImage = message.content.content_type === 'multimodal_text'
|
||||
&& message.content.parts.some((part) => {
|
||||
return typeof part !== 'string'
|
||||
&& part.content_type === 'image_asset_pointer'
|
||||
&& !!part.metadata?.dalle
|
||||
})
|
||||
|
||||
if (!hasExecutionImages && !hasDalleImage) {
|
||||
if (!hasExecutionImages && !hasMultimodalImage) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user