[GH-ISSUE #163] claude code接入Gemini Antigravity的时候为什么使用不了 #125

Closed
opened 2026-02-27 07:18:07 +03:00 by kerem · 1 comment
Owner

Originally created by @YangTaiji on GitHub (Jan 4, 2026).
Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/163

描述:网页授权Gemini Antigravity之后,实例也读取成功,显示用量了。然后把Gemini Antigravity的端点路径和api key写到~/.claude/settings.json了,使用不了。这个怎么解决呀
日志:
[02:21:26] [ERROR] [Antigravity API] Error calling generateContent on https://daily-cloudcode-pa.sandbox.googleapis.com: 400 Invalid JSON payload received. Unknown name "exclusiveMinimum" at 'request.tools[0].function_declarations[17].parameters.properties[2].value': Cannot find field. Invalid JSON payload received. Unknown name "exclusiveMinimum" at 'request.tools[0].function_declarations[17].parameters.properties[3].value': Cannot find field. Invalid JSON payload received. Unknown name "exclusiveMinimum" at 'request.tools[0].function_declarations[35].parameters.properties[0].value': Cannot find field. Invalid JSON payload received. Unknown name "exclusiveMinimum" at 'request.tools[0].function_declarations[36].parameters.properties[0].value': Cannot find field.
[02:21:26] [INFO] [Antigravity API] Received 401/400. Refreshing auth and retrying...
[02:21:26] [INFO] [Antigravity Auth] Authentication configured successfully from file.
[02:21:26] [INFO] [Antigravity Auth] Token expiring soon or force refresh requested. Refreshing token...
[02:21:26] [INFO] [Antigravity Auth] Token refreshed and saved to ./configs/antigravity/1767544935919_oauth_creds.json successfully.
[02:21:27] [ERROR] [Antigravity API] Error calling generateContent on https://daily-cloudcode-pa.sandbox.googleapis.com: 400 Invalid JSON payload received. Unknown name "exclusiveMinimum" at 'request.tools[0].function_declarations[17].parameters.properties[2].value': Cannot find field. Invalid JSON payload received. Unknown name "exclusiveMinimum" at 'request.tools[0].function_declarations[17].parameters.properties[3].value': Cannot find field. Invalid JSON payload received. Unknown name "exclusiveMinimum" at 'request.tools[0].function_declarations[35].parameters.properties[0].value': Cannot find field. Invalid JSON payload received. Unknown name "exclusiveMinimum" at 'request.tools[0].function_declarations[36].parameters.properties[0].value': Cannot find field.
[02:21:27] [ERROR] [Server] Error during unary processing: Error: Invalid JSON payload received. Unknown name "exclusiveMinimum" at 'request.tools[0].function_declarations[17].parameters.properties[2].value': Cannot find field. Invalid JSON payload received. Unknown name "exclusiveMinimum" at 'request.tools[0].function_declarations[17].parameters.properties[3].value': Cannot find field. Invalid JSON payload received. Unknown name "exclusiveMinimum" at 'request.tools[0].function_declarations[35].parameters.properties[0].value': Cannot find field. Invalid JSON payload received. Unknown name "exclusiveMinimum" at 'request.tools[0].function_declarations[36].parameters.properties[0].value': Cannot find field. at Gaxios._request (/Users/yangxiangyu/AIClient-2-API/node_modules/gaxios/build/cjs/src/gaxios.js:154:23) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async OAuth2Client.requestAsync (/Users/yangxiangyu/AIClient-2-API/node_modules/google-auth-library/build/src/auth/oauth2client.js:463:20) at async AntigravityApiService.callApi (file:///Users/yangxiangyu/AIClient-2-API/src/gemini/antigravity-core.js:560:25) at async AntigravityApiService.generateContent (file:///Users/yangxiangyu/AIClient-2-API/src/gemini/antigravity-core.js:724:26) at async handleUnaryRequest (file:///Users/yangxiangyu/AIClient-2-API/src/common.js:275:32) at async handleContentGenerationRequest (file:///Users/yangxiangyu/AIClient-2-API/src/common.js:448:9) at async handleAPIRequests (file:///Users/yangxiangyu/AIClient-2-API/src/api-manager.js:52:13) at async Server.requestHandler (file:///Users/yangxiangyu/AIClient-2-API/src/request-handler.js:203:32)

Originally created by @YangTaiji on GitHub (Jan 4, 2026). Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/163 描述:网页授权Gemini Antigravity之后,实例也读取成功,显示用量了。然后把Gemini Antigravity的端点路径和api key写到~/.claude/settings.json了,使用不了。这个怎么解决呀 日志: [02:21:26] [ERROR] [Antigravity API] Error calling generateContent on https://daily-cloudcode-pa.sandbox.googleapis.com: 400 Invalid JSON payload received. Unknown name "exclusiveMinimum" at 'request.tools[0].function_declarations[17].parameters.properties[2].value': Cannot find field. Invalid JSON payload received. Unknown name "exclusiveMinimum" at 'request.tools[0].function_declarations[17].parameters.properties[3].value': Cannot find field. Invalid JSON payload received. Unknown name "exclusiveMinimum" at 'request.tools[0].function_declarations[35].parameters.properties[0].value': Cannot find field. Invalid JSON payload received. Unknown name "exclusiveMinimum" at 'request.tools[0].function_declarations[36].parameters.properties[0].value': Cannot find field. [02:21:26] [INFO] [Antigravity API] Received 401/400. Refreshing auth and retrying... [02:21:26] [INFO] [Antigravity Auth] Authentication configured successfully from file. [02:21:26] [INFO] [Antigravity Auth] Token expiring soon or force refresh requested. Refreshing token... [02:21:26] [INFO] [Antigravity Auth] Token refreshed and saved to ./configs/antigravity/1767544935919_oauth_creds.json successfully. [02:21:27] [ERROR] [Antigravity API] Error calling generateContent on https://daily-cloudcode-pa.sandbox.googleapis.com: 400 Invalid JSON payload received. Unknown name "exclusiveMinimum" at 'request.tools[0].function_declarations[17].parameters.properties[2].value': Cannot find field. Invalid JSON payload received. Unknown name "exclusiveMinimum" at 'request.tools[0].function_declarations[17].parameters.properties[3].value': Cannot find field. Invalid JSON payload received. Unknown name "exclusiveMinimum" at 'request.tools[0].function_declarations[35].parameters.properties[0].value': Cannot find field. Invalid JSON payload received. Unknown name "exclusiveMinimum" at 'request.tools[0].function_declarations[36].parameters.properties[0].value': Cannot find field. [02:21:27] [ERROR] [Server] Error during unary processing: Error: Invalid JSON payload received. Unknown name "exclusiveMinimum" at 'request.tools[0].function_declarations[17].parameters.properties[2].value': Cannot find field. Invalid JSON payload received. Unknown name "exclusiveMinimum" at 'request.tools[0].function_declarations[17].parameters.properties[3].value': Cannot find field. Invalid JSON payload received. Unknown name "exclusiveMinimum" at 'request.tools[0].function_declarations[35].parameters.properties[0].value': Cannot find field. Invalid JSON payload received. Unknown name "exclusiveMinimum" at 'request.tools[0].function_declarations[36].parameters.properties[0].value': Cannot find field. at Gaxios._request (/Users/yangxiangyu/AIClient-2-API/node_modules/gaxios/build/cjs/src/gaxios.js:154:23) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async OAuth2Client.requestAsync (/Users/yangxiangyu/AIClient-2-API/node_modules/google-auth-library/build/src/auth/oauth2client.js:463:20) at async AntigravityApiService.callApi (file:///Users/yangxiangyu/AIClient-2-API/src/gemini/antigravity-core.js:560:25) at async AntigravityApiService.generateContent (file:///Users/yangxiangyu/AIClient-2-API/src/gemini/antigravity-core.js:724:26) at async handleUnaryRequest (file:///Users/yangxiangyu/AIClient-2-API/src/common.js:275:32) at async handleContentGenerationRequest (file:///Users/yangxiangyu/AIClient-2-API/src/common.js:448:9) at async handleAPIRequests (file:///Users/yangxiangyu/AIClient-2-API/src/api-manager.js:52:13) at async Server.requestHandler (file:///Users/yangxiangyu/AIClient-2-API/src/request-handler.js:203:32)
kerem closed this issue 2026-02-27 07:18:07 +03:00
Author
Owner

@justlovemaki commented on GitHub (Jan 6, 2026):

试试新版

<!-- gh-comment-id:3714102790 --> @justlovemaki commented on GitHub (Jan 6, 2026): 试试新版
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/AIClient-2-API-justlovemaki#125
No description provided.