Skip to content

[Bug]: Default value in GoogleAIPlugin #41105

Open
@dvilcode

Description

@dvilcode

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:

Image

"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
Image

But, looking into the actual gemini documentation, It seems like the name 'gemini-pro' does not exist any more.

Image

Could you help me to fix this? I need to run AI into my app using the gemini models.

Steps To Reproduce

  1. Create or Edit a project
  2. Add the gemini plugin
  3. Add a new query
  4. Select the default model
  5. 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

Metadata

Metadata

Labels

BugSomething isn't workingCommunity Reportedissues reported by community membersHighThis issue blocks a user from building or impacts a lot of usersNeeds TriagingNeeds attention from maintainers to triageRelease

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions