This issue occurs in Cursor 0.45.17.
It does not occur in Cursor 0.47.8.
The reason is that it tries to verify the api key via models/gemini-1.0-pro, which is no longer supported by google.
{
"error": {
"code": 404,
"message": "models/gemini-1.0-pro is not found for API version v1beta, or is not supported for generateContent. Call ListModels to see the list of available models and their supported methods.",
"status": "NOT_FOUND"
}
}
Updating to the latest version does not cause this problem.
Unfortunately, in my CodeBase, 0.47 does something stupid
that prevents even simple Markdown modifications (whether Sonnet 3.7, gemini, or o1).
I can’t update it…
The only current workaround in 0.45.17 is to not use the custom google API KEY.