Skip to content

Commit abdab1f

Browse files
authored
Merge branch 'firebase:main' into junhyukhan/patch-1
2 parents 0a3a880 + c8152a6 commit abdab1f

File tree

3 files changed

+69
-0
lines changed

3 files changed

+69
-0
lines changed

go/fix_genkit_init.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
#!/bin/bash
2+
# Copyright 2025 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
# SPDX-License-Identifier: Apache-2.0
217

318
# Script to fix genkit.Init usage across the Go codebase
419

js/plugins/vertexai/src/modelgarden/anthropic.ts

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,54 @@ export const claude3Opus = modelRef({
131131
configSchema: AnthropicConfigSchema,
132132
});
133133

134+
export const claudeSonnet4 = modelRef({
135+
name: 'vertexai/claude-sonnet-4',
136+
info: {
137+
label: 'Vertex AI Model Garden - Claude Sonnet 4',
138+
versions: ['claude-sonnet-4@20250514'],
139+
supports: {
140+
multiturn: true,
141+
media: true,
142+
tools: true,
143+
systemRole: true,
144+
output: ['text'],
145+
},
146+
},
147+
configSchema: AnthropicConfigSchema,
148+
});
149+
150+
export const claudeOpus4 = modelRef({
151+
name: 'vertexai/claude-opus-4',
152+
info: {
153+
label: 'Vertex AI Model Garden - Claude Opus 4',
154+
versions: ['claude-opus-4@20250514'],
155+
supports: {
156+
multiturn: true,
157+
media: true,
158+
tools: true,
159+
systemRole: true,
160+
output: ['text'],
161+
},
162+
},
163+
configSchema: AnthropicConfigSchema,
164+
});
165+
166+
export const claudeOpus41 = modelRef({
167+
name: 'vertexai/claude-opus-4-1',
168+
info: {
169+
label: 'Vertex AI Model Garden - Claude Opus 4.1',
170+
versions: ['claude-opus-4-1@20250805'],
171+
supports: {
172+
multiturn: true,
173+
media: true,
174+
tools: true,
175+
systemRole: true,
176+
output: ['text'],
177+
},
178+
},
179+
configSchema: AnthropicConfigSchema,
180+
});
181+
134182
export const SUPPORTED_ANTHROPIC_MODELS: Record<
135183
string,
136184
ModelReference<typeof AnthropicConfigSchema>
@@ -140,6 +188,9 @@ export const SUPPORTED_ANTHROPIC_MODELS: Record<
140188
'claude-3-sonnet': claude3Sonnet,
141189
'claude-3-opus': claude3Opus,
142190
'claude-3-haiku': claude3Haiku,
191+
'claude-sonnet-4': claudeSonnet4,
192+
'claude-opus-4': claudeOpus4,
193+
'claude-opus-4-1': claudeOpus41,
143194
};
144195

145196
export function toAnthropicRequest(

js/plugins/vertexai/src/modelgarden/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ export {
7272
claude3Haiku,
7373
claude3Opus,
7474
claude3Sonnet,
75+
claudeOpus4,
76+
claudeOpus41,
77+
claudeSonnet4,
7578
} from './anthropic.js';
7679
export { codestral, mistralLarge, mistralNemo } from './mistral.js';
7780
export { llama3, llama31, llama32 } from './model_garden.js';

0 commit comments

Comments
 (0)