Skip to content

Commit 3635f5f

Browse files
BlueSkyXNCopilot
andcommitted
fix: add missing thinkingBlockOpen to AnthropicStreamState in tests
The AnthropicStreamState type requires thinkingBlockOpen but the test objects at lines 250 and 350 were missing it, causing TS2741 errors. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 86b30d6 commit 3635f5f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/anthropic-response.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ describe("OpenAI to Anthropic Streaming Response Translation", () => {
251251
messageStartSent: false,
252252
contentBlockIndex: 0,
253253
contentBlockOpen: false,
254+
thinkingBlockOpen: false,
254255
toolCalls: {},
255256
}
256257
const translatedStream = openAIStream.flatMap((chunk) =>
@@ -351,6 +352,7 @@ describe("OpenAI to Anthropic Streaming Response Translation", () => {
351352
messageStartSent: false,
352353
contentBlockIndex: 0,
353354
contentBlockOpen: false,
355+
thinkingBlockOpen: false,
354356
toolCalls: {},
355357
}
356358
const translatedStream = openAIStream.flatMap((chunk) =>

0 commit comments

Comments
 (0)