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 dfb40d2 commit 7657d87Copy full SHA for 7657d87
src/routes/messages/stream-translation.ts
@@ -162,7 +162,7 @@ function handleReasoningOpaqueInToolCalls(
162
events: Array<AnthropicStreamEventData>,
163
delta: Delta,
164
) {
165
- if (state.contentBlockOpen) {
+ if (state.contentBlockOpen && !isToolBlockOpen(state)) {
166
events.push({
167
type: "content_block_stop",
168
index: state.contentBlockIndex,
0 commit comments