Hello,
Today, I suddenly started receiving errors from my Firebase function that uses Vertex AI with the Gemini 1.5 Flash model.
The error I'm receiving:
Error: ClientError: [VertexAI.ClientError]: got status: 400 Bad Request. {"error":{"code":400,"message":"Project `PROJECT_ID` is not allowed to use Publisher Model `projects/PROJECT_NAME/locations/us-central1/publishers/google/models/gemini-1.5-flash`","status":"FAILED_PRECONDITION"}}
I haven't changed any part of the code or made any modifications to Google Cloud. I've been using the same code and settings for over six months.
I would appreciate any help with this issue, as I haven't been able to find any relevant information.
Note:
Vertex AI is enabled in Google Cloud, and both Vertex AI Administrator and Vertex AI User roles are assigned to the service account that Firebase uses.