[Bug] Gemini API fails with 400: Requests ending with a model turn are not supported #1981
herliansyah
started this conversation in
Bug reports
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Affected area
Coding agent and CLI
What happened?
Summary
When using Gemini-based models (e.g.,
antigravity/gemini-3.7-flash-mediumor Google Generative AI endpoints), requests fail repeatedly withHTTP 400
INVALID_ARGUMENT: Requests ending with a model turn are not supported..This error causes consecutive retry loops until maximum retry attempts are exhausted, blocking the agent session.
Environment & Version Info
0.9.1v22.22.310.9.83.11.15Linux x86_64 (Linux-6.8.0-138-generic-x86_64-with-glibc2.39)antigravity/gemini-3.7-flash-mediumError Log / Output
All reactions