Browse Source

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

Update google models to add gemini-2.0
Dogtiti 11 months ago
parent
commit
eceec092cf
2 changed files with 4 additions and 2 deletions
  1. 3 2
      app/constant.ts
  2. 1 0
      app/utils.ts

+ 3 - 2
app/constant.ts

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

+ 1 - 0
app/utils.ts

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