Skip to content

Commit 0db53c1

Browse files
authored
Update vertex.mdx (#2123)
Include example using Anthropic's Claude Sonnet 4 with the Vertex AI API <!-- ELLIPSIS_HIDDEN --> ---- > [!IMPORTANT] > Add example for Anthropic's Claude Sonnet 4 model with Vertex AI API in `vertex.mdx`. > > - **Documentation**: > - Adds example for using Anthropic's Claude Sonnet 4 model with Vertex AI API in `vertex.mdx`. > - Specifies `model` as "claude-sonnet-4" and includes `anthropic_version` and `base_url` options. > > <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral)<sup> for 019a58d. You can [customize](https://app.ellipsis.dev/BoundaryML/settings/summaries) this summary. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
1 parent a7974fb commit 0db53c1

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

  • fern/03-reference/baml/clients/providers

fern/03-reference/baml/clients/providers/vertex.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,3 +410,15 @@ client<llm> VertexLlama {
410410
}
411411
```
412412

413+
For anthropic
414+
415+
```baml
416+
client<llm> VertexClaudeSonnet {
417+
provider vertex-ai
418+
options {
419+
model "claude-sonnet-4"
420+
anthropic_version "${ANTHROPIC_VERSION}"
421+
base_url "https://${LOCATION}-aiplatform.googleapis.com/v1/projects/${PROJECT_ID}/locations/${LOCATION}/publishers/anthropic/models"
422+
}
423+
}
424+
```

0 commit comments

Comments
 (0)