Gemini Code Assist Standard tier isn't activated in gemini-cli, as it just continues to switch to the flash model

Hi, I just wonder if maybe I have done something wrong, maybe the subscribtion isn’t working in gemini-cli as it still switches over to flash model, and I still get the messages about slow response time detected when it does so. I don’t have much experience with google cloud, so I don’t know where the problem could be. Maybe it’s because of wrong project, or I don’t really know, the bottom line is that the standard tier isn’t activated. Is it possible to get some assistance with this problem, it will be much appreciated, thank you.

Hi @Jonny_Mai,

Welcome to the Google AI Forum! :confetti_ball: :confetti_ball:

I can help you troubleshoot the issue:

  • Verify Subscription: Ensure your GCP project has the Gemini Code Assist (Standard) tier activated.
    You can verify this at:
    https://console.cloud.google.com/ai/gemini/code-assist

  • Verify Billing: Your GCP project must have billing enabled to access Standard or Enterprise models.

  • Run gcloud config list to ensure the project is set to the one with the active subscription.

  • API Enable: Ensure required APIs are enabled:
    Gemini API: generativelanguage.googleapis.com
    Code Assist API: aicode.googleapis.com

Try these steps and let me know.

Happy coding :slight_smile: