Skip to content

Commit a2467d3

Browse files
committed
feat: add signature field to AnthropicThinkingBlock
1 parent 29668ce commit a2467d3

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/routes/messages/anthropic-types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export interface AnthropicToolUseBlock {
5656
export interface AnthropicThinkingBlock {
5757
type: "thinking"
5858
thinking: string
59+
signature: string
5960
}
6061

6162
export type AnthropicUserContentBlock =

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
{

0 commit comments

Comments
 (0)