From aaf8290b21ce6a449cab14ba109d03a81f6b1958 Mon Sep 17 00:00:00 2001 From: Narendranath Gogineni Date: Mon, 24 Nov 2025 00:16:15 +0530 Subject: [PATCH 1/2] fix google throught signature --- src/providers/google-vertex-ai/chatComplete.ts | 2 +- src/providers/google/chatComplete.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/providers/google-vertex-ai/chatComplete.ts b/src/providers/google-vertex-ai/chatComplete.ts index f20440d2..cb3542e8 100644 --- a/src/providers/google-vertex-ai/chatComplete.ts +++ b/src/providers/google-vertex-ai/chatComplete.ts @@ -92,7 +92,7 @@ export const VertexGoogleChatCompleteConfig: ProviderConfig = { name: tool_call.function.name, args: JSON.parse(tool_call.function.arguments), ...(tool_call.function.thought_signature && { - thought_signature: tool_call.function.thought_signature, + thoughtSignature: tool_call.function.thought_signature, }), }, }); diff --git a/src/providers/google/chatComplete.ts b/src/providers/google/chatComplete.ts index 1ac3f7d5..b0196493 100644 --- a/src/providers/google/chatComplete.ts +++ b/src/providers/google/chatComplete.ts @@ -220,7 +220,7 @@ export const GoogleChatCompleteConfig: ProviderConfig = { name: tool_call.function.name, args: JSON.parse(tool_call.function.arguments), ...(tool_call.function.thought_signature && { - thought_signature: tool_call.function.thought_signature, + thoughtSignature: tool_call.function.thought_signature, }), }, }); From ed4cb9f432385e5016229d3381d49f7aa680d4b0 Mon Sep 17 00:00:00 2001 From: Narendranath Gogineni Date: Mon, 24 Nov 2025 00:24:24 +0530 Subject: [PATCH 2/2] move thoughtSignature outside functionCall definition --- src/providers/google-vertex-ai/chatComplete.ts | 6 +++--- src/providers/google/chatComplete.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/providers/google-vertex-ai/chatComplete.ts b/src/providers/google-vertex-ai/chatComplete.ts index cb3542e8..b2d8fc64 100644 --- a/src/providers/google-vertex-ai/chatComplete.ts +++ b/src/providers/google-vertex-ai/chatComplete.ts @@ -91,10 +91,10 @@ export const VertexGoogleChatCompleteConfig: ProviderConfig = { functionCall: { name: tool_call.function.name, args: JSON.parse(tool_call.function.arguments), - ...(tool_call.function.thought_signature && { - thoughtSignature: tool_call.function.thought_signature, - }), }, + ...(tool_call.function.thought_signature && { + thoughtSignature: tool_call.function.thought_signature, + }), }); }); } else if (message.role === 'tool') { diff --git a/src/providers/google/chatComplete.ts b/src/providers/google/chatComplete.ts index b0196493..239d363b 100644 --- a/src/providers/google/chatComplete.ts +++ b/src/providers/google/chatComplete.ts @@ -219,10 +219,10 @@ export const GoogleChatCompleteConfig: ProviderConfig = { functionCall: { name: tool_call.function.name, args: JSON.parse(tool_call.function.arguments), - ...(tool_call.function.thought_signature && { - thoughtSignature: tool_call.function.thought_signature, - }), }, + ...(tool_call.function.thought_signature && { + thoughtSignature: tool_call.function.thought_signature, + }), }); }); } else if (message.role === 'tool') {