Skip to content

Commit e54e4e1

Browse files
committed
add anthropic version config option to vertex
1 parent da76440 commit e54e4e1

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

.changeset/seven-planets-walk.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"magnitude-core": patch
3+
---
4+
5+
add anthropic version config option to vertex

packages/magnitude-core/src/ai/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ export interface GoogleVertexClient {
6262
baseUrl?: string,
6363
projectId?: string,
6464
credentials?: string | object,
65+
// Needed for anthropic models on vertex
66+
anthropicVersion?: string
6567
// passed to generationConfig
6668
temperature?: number,
6769
}

packages/magnitude-core/src/ai/util.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ export async function convertToBamlClientOptions(client: LLMClient): Promise<Rec
7373
base_url: client.options.baseUrl,
7474
project_id: client.options.projectId,
7575
credentials: client.options.credentials,
76+
anthropic_version: client.options.anthropicVersion,
7677
model: client.options.model,
7778
// generationConfig: {
7879
// temperature: temp,

0 commit comments

Comments
 (0)