mirror of
https://github.com/justlovemaki/AIClient-2-API.git
synced 2026-04-25 17:35:58 +03:00
[GH-ISSUE #117] Issue with opencode #95
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/AIClient-2-API-justlovemaki#95
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mfsforme3-commits on GitHub (Dec 19, 2025).
Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/117
AI_TypeValidationError: Type validation failed: Value: {"id":"chatcmpl-fc21c9d5-fc98-424f-8439-ad9763580e89","object":"chat.completion.chunk","created":1766144769,"model":"gemini-3-pro-preview","choices":[{"index":0,"delta":{"tool_calls":[{"id":"toolu_vrtx_01Pxt4zTjM1WsyJ6AB38VshV","type":"function","function":{"name":"read","arguments":"{"filePath":"/root/IMP/kirameki/README.md"}"}}]},"finish_reason":null}],"usage":{"prompt_tokens":13921,"completion_tokens":2,"total_tokens":13923,"cached_tokens":13593,"prompt_tokens_details":{"cached_tokens":13593},"completion_tokens_details":{"reasoning_tokens":0}}}.
Error message: [{"code":"invalid_union","errors":{"expected":"number","code":"invalid_type","path":["choices",0,"delta","tool_calls",0,"index"],"message":"Invalid input: expected number, received undefined"}],[{"expected":"object","code":"invalid_type","path":["error"],"message":"Invalid input: expected object, received undefined"},"path":[],"message":"Invalid input"}]
@mfsforme3-commits commented on GitHub (Dec 19, 2025):
Also Opus models (through antigravity) not providing responses in claude code
@justlovemaki commented on GitHub (Dec 19, 2025):
gemini is not very compatible with oc and cc, and you need to make sure you have permission to use gemini3.
@mfsforme3-commits commented on GitHub (Dec 19, 2025):
Well I do have the permission to use and even claude models not working with claude code
@justlovemaki commented on GitHub (Dec 20, 2025):
cc can use in version 2.0.70
@justlovemaki commented on GitHub (Dec 20, 2025):
try this config:
"env": {
"ANTHROPIC_AUTH_TOKEN": "xxxxxx",
"ANTHROPIC_BASE_URL": "http://xxxxxx/claude-kiro-oauth",
"ANTHROPIC_MODEL": "claude-sonnet-4-5",
"ANTHROPIC_SMALL_FAST_MODEL": "claude-haiku-4-5",
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1",
"DISABLE_ERROR_REPORTING": "1",
"DISABLE_TELEMETRY": "1",
"MCP_TIMEOUT": "60000"
},
@mfsforme3-commits commented on GitHub (Dec 25, 2025):
12/25/2025, 8:50:37 AM
[Server] Received request: POST http://localhost:3000/gemini-antigravity/v1/messages?beta=true
[Config] MODEL_PROVIDER overridden by path segment to: gemini-antigravity
[ProviderPoolManager] No available and healthy providers for type: gemini-antigravity
[API Service] No healthy provider found in pool for gemini-antigravity. Falling back to main config.
[Adapter] getServiceAdapter, provider: gemini-antigravity, uuid: undefined
[Content Generation] Model: gemini-claude-opus-4-5-thinking, Stream: false
[ProviderPoolManager] No fallback types configured for gemini-antigravity
[ProviderPoolManager] No available providers for type: gemini-antigravity that support model: gemini-claude-opus-4-5-thinking
[ProviderPoolManager] No available providers for type: gemini-antigravity that support model: gemini-claude-opus-4-5-thinking
[ProviderPoolManager] None available provider found for gemini-antigravity or any of its fallback types: none configured
[Adapter] getServiceAdapter, provider: gemini-antigravity, uuid: undefined
[Content Generation] Re-selected service adapter based on model: gemini-claude-opus-4-5-thinking
[Request Convert] Converting request from claude to gemini-antigravity
[System Prompt Manager] System prompt updated in file for provider 'gemini'.
[Antigravity Auth Token] Time until expiry: 00h 59m 58s
[Antigravity API] Error calling generateContent on https://daily-cloudcode-pa.sandbox.googleapis.com: 429 You have exhausted your capacity on this model. Your quota will reset after 0s.
[Antigravity API] Rate limited. Retrying in 1000ms...
[Response Convert] Converting response from gemini-antigravity to claude
[Antigravity API] Error calling generateContent on https://daily-cloudcode-pa.sandbox.googleapis.com: 400 {"type":"error","error":{"type":"invalid_request_error","message":"tools.11.custom.input_schema: JSON schema is invalid. It must match JSON Schema draft 2020-12 (https://json-schema.org/draft/2020-12). Learn more about tool use at https://docs.claude.com/en/docs/tool-use."},"request_id":"req_vrtx_011CWT7ryHe48tTYfra5jgoh"}
[Antigravity API] Received 401/400. Refreshing auth and retrying...
[Antigravity Auth] Authentication configured successfully from file.
[Antigravity Auth] Token expiring soon or force refresh requested. Refreshing token...
[Antigravity Auth] Token refreshed and saved to /root/.antigravity/oauth_creds.json successfully.
[Antigravity API] Error calling generateContent on https://daily-cloudcode-pa.sandbox.googleapis.com: 429 You have exhausted your capacity on this model. Your quota will reset after 0s.
[Antigravity API] Rate limited. Retrying in 2000ms...
[Antigravity API] Error calling generateContent on https://daily-cloudcode-pa.sandbox.googleapis.com: 400 {"type":"error","error":{"type":"invalid_request_error","message":"tools.11.custom.input_schema: JSON schema is invalid. It must match JSON Schema draft 2020-12 (https://json-schema.org/draft/2020-12). Learn more about tool use at https://docs.claude.com/en/docs/tool-use."},"request_id":"req_vrtx_011CWT7sCeZp3bJ8zBFPWVYv"}
[Server] Error during unary processing: Error: {"type":"error","error":{"type":"invalid_request_error","message":"tools.11.custom.input_schema: JSON schema is invalid. It must match JSON Schema draft 2020-12 (https://json-schema.org/draft/2020-12). Learn more about tool use at https://docs.claude.com/en/docs/tool-use."},"request_id":"req_vrtx_011CWT7sCeZp3bJ8zBFPWVYv"}
at Gaxios._request (/root/IMP/AIClient-2-API/node_modules/gaxios/build/cjs/src/gaxios.js:154:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async OAuth2Client.requestAsync (/root/IMP/AIClient-2-API/node_modules/google-auth-library/build/src/auth/oauth2client.js:463:20)
at async AntigravityApiService.callApi (file:///root/IMP/AIClient-2-API/src/gemini/antigravity-core.js:547:25)
at async AntigravityApiService.generateContent (file:///root/IMP/AIClient-2-API/src/gemini/antigravity-core.js:711:26)
at async handleUnaryRequest (file:///root/IMP/AIClient-2-API/src/common.js:275:32)
at async handleContentGenerationRequest (file:///root/IMP/AIClient-2-API/src/common.js:442:9)
at async handleAPIRequests (file:///root/IMP/AIClient-2-API/src/api-manager.js:52:13)
at async Server.requestHandler (file:///root/IMP/AIClient-2-API/src/request-handler.js:162:32)
@mfsforme3-commits commented on GitHub (Dec 25, 2025):
issue with claude code ver 2.0.70