Skip to content

Commit 70ed19f

Browse files
fix(chat): remove special handling for non-streaming (#2808)
1 parent d6e4c91 commit 70ed19f

File tree

1 file changed

+0
-29
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/chat

1 file changed

+0
-29
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/chat/chat.tsx

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -531,35 +531,6 @@ export function Chat() {
531531
return
532532
}
533533

534-
if (
535-
selectedOutputs.length > 0 &&
536-
'logs' in result &&
537-
Array.isArray(result.logs) &&
538-
activeWorkflowId
539-
) {
540-
const additionalOutputs: string[] = []
541-
542-
for (const outputId of selectedOutputs) {
543-
const blockId = extractBlockIdFromOutputId(outputId)
544-
const path = extractPathFromOutputId(outputId, blockId)
545-
546-
if (path === 'content') continue
547-
548-
const outputValue = extractOutputFromLogs(result.logs as BlockLog[], outputId)
549-
if (outputValue !== undefined) {
550-
const formattedValue =
551-
typeof outputValue === 'string' ? outputValue : JSON.stringify(outputValue)
552-
if (formattedValue) {
553-
additionalOutputs.push(`**${path}:** ${formattedValue}`)
554-
}
555-
}
556-
}
557-
558-
if (additionalOutputs.length > 0) {
559-
appendMessageContent(responseMessageId, `\n\n${additionalOutputs.join('\n\n')}`)
560-
}
561-
}
562-
563534
finalizeMessageStream(responseMessageId)
564535
} else if (contentChunk) {
565536
accumulatedContent += contentChunk

0 commit comments

Comments
 (0)