File tree Expand file tree Collapse file tree 4 files changed +36
-1
lines changed Expand file tree Collapse file tree 4 files changed +36
-1
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,20 @@ export const gemini15Pro = modelRef({
117
117
configSchema : GeminiConfigSchema ,
118
118
} ) ;
119
119
120
+ export const gemini15Flash = modelRef ( {
121
+ name : 'googleai/gemini-1.5-flash-latest' ,
122
+ info : {
123
+ label : 'Google AI - Gemini 1.5 Flash' ,
124
+ supports : {
125
+ multiturn : true ,
126
+ media : true ,
127
+ tools : true ,
128
+ systemRole : true ,
129
+ } ,
130
+ } ,
131
+ configSchema : GeminiConfigSchema ,
132
+ } ) ;
133
+
120
134
export const geminiUltra = modelRef ( {
121
135
name : 'googleai/gemini-ultra' ,
122
136
info : {
@@ -146,6 +160,7 @@ export const SUPPORTED_V15_MODELS: Record<
146
160
ModelReference < z . ZodTypeAny >
147
161
> = {
148
162
'gemini-1.5-pro-latest' : gemini15Pro ,
163
+ 'gemini-1.5-flash-latest' : gemini15Flash ,
149
164
} ;
150
165
151
166
const SUPPORTED_MODELS = {
Original file line number Diff line number Diff line change @@ -20,14 +20,15 @@ import {
20
20
textEmbeddingGeckoEmbedder ,
21
21
} from './embedder.js' ;
22
22
import {
23
+ gemini15Flash ,
23
24
gemini15Pro ,
24
25
geminiPro ,
25
26
geminiProVision ,
26
27
googleAIModel ,
27
28
SUPPORTED_V15_MODELS ,
28
29
SUPPORTED_V1_MODELS ,
29
30
} from './gemini.js' ;
30
- export { gemini15Pro , geminiPro , geminiProVision } ;
31
+ export { gemini15Flash , gemini15Pro , geminiPro , geminiProVision } ;
31
32
32
33
export interface PluginOptions {
33
34
apiKey ?: string ;
Original file line number Diff line number Diff line change @@ -103,6 +103,22 @@ export const gemini15ProPreview = modelRef({
103
103
version : 'gemini-1.5-pro-preview-0409' ,
104
104
} ) ;
105
105
106
+ export const gemini15FlashPreview = modelRef ( {
107
+ name : 'vertexai/gemini-1.5-flash-preview' ,
108
+ info : {
109
+ label : 'Vertex AI - Gemini 1.5 Flash' ,
110
+ versions : [ 'gemini-1.5-flash-preview-0514' ] ,
111
+ supports : {
112
+ multiturn : true ,
113
+ media : true ,
114
+ tools : true ,
115
+ systemRole : true ,
116
+ } ,
117
+ } ,
118
+ configSchema : GeminiConfigSchema ,
119
+ version : 'gemini-1.5-flash-preview-0514' ,
120
+ } ) ;
121
+
106
122
export const SUPPORTED_V1_MODELS = {
107
123
'gemini-1.0-pro' : geminiPro ,
108
124
'gemini-1.0-pro-vision' : geminiProVision ,
@@ -111,6 +127,7 @@ export const SUPPORTED_V1_MODELS = {
111
127
112
128
export const SUPPORTED_V15_MODELS = {
113
129
'gemini-1.5-pro-preview' : gemini15ProPreview ,
130
+ 'gemini-1.5-flash-preview' : gemini15FlashPreview ,
114
131
} ;
115
132
116
133
export const SUPPORTED_GEMINI_MODELS = {
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ import {
36
36
vertexEvaluators ,
37
37
} from './evaluation.js' ;
38
38
import {
39
+ gemini15FlashPreview ,
39
40
gemini15ProPreview ,
40
41
geminiModel ,
41
42
geminiPro ,
@@ -48,6 +49,7 @@ export {
48
49
claude3Haiku ,
49
50
claude3Opus ,
50
51
claude3Sonnet ,
52
+ gemini15FlashPreview ,
51
53
gemini15ProPreview ,
52
54
geminiPro ,
53
55
geminiProVision ,
You can’t perform that action at this time.
0 commit comments