Skip to content

Commit c5e2e8e

Browse files
committed
do not invoke transformFinishReason multiple times for stream transforms
1 parent 16e75ce commit c5e2e8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/bedrock/chatComplete.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,8 +748,8 @@ export const BedrockChatCompleteStreamChunkTransform: (
748748
content_blocks: [contentBlockObject],
749749
}),
750750
tool_calls: toolCalls.length > 0 ? toolCalls : undefined,
751-
finish_reason: null,
752751
},
752+
finish_reason: null,
753753
},
754754
],
755755
})}\n\n`;

0 commit comments

Comments
 (0)