Chef - New Chat error - 400 Bad Request
I'm currently using Gemini 2.5 Pro and ever since I 've started to use a New Chat, I would get this error with the first prompt: Google returned an error (400 Bad Request) when using your provided API key: { "error": { "code": 400, "message": "* GenerateContentRequest.contents: contents is not specified\n", "status": "INVALID_ARGUMENT" } }
It seems to fix itself after resending the prompt multiple [6+] times and switching to one of the other models and back to Gemini then sometimes goes in a loop of running the same prompts over and over again. It really eats up the tokens used....
5 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
hi! does this always happen when creating a new chat?
Yes currently on this app (only app I've created so far with multiple apps and using gemini)
also, unfortunately we don't have first class support for Gemini models. we include them in our product to give our customers more optionality, but we generally recommend claude sonnet 4 as it is the most reliable.
i can dig into your issue a bit tomorrow, but i can't promise that i can get your issue resolved.
Ok, appreciate it though.
Like it works fine once the prompts gets through