void icon indicating copy to clipboard operation
void copied to clipboard

gemini request:400 bad request

Open HeriseEx opened this issue 6 months ago • 1 comments

VSCode Version: 1.99.30036 (system setup) Void Version: 1.4.1 Commit: 406d0dc2975f171c65236e1cd8891d38ce7e349d Date: 2025-05-31T06:45:45.890Z Electron: 34.3.2 ElectronBuildId: undefined Chromium: 132.0.6834.210 Node.js: 20.18.3 V8: 13.2.152.41-electron.0 OS: Windows_NT x64 10.0.19045

Image

with openai compatible , 400 Unknown message role: "model", might error for mcp server Image Image

HeriseEx avatar Jun 03 '25 06:06 HeriseEx

same. every other moddel works but gemini 2.5 always error. first rersponse in conversation is

Error Error: 400 * GenerateContentRequest.contents[0].parts[0].data: required oneof field 'data' must have one initialized field

then

Error Error: 400 Unknown message role: "model"

washirving avatar Jun 04 '25 09:06 washirving

Does this always happen, or just when you switch models in the middle of a conversation?

We are converting messages to Gemini format in convertToLLMMessageService. There must be something wrong with one of our assumptions for 2.5. Sorry about this! Will investigate.

andrewpareles avatar Jun 29 '25 22:06 andrewpareles

yeah, always.

washirving avatar Jun 30 '25 18:06 washirving

When I turn off MCP, Gemini seems to work again. When I turn it on, I get the same error.

Sopwith avatar Jul 06 '25 18:07 Sopwith