Gemini api-key verification bug

curl https://generativelanguage.googleapis.com/v1beta/models/gemini-1.0-pro:generateContent -H “Content-Type: application/json” -H “X-Goog-Api-Key: my_google_api_key” -d ‘{“generationConfig”:{},“safetySettings”:,“contents”:[{“role”:“user”,“parts”:[{“text”:“Testing. Just say hi and nothing else.”}]}]}’

This is cursor curl command for verifying gemini API key.
But google didn’t support gemini-1.0-pro anymore.
And there is no way to change above curl command.

1 Like

same issue, this is because gemini 1.0 was removed from google. However it seems cursor harcoded model name during verification

2 Likes

I have the same issue

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.