I have some links that may or may not help you so:
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| About the Gemini API `400 Please ensure that function call turns come immediately after a user turn or after a function response turn.` error | 4 | 1942 | February 1, 2025 | |
| Very frustrating experience with Gemini 2.5 function calling performance | 11 | 1548 | September 3, 2025 | |
| Error: [GoogleGenerativeAI Error] 400 Bad Request | 7 | 2928 | January 22, 2025 | |
| Gemini 2.0 experimental function calling doesn't return the function most of the time | 3 | 599 | February 13, 2025 | |
| Bug Report: 500 Internal Error with Multi-Turn Tool Use (gemini-2.5-pro-preview-03-25) | 1 | 618 | April 7, 2025 |