Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update google models to add gemini-2.0 #5932

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions app/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Comment on lines +320 to 321
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Document the deprecation date in KnowledgeCutOffDate

The model "gemini-1.0-pro" is marked as deprecated, but its cutoff date should also be documented in the KnowledgeCutOffDate constant for consistency.

Add the following entry to the KnowledgeCutOffDate object:

export const KnowledgeCutOffDate: Record<string, string> = {
  default: "2021-09",
+ "gemini-1.0-pro": "2025-02",  // Based on deprecation date
  // ... other entries
};

Committable suggestion skipped: line range outside the PR's diff.

"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 = [
Expand Down