Skip to content

Commit 8017264

Browse files
committed
fix: add handling for redacted thinking content in bedrock messages stream transformation
1 parent 4e768cd commit 8017264

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/providers/bedrock/messages.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,11 @@ function createContentBlockStartEvent(
533533
thinking: '',
534534
signature: '',
535535
};
536+
} else if (parsedChunk.delta?.reasoningContent?.redactedContent) {
537+
contentBlockStartEvent.content_block = {
538+
type: 'redacted_thinking',
539+
data: parsedChunk.delta.reasoningContent.redactedContent,
540+
};
536541
}
537542

538543
return contentBlockStartEvent;

0 commit comments

Comments
 (0)