Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions app/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ export function isVisionModel(model: string) {
"claude-3",
"gemini-1.5",
"gemini-exp",
"gemini-2.0",
"learnlm",
"qwen-vl",
"qwen2-vl",
Expand Down
Loading