From 66b2274f895615f15b5a6edba51444b7d98dcaa5 Mon Sep 17 00:00:00 2001 From: Antonio Sarosi Date: Sun, 24 Nov 2024 19:25:55 +0000 Subject: [PATCH] Update Vertex docs for different publishers (#1191) Add [instructions for publishers such as Meta](https://discord.com/channels/1119368998161752075/1293965556994801767/1294021207225532529) > [!IMPORTANT] > Adds documentation for using non-Google publishers with Vertex AI, including an example for Meta's Llama model. > > - **Documentation**: > - Adds section for using non-Google publishers in `vertex.mdx`. > - Provides example for configuring `base_url` for Meta's Llama model. > > This description was created by [Ellipsis](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral) for f15a8a6aea3aaf8c8441ca099fa5a0b4ce4a85e0. It will automatically update as commits are pushed. --- .../baml/clients/providers/vertex.mdx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/fern/03-reference/baml/clients/providers/vertex.mdx b/fern/03-reference/baml/clients/providers/vertex.mdx index c29584196..a2067f833 100644 --- a/fern/03-reference/baml/clients/providers/vertex.mdx +++ b/fern/03-reference/baml/clients/providers/vertex.mdx @@ -273,8 +273,19 @@ client MyClient { For all other options, see the [official Vertex AI documentation](https://cloud.google.com/vertex-ai/generative-ai/docs/start/quickstarts/quickstart-multimodal). +## Publishers Other Than Google +If you are using models from publishers other than Google, such as Llama from +Meta, use your project endpoint as the `base_url` in BAML: - - +```baml +client VertexLlama { + provider vertex-ai + options { + base_url "https://${LOCATION}-aiplatform.googleapis.com/v1/projects/${PROJECT_ID}/locations/${LOCATION}/endpoints/" + project_id my-project-id + location us-central1 + } +} +```