Description
Is there an existing issue for this?
- I have searched the existing issues
Description
When I try to run a query using the Gemini Plugin, I'm getting this error from the request:

"error":"{ "error": { "code": 404, "message": "models/gemini-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" } } "
I had searched the implementation in the source code, and I found a special constant for the parameter:
app/server/appsmith-plugins/googleAiPlugin/src/main/java/com/external/plugins/constants/GoogleAIConstants.java
But, looking into the actual gemini documentation, It seems like the name 'gemini-pro' does not exist any more.

Could you help me to fix this? I need to run AI into my app using the gemini models.
Steps To Reproduce
- Create or Edit a project
- Add the gemini plugin
- Add a new query
- Select the default model
- Click on "run" query
Public Sample App
No response
Environment
Release
Severity
High (Blocker to building or releasing)
Issue video log
No response
Version
Self Hosted: v1.81.0-SNAPSHOT