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

AnthropicVertex - FAILED_PRECONDITION when trying to run collab with Haiku

nms
Bronze 3
Bronze 3

I'm trying to set up AnthropicVertex in python couldn't get it to work, so I tried the collab: https://colab.research.google.com/github/GoogleCloudPlatform/vertex-ai-samples/blob/main/notebooks/o...
to test in basic form.

But I get a BadRequestError: Error code: 400 - [{'error': {'code': 400, 'message': 'Project `xxxxxxxxxx146` is not allowed to use Publisher Model `projects/xxxxxxxxx-420407/locations/europe-west4/publishers/anthropic/models/claude-3-haiku@20240307`', 'status': 'FAILED_PRECONDITION'}}]

I have set up my account to be billable, although it is still on trial money, so I'm out of ideas why this doesn't work?

Can the "FAILED_PRECONDITION" be because of other reasons than payment?
I should also add that I'm not based in the US, but I don't know if that can be a factor?




6 2 1,200
2 REPLIES 2

Hi , I am getting the same error. any luck?

No solution found. But we got a unmetered plan directly at Anthropic, so I didn't pursue it further.
My guess it is either related to billing or maybe regional permissions to use the Anthropic model.