Since Gemini 3.1 was released I am not able to use it with Antigravity. I have latest IDE release but when I use Gemini 3.1 I obtain always this error
Trajectory ID: 69065110-551e-4675-ac40-0fbee080…
Error: HTTP 400 Bad Request
Sherlog:
TraceID: 0xebb1dabb0ce…
Headers: {“Alt-Svc”:[“h3=“:443”; ma=2592000,h3-29=“:443”; ma=2592000”],“Content-Length”:[“576”],“Content-Type”:[“text/event-stream”],“Date”:[“Fri, 06 Mar 2026 14:03:51 GMT”],“Server”:[“ESF”],“Server-Timing”:[“gfet4t7; dur=461”],“Vary”:[“Origin”,“X-Origin”,“Referer”],“X-Cloudaicompanion-Trace-Id”:[“ebb1dabb0cee5372”],“X-Content-Type-Options”:[“nosniff”],“X-Frame-Options”:[“SAMEORIGIN”],“X-Xss-Protection”:[“0”]}
{
“error”: {
“code”: 400,
“message”: “* GenerateContentRequest.tools[26].function_declarations[0].parameters.properties[max_depth].enum: only allowed for STRING type\n* GenerateContentRequest.tools[26].function_declarations[0].parameters.properties[max_depth].enum[0]: cannot be empty\n* GenerateContentRequest.tools[26].function_declarations[0].parameters.properties[max_depth].enum[1]: cannot be empty\n* GenerateContentRequest.tools[26].function_declarations[0].parameters.properties[max_depth].enum[2]: cannot be empty\n”,
“status”: “INVALID_ARGUMENT”
}
}
If I use other models everything is ok