Skip to content

Commit d7bf287

Browse files
authored
feat(js): add llama 3.2 support (#979)
1 parent a9c3cb5 commit d7bf287

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ import {
6464
import {
6565
llama3,
6666
llama31,
67+
llama32,
6768
modelGardenOpenaiCompatibleModel,
6869
SUPPORTED_OPENAI_FORMAT_MODELS,
6970
} from './model_garden.js';
@@ -103,6 +104,7 @@ export {
103104
imagen3Fast,
104105
llama3,
105106
llama31,
107+
llama32,
106108
textEmbedding004,
107109
textEmbeddingGecko,
108110
textEmbeddingGecko001,

‎js/plugins/vertexai/src/model_garden.ts‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,23 @@ export const llama31 = modelRef({
4747
version: 'meta/llama3-405b-instruct-maas',
4848
});
4949

50+
export const llama32 = modelRef({
51+
name: 'vertexai/llama-3.2',
52+
info: {
53+
label: 'Llama 3.2',
54+
supports: {
55+
multiturn: true,
56+
tools: true,
57+
media: true,
58+
systemRole: true,
59+
output: ['text', 'json'],
60+
},
61+
versions: ['meta/llama-3.2-90b-vision-instruct-maas'],
62+
},
63+
configSchema: ModelGardenModelConfigSchema,
64+
version: 'meta/llama-3.2-90b-vision-instruct-maas',
65+
});
66+
5067
/**
5168
* @deprecated use `llama31` instead
5269
*/
@@ -70,6 +87,7 @@ export const llama3 = modelRef({
7087
export const SUPPORTED_OPENAI_FORMAT_MODELS = {
7188
'llama3-405b': llama3,
7289
'llama-3.1': llama31,
90+
'llama-3.2': llama32,
7391
};
7492

7593
export function modelGardenOpenaiCompatibleModel(

0 commit comments

Comments
 (0)