Skip to content

Commit d5f9469

Browse files
test(provider): type Bedrock reasoning replay fixtures
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent e7cd0ff commit d5f9469

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/opencode/test/provider/transform.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2341,7 +2341,7 @@ describe("ProviderTransform.message - anthropic empty content filtering", () =>
23412341
})
23422342

23432343
test("keeps text and tool calls next to unsigned reasoning", () => {
2344-
const content = [
2344+
const content: ModelMessage["content"] = [
23452345
{ type: "text", text: "Answer" },
23462346
{ type: "tool-call", toolCallId: "call_1", toolName: "lookup", input: {} },
23472347
]
@@ -2355,7 +2355,7 @@ describe("ProviderTransform.message - anthropic empty content filtering", () =>
23552355
})
23562356

23572357
test("does not remove unsigned reasoning for other providers", () => {
2358-
const content = [{ type: "reasoning", text: "Partial thought" }]
2358+
const content: ModelMessage["content"] = [{ type: "reasoning", text: "Partial thought" }]
23592359
const result = ProviderTransform.message(
23602360
[{ role: "assistant", content }] as ModelMessage[],
23612361
anthropicModel as any,

0 commit comments

Comments
 (0)