File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ import {
66
66
SUPPORTED_OPENAI_FORMAT_MODELS ,
67
67
llama3 ,
68
68
llama31 ,
69
+ llama32 ,
69
70
modelGardenOpenaiCompatibleModel ,
70
71
} from './model_garden.js' ;
71
72
import {
@@ -104,6 +105,7 @@ export {
104
105
imagen3Fast ,
105
106
llama3 ,
106
107
llama31 ,
108
+ llama32 ,
107
109
textEmbedding004 ,
108
110
textEmbeddingGecko ,
109
111
textEmbeddingGecko001 ,
Original file line number Diff line number Diff line change @@ -29,6 +29,23 @@ export const ModelGardenModelConfigSchema = OpenAIConfigSchema.extend({
29
29
location : z . string ( ) . optional ( ) ,
30
30
} ) ;
31
31
32
+ export const llama32 = modelRef ( {
33
+ name : 'vertexai/llama-3.2' ,
34
+ info : {
35
+ label : 'Llama 3.2' ,
36
+ supports : {
37
+ multiturn : true ,
38
+ tools : true ,
39
+ media : true ,
40
+ systemRole : true ,
41
+ output : [ 'text' , 'json' ] ,
42
+ } ,
43
+ versions : [ 'meta/llama-3.2-90b-vision-instruct-maas' ] ,
44
+ } ,
45
+ configSchema : ModelGardenModelConfigSchema ,
46
+ version : 'meta/llama-3.2-90b-vision-instruct-maas' ,
47
+ } ) ;
48
+
32
49
export const llama31 = modelRef ( {
33
50
name : 'vertexai/llama-3.1' ,
34
51
info : {
@@ -72,6 +89,7 @@ export const llama3 = modelRef({
72
89
export const SUPPORTED_OPENAI_FORMAT_MODELS = {
73
90
'llama3-405b' : llama3 ,
74
91
'llama-3.1' : llama31 ,
92
+ 'llama-3.2' : llama32 ,
75
93
} ;
76
94
77
95
export function modelGardenOpenaiCompatibleModel (
@@ -87,7 +105,6 @@ export function modelGardenOpenaiCompatibleModel(
87
105
baseUrlTemplate =
88
106
'https://{location}-aiplatform.googleapis.com/v1beta1/projects/{projectId}/locations/{location}/endpoints/openapi' ;
89
107
}
90
-
91
108
const clientFactory = async (
92
109
request : GenerateRequest < typeof ModelGardenModelConfigSchema >
93
110
) : Promise < OpenAI > => {
You can’t perform that action at this time.
0 commit comments