API Error - Code 400
What happened?
This is becoming a big problem an I am unsure of how to fix it:
✕ [API Error: [{
"error": {
"code": 400,
"message": "Please ensure that the number of function
response parts is equal to the number of function call parts of
the function call turn.",
"errors": [
{
"message": "Please ensure that the number of function
response parts is equal to the number of function call parts of
the function call turn.",
"domain": "global",
"reason": "badRequest"
}
],
"status": "INVALID_ARGUMENT"
}
}
]]
What did you expect to happen?
I ask the cli a question and these errors start popping up, many in a row. I eventually have to cancel. The error is not clear. It does not explain to me what is going on, at least not in a way that I understand and the cli doesn't appear to be able to fix it.
Client information
About Gemini CLI │ │ │ │ CLI Version 0.1.7 │ │ Git Commit 55cc809 │ │ Model gemini-2.5-flash │ │ Sandbox no sandbox │ │ OS win32 │ │ Auth Method OAuth
Login information
using the terminal within VS Code with my google account.
Anything else we need to know?
No response
@shawnhale I'm sorry you're running into this. Lets continue the convo over at #3131 if you could provide details to my question that I left there that'd be awesome!