Skip to content

Commit 050db7d

Browse files
authored
Merge pull request #1450 from narengogi/fix/thought-signature-google
fix google throught signature
2 parents 6562c3e + ed4cb9f commit 050db7d

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/providers/google-vertex-ai/chatComplete.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ export const VertexGoogleChatCompleteConfig: ProviderConfig = {
9191
functionCall: {
9292
name: tool_call.function.name,
9393
args: JSON.parse(tool_call.function.arguments),
94-
...(tool_call.function.thought_signature && {
95-
thought_signature: tool_call.function.thought_signature,
96-
}),
9794
},
95+
...(tool_call.function.thought_signature && {
96+
thoughtSignature: tool_call.function.thought_signature,
97+
}),
9898
});
9999
});
100100
} else if (message.role === 'tool') {

src/providers/google/chatComplete.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,10 @@ export const GoogleChatCompleteConfig: ProviderConfig = {
219219
functionCall: {
220220
name: tool_call.function.name,
221221
args: JSON.parse(tool_call.function.arguments),
222-
...(tool_call.function.thought_signature && {
223-
thought_signature: tool_call.function.thought_signature,
224-
}),
225222
},
223+
...(tool_call.function.thought_signature && {
224+
thoughtSignature: tool_call.function.thought_signature,
225+
}),
226226
});
227227
});
228228
} else if (message.role === 'tool') {

0 commit comments

Comments
 (0)