Skip to content

[firebase_vertexai]: Gemini 1.5 Flash not working #17263

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
MaggieThomann opened this issue Apr 8, 2025 · 2 comments
Open
1 task done

[firebase_vertexai]: Gemini 1.5 Flash not working #17263

MaggieThomann opened this issue Apr 8, 2025 · 2 comments
Labels
blocked: customer-response Waiting for customer response, e.g. more information was requested. platform: web Issues / PRs which are specifically for web. plugin: vertexai label issues for vertexai plugin type: bug Something isn't working

Comments

@MaggieThomann
Copy link

Is there an existing issue for this?

  • I have searched the existing issues.

Which plugins are affected?

Other

Which platforms are affected?

Web

Description

I tried to use the gemini-1.5-flash model name in a Flutter app that initiates a chat session using vertexAI.generativeModel with that model name and it returns the following. It's surprising since in the documentation, it's a valid name, and I understand it's been discontinued but it hasn't been deprecated yet. Interestingly, gemini-1.5-pro does work.

Image
{
  "error": {
    "code": 400,
    "message": "Project `#############` is not allowed to use Publisher Model `projects/maggie-test-with-fireba-mg1uyj/locations/us-central1/publishers/google/models/gemini-1.5-flash`",
    "status": "FAILED_PRECONDITION"
  }
}

Project ID is obfuscated.

Reproducing the issue

Use gemini-1.5-flash as the model name when making a generateContent call via the package.

Firebase Core version

3.8.0

Flutter Version

3.27.3

Relevant Log Output

Flutter dependencies

No response

Additional context and comments

No response

@MaggieThomann MaggieThomann added Needs Attention This issue needs maintainer attention. type: bug Something isn't working labels Apr 8, 2025
@SelaseKay SelaseKay added platform: web Issues / PRs which are specifically for web. plugin: vertexai label issues for vertexai plugin labels Apr 8, 2025
@SelaseKay
Copy link
Contributor

Hi @MaggieThomann, thanks for the report. I suspect this could be an issue from upstream. Looks similar to this thread.

@MichaelVerdon
Copy link
Contributor

Our example applications use gemini-1.5-flash and it is still working fine, regardless of the deprecation warning it should still work for you. I am almost certain this is a configuration issue on your end, more likely to do with it on Google Cloud Platform and checking your billing plan and quotas if it allows for gemini-1.5-flash, your plan may only allow the pro version.

I can suggest you insert your google-services file locally into our test project and see if it works, that can confirm if it is a backend configuration issue on your end.

@MichaelVerdon MichaelVerdon added blocked: customer-response Waiting for customer response, e.g. more information was requested. and removed Needs Attention This issue needs maintainer attention. labels Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked: customer-response Waiting for customer response, e.g. more information was requested. platform: web Issues / PRs which are specifically for web. plugin: vertexai label issues for vertexai plugin type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants