Merge pull request #5932 from fengzai6/update-google-models

Update google models to add gemini-2.0
This commit is contained in:
Dogtiti 2024-12-21 00:43:02 +08:00 committed by GitHub
commit eceec092cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -317,13 +317,14 @@ const openaiModels = [
]; ];
const googleModels = [ const googleModels = [
"gemini-1.0-pro", "gemini-1.0-pro", // Deprecated on 2/15/2025
"gemini-1.5-pro-latest", "gemini-1.5-pro-latest",
"gemini-1.5-flash-latest", "gemini-1.5-flash-latest",
"gemini-1.5-flash-8b-latest",
"gemini-exp-1114", "gemini-exp-1114",
"gemini-exp-1121", "gemini-exp-1121",
"learnlm-1.5-pro-experimental", "learnlm-1.5-pro-experimental",
"gemini-pro-vision", "gemini-2.0-flash-exp",
]; ];
const anthropicModels = [ const anthropicModels = [

View File

@ -261,6 +261,7 @@ export function isVisionModel(model: string) {
"claude-3", "claude-3",
"gemini-1.5", "gemini-1.5",
"gemini-exp", "gemini-exp",
"gemini-2.0",
"learnlm", "learnlm",
"qwen-vl", "qwen-vl",
"qwen2-vl", "qwen2-vl",