Skip to content

Commit

Permalink
support gemini-2.0-flash-exp...
Browse files Browse the repository at this point in the history
  • Loading branch information
dupl committed Dec 20, 2024
1 parent d64d190 commit 9192656
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
15 changes: 15 additions & 0 deletions app/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,21 @@ const googleModels = [
"gemini-exp-1121",
"learnlm-1.5-pro-experimental",
"gemini-pro-vision",
"gemini-1.5-flash",
"gemini-1.5-flash-002",
"gemini-1.5-flash-8b",
"gemini-1.5-flash-exp-0827",
"gemini-1.5-pro",
"gemini-1.5-pro-002",
"gemini-1.5-pro-exp-0827",
"gemini-2.0-flash-exp",
"gemini-exp-1206",
"gemini-ultra",
"text-embedding-004",
"aqa",
"gemma-2-2b-it",
"gemma-2-9b-it",
"gemma-2-27b-it",
];

const anthropicModels = [
Expand Down
3 changes: 3 additions & 0 deletions app/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,9 @@ export function isVisionModel(model: string) {
"qwen-vl",
"qwen2-vl",
"glm-4v",
"gemini-2.0",
"gemini-ultra",
"gemma-2",
];
const isGpt4Turbo =
model.includes("gpt-4-turbo") && !model.includes("preview");
Expand Down

0 comments on commit 9192656

Please sign in to comment.