From f15a8a6aea3aaf8c8441ca099fa5a0b4ce4a85e0 Mon Sep 17 00:00:00 2001 From: Antonio Sarosi Date: Sat, 23 Nov 2024 23:27:42 +0000 Subject: [PATCH] Update Vertex docs for different publishers --- .../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 + } +} +```