Skip to content

Commit 9477b45

Browse files
committed
feat: add signature to thinking messages and enhance reasoning structure in translation tests
1 parent 505f648 commit 9477b45

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

tests/anthropic-request.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ describe("Anthropic to OpenAI translation logic", () => {
136136
{
137137
type: "thinking",
138138
thinking: "Let me think about this simple math problem...",
139+
signature: "abc123",
139140
},
140141
{ type: "text", text: "2+2 equals 4." },
141142
],
@@ -168,6 +169,7 @@ describe("Anthropic to OpenAI translation logic", () => {
168169
type: "thinking",
169170
thinking:
170171
"I need to call the weather API to get current weather information.",
172+
signature: "def456",
171173
},
172174
{ type: "text", text: "I'll check the weather for you." },
173175
{

tests/translation.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ describe("translateResponsesResultToAnthropic", () => {
8181
{
8282
id: "reason_1",
8383
type: "reasoning",
84-
reasoning: [{ type: "text", text: "Thinking about the task." }],
84+
summary: [{ type: "text", text: "Thinking about the task." }],
85+
status: "completed",
86+
encrypted_content: "encrypted_reasoning_content",
8587
},
8688
{
8789
id: "call_1",

0 commit comments

Comments
 (0)