diff --git a/src/exporter/html.ts b/src/exporter/html.ts index 8e2a433..9d738a8 100644 --- a/src/exporter/html.ts +++ b/src/exporter/html.ts @@ -84,10 +84,10 @@ function conversationToHtml(conversation: ConversationResult, avatar: string, me // Skip tool's intermediate message. if (message.author.role === 'tool') { if ( - // HACK: we special case the content_type 'multimodal_text' here because it is used by - // the dalle tool to return the image result, and we do want to show that. + // HACK: we special case the content_type 'multimodal_text' here because it is used by + // the dalle tool to return the image result, and we do want to show that. message.content.content_type !== 'multimodal_text' - // Code execution result with image + // Code execution result with image && !( message.content.content_type === 'execution_output' && message.metadata?.aggregate_result?.messages?.some(msg => msg.message_type === 'image') diff --git a/src/exporter/markdown.ts b/src/exporter/markdown.ts index 253c179..71cd174 100644 --- a/src/exporter/markdown.ts +++ b/src/exporter/markdown.ts @@ -100,10 +100,10 @@ function conversationToMarkdown(conversation: ConversationResult, metaList?: Exp // Skip tool's intermediate message. if (message.author.role === 'tool') { if ( - // HACK: we special case the content_type 'multimodal_text' here because it is used by - // the dalle tool to return the image result, and we do want to show that. + // HACK: we special case the content_type 'multimodal_text' here because it is used by + // the dalle tool to return the image result, and we do want to show that. message.content.content_type !== 'multimodal_text' - // Code execution result with image + // Code execution result with image && !( message.content.content_type === 'execution_output' && message.metadata?.aggregate_result?.messages?.some(msg => msg.message_type === 'image')