Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Error when using Vertex AI

I am using Vertex AI with the text-bison model. Everything worked last week but now I'm getting an error when hitting the endpoint.

Edit: I have tried to give the service account excessive permissions but to no avail.

Endpoint: https://us-central1-aiplatform.googleapis.com/v1/projects/${projectID}/locations/us-central1/publish...

The compute engine is set to us-central1.

I get this error:
{
message: 'Project `136xxxxxx473` is not allowed to use Publisher Model `projects/olle-johansson-sandbox-ffjl/locations/us-central1/publishers/google/models/text-bison`',
domain: 'global',
reason: 'failedPrecondition'
}

The `136xxxxxx473` is the project number for the project (ID) olle-johansson-sandbox-ffjl.
I have tried changing the locations, and the quota has not been exceeded.

Does anyone know what this means?

0 1 466
1 REPLY 1

Hi @ollejj,

Welcome to Google Cloud Community!

The error you're encountering is likely due to the deprecation of PaLM 2 for text or the Vertex AI text-bison model. For more details you can check this documentation. To resolve this, I recommend migrating to Gemini.

I hope this helps.