Discussion about this post

User's avatar
Donovan's avatar

This was helpful, thanks! To use this example with VertexAI

# you won't need the ANTHROPIC_API_KEY variable

# replace

client = anthropic.Anthropic() # Reads ANTHROPIC_API_KEY from environment

# with this

client = anthropic.AnthropicVertex(

project_id="<your-gcp-project>",

region="<your-region>"

)

No posts

Ready for more?