opencode-copilot-chat icon indicating copy to clipboard operation
opencode-copilot-chat copied to clipboard

[BUG] model "gemini-4-argon" error

Open TwoBrushes opened this issue 3 weeks ago • 1 comments

📸 Logs or screenshots (optional)

Image

TwoBrushes avatar Nov 10 '26 15:11 TwoBrushes

Same here unfortunately with extension version 0.8.1.

This is the/my entire error-log:

Reason: OpenCode Go API request failed (400) model=gemini-4-argon payloadBytes=199856: Upstream request failed: [400] Invalid JSON payload received. Unknown name "content" at 'contents[2].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[4].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[6].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[8].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[10].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[12].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[14].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[16].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[18].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[20].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[22].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[24].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[26].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[30].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[32].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[34].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[36].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[38].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[40].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[42].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[43].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[45].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[47].parts[0].function_response': Cannot find field.: OpenCodeRequestError: OpenCode Go API request failed (400) model=gemini-4-argon payloadBytes=199856: Upstream request failed: [400] Invalid JSON payload received. Unknown name "content" at 'contents[2].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[4].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[6].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[8].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[10].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[12].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[14].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[16].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[18].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[20].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[22].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[24].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[26].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[30].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[32].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[34].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[36].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[38].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[40].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[42].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[43].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[45].parts[0].function_response': Cannot find field. Invalid JSON payload received. Unknown name "content" at 'contents[47].parts[0].function_response': Cannot find field. at buildOpenCodeRequestError (/root/.vscode-server/extensions/ltmoerdani.opencode-copilot-chat-0.8.1/out/errors.js:47:12) at streamOpenCodeResponse (/root/.vscode-server/extensions/ltmoerdani.opencode-copilot-chat-0.8.1/out/transports/engine.js:328:73) at process.processTicksAndRejections (node:internal/process/task_queues:104:5) at async streamGoogleGenerateContent (/root/.vscode-server/extensions/ltmoerdani.opencode-copilot-chat-0.8.1/out/transports/google.js:14:9) at async OpenCodeProvider.provideLanguageModelChatResponse (/root/.vscode-server/extensions/ltmoerdani.opencode-copilot-chat-0.8.1/out/provider/OpenCodeProvider.js:363:17)

Sudlon avatar Nov 11 '26 12:11 Sudlon