gemini request:400 bad request
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
with openai compatible , 400 Unknown message role: "model", might error for mcp server
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"
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.
yeah, always.
When I turn off MCP, Gemini seems to work again. When I turn it on, I get the same error.