chore: fix indent

This commit is contained in:
Pionxzh
2024-04-06 01:30:22 +08:00
parent 6e8fb5c79e
commit 84b2d9f3c1
2 changed files with 6 additions and 6 deletions

View File

@@ -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')

View File

@@ -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')