mirror of
https://gh-proxy.org/https://github.com/klinsmaya/gateway.git
synced 2026-11-08 00:57:59 +08:00
Merge pull request #1450 from narengogi/fix/thought-signature-google
fix google throught signature
This commit is contained in:
@@ -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') {
|
||||
|
||||
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user