Add Gemini 1.5 Flash as a model (#1337)
This commit is contained in:
parent
b57b48ae76
commit
fee942ed2d
4 changed files with 19 additions and 2 deletions
1
core/index.d.ts
vendored
1
core/index.d.ts
vendored
|
|
@ -568,6 +568,7 @@ export type ModelName =
|
|||
// Gemini
|
||||
| "gemini-pro"
|
||||
| "gemini-1.5-pro-latest"
|
||||
| "gemini-1.5-flash-latest"
|
||||
// Mistral
|
||||
| "mistral-tiny"
|
||||
| "mistral-small"
|
||||
|
|
|
|||
|
|
@ -62,6 +62,7 @@ const MODEL_SUPPORTS_IMAGES: string[] = [
|
|||
"claude-3",
|
||||
"gemini-ultra",
|
||||
"gemini-1.5-pro",
|
||||
"gemini-1.5-flash",
|
||||
"sonnet",
|
||||
"opus",
|
||||
"haiku",
|
||||
|
|
|
|||
|
|
@ -610,7 +610,8 @@
|
|||
"enum": [
|
||||
"chat-bison-001",
|
||||
"gemini-pro",
|
||||
"gemini-1.5-pro-latest"
|
||||
"gemini-1.5-pro-latest",
|
||||
"gemini-1.5-flash-latest"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
@ -985,6 +986,7 @@
|
|||
"chat-bison-001",
|
||||
"gemini-pro",
|
||||
"gemini-1.5-pro-latest",
|
||||
"gemini-1.5-flash-latest",
|
||||
"mistral-tiny",
|
||||
"mistral-small",
|
||||
"mistral-medium",
|
||||
|
|
|
|||
|
|
@ -454,6 +454,18 @@ const gemini15Pro: ModelPackage = {
|
|||
icon: "gemini.png",
|
||||
providerOptions: ["gemini", "freetrial"],
|
||||
};
|
||||
const gemini15Flash: ModelPackage = {
|
||||
title: "Gemini 1.5 Flash",
|
||||
description: "Fast and versatile multimodal model for scaling across diverse tasks",
|
||||
params: {
|
||||
title: "Gemini 1.5 Flash",
|
||||
model: "gemini-1.5-flash-latest",
|
||||
contextLength: 1_000_000,
|
||||
apiKey: "<API_KEY>",
|
||||
},
|
||||
icon: "gemini.png",
|
||||
providerOptions: ["gemini"],
|
||||
};
|
||||
|
||||
const deepseek: ModelPackage = {
|
||||
title: "DeepSeek-Coder",
|
||||
|
|
@ -660,6 +672,7 @@ export const MODEL_INFO: (ModelPackage | string)[] = [
|
|||
"Gemini",
|
||||
gemini15Pro,
|
||||
geminiPro,
|
||||
gemini15Flash,
|
||||
"Open Source",
|
||||
llama3Chat,
|
||||
deepseek,
|
||||
|
|
@ -863,7 +876,7 @@ export const PROVIDER_INFO: { [key: string]: ModelInfo } = {
|
|||
required: true,
|
||||
},
|
||||
],
|
||||
packages: [gemini15Pro, geminiPro],
|
||||
packages: [gemini15Pro, geminiPro, gemini15Flash],
|
||||
},
|
||||
mistral: {
|
||||
title: "Mistral API",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue