We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a8f01f commit 6f4f8cfCopy full SHA for 6f4f8cf
apps/sim/executor/execution/block-executor.ts
@@ -565,7 +565,15 @@ export class BlockExecutor {
565
if (responseFormat) {
566
try {
567
const parsed = JSON.parse(fullContent.trim())
568
- Object.assign(executionOutput, parsed)
+
569
+ streamingExec.execution.output = {
570
+ ...parsed,
571
+ tokens: executionOutput.tokens,
572
+ toolCalls: executionOutput.toolCalls,
573
+ providerTiming: executionOutput.providerTiming,
574
+ cost: executionOutput.cost,
575
+ model: executionOutput.model,
576
+ }
577
return
578
} catch (error) {
579
logger.warn('Failed to parse streamed content for response format', { blockId, error })
0 commit comments