Merge pull request #1450 from narengogi/fix/thought-signature-google

fix google throught signature
This commit is contained in:
Visarg Desai
2025-11-24 21:07:11 +05:30
committed by GitHub
2 changed files with 6 additions and 6 deletions
@@ -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 && {
thought_signature: tool_call.function.thought_signature,
}),
},
...(tool_call.function.thought_signature && {
thoughtSignature: tool_call.function.thought_signature,
}),
});
});
} else if (message.role === 'tool') {
+3 -3
View File
@@ -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 && {
thought_signature: tool_call.function.thought_signature,
}),
},
...(tool_call.function.thought_signature && {
thoughtSignature: tool_call.function.thought_signature,
}),
});
});
} else if (message.role === 'tool') {