Skip to content

Commit 93641d6

Browse files
fix: 在 functionResponse 中添加 tool_call_id
Co-authored-by: aider (vertex_ai/gemini-2.5-pro) <aider@aider.chat>
1 parent 9fe2475 commit 93641d6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/mcp-server/src/gemini-client.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ export class GeminiApiClient {
8282
parts: [
8383
{
8484
functionResponse: {
85+
id: msg.tool_call_id,
8586
name: functionName,
8687
response: {
8788
// Gemini 期望 response 是一个对象,我们把工具的输出放在这里

0 commit comments

Comments
 (0)