Skip to content

Commit 389664d

Browse files
committed
fix: deprecate gemini 1.5
1 parent de51b78 commit 389664d

File tree

6 files changed

+5
-89
lines changed

6 files changed

+5
-89
lines changed

core/context/retrieval/repoMapRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const SUPPORTED_MODEL_TITLE_FAMILIES = [
88
"claude-3",
99
"llama3.1",
1010
"llama3.2",
11-
"gemini-1.5",
11+
"gemini-2.5",
1212
"gpt-4",
1313
];
1414

core/llm/toolSupport.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ describe("PROVIDER_TOOL_SUPPORT", () => {
4141

4242
it("should return true for Gemini models", () => {
4343
expect(supportsFn("ownerSlug/packageSlug/gemini/gemini-pro")).toBe(true);
44-
expect(supportsFn("ownerSlug/packageSlug/gemini/gemini-1.5-pro")).toBe(
44+
expect(supportsFn("ownerSlug/packageSlug/gemini/gemini-2.5-pro")).toBe(
4545
true,
4646
);
4747
});
@@ -139,7 +139,6 @@ describe("PROVIDER_TOOL_SUPPORT", () => {
139139

140140
it("should return true for all Gemini models", () => {
141141
expect(supportsFn("gemini-pro")).toBe(true);
142-
expect(supportsFn("gemini-1.5-pro")).toBe(true);
143142
expect(supportsFn("gemini-ultra")).toBe(true);
144143
});
145144

@@ -150,7 +149,7 @@ describe("PROVIDER_TOOL_SUPPORT", () => {
150149

151150
it("should handle case insensitivity", () => {
152151
expect(supportsFn("GEMINI-pro")).toBe(true);
153-
expect(supportsFn("Gemini-1.5-Pro")).toBe(true);
152+
expect(supportsFn("Gemini-2.5-Pro")).toBe(true);
154153
});
155154
});
156155

extensions/vscode/config_schema.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -968,11 +968,6 @@
968968
"enum": [
969969
"chat-bison-001",
970970
"gemini-pro",
971-
"gemini-1.5-pro-latest",
972-
"gemini-1.5-pro",
973-
"gemini-1.5-flash-latest",
974-
"gemini-1.5-flash",
975-
"gemini-1.5-flash-8b",
976971
"gemini-2.0-flash-exp",
977972
"gemini-2.0-flash",
978973
"gemini-2.0-flash-thinking-exp-01-21",
@@ -1624,12 +1619,7 @@
16241619
"command-r",
16251620
"command-r-plus",
16261621
"chat-bison-001",
1627-
"gemini-pro",
1628-
"gemini-1.5-pro-latest",
1629-
"gemini-1.5-pro",
16301622
"gemini-2.5-pro",
1631-
"gemini-1.5-flash-latest",
1632-
"gemini-1.5-flash",
16331623
"mistral-tiny",
16341624
"mistral-small",
16351625
"mistral-medium",

gui/src/pages/AddNewModel/configs/models.ts

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -856,46 +856,6 @@ export const models: { [key: string]: ModelPackage } = {
856856
icon: "mistral.png",
857857
isOpenSource: true,
858858
},
859-
geminiPro: {
860-
title: "Gemini Pro",
861-
description: "A highly capable model created by Google DeepMind",
862-
params: {
863-
title: "Gemini Pro",
864-
model: "gemini-pro",
865-
contextLength: 32_000,
866-
apiKey: "<API_KEY>",
867-
},
868-
icon: "gemini.png",
869-
providerOptions: ["gemini"],
870-
isOpenSource: false,
871-
},
872-
gemini15Pro: {
873-
title: "Gemini 1.5 Pro",
874-
description: "A newer Gemini model with 1M token context length",
875-
params: {
876-
title: "Gemini 1.5 Pro",
877-
model: "gemini-1.5-pro-latest",
878-
contextLength: 2_000_000,
879-
apiKey: "<API_KEY>",
880-
},
881-
icon: "gemini.png",
882-
providerOptions: ["gemini", "askSage"],
883-
isOpenSource: false,
884-
},
885-
gemini15Flash: {
886-
title: "Gemini 1.5 Flash",
887-
description:
888-
"Fast and versatile multimodal model for scaling across diverse tasks",
889-
params: {
890-
title: "Gemini 1.5 Flash",
891-
model: "gemini-1.5-flash-latest",
892-
contextLength: 1_000_000,
893-
apiKey: "<API_KEY>",
894-
},
895-
icon: "gemini.png",
896-
providerOptions: ["gemini"],
897-
isOpenSource: false,
898-
},
899859
gemini20Flash: {
900860
title: "Gemini 2.0 Flash",
901861
description:
@@ -1358,31 +1318,6 @@ export const models: { [key: string]: ModelPackage } = {
13581318
providerOptions: ["watsonx"],
13591319
isOpenSource: false,
13601320
},
1361-
VertexGemini15Pro: {
1362-
title: "Gemini 1.5 Pro",
1363-
description: "A newer Gemini model with 1M token context length",
1364-
params: {
1365-
title: "Gemini 1.5 Pro",
1366-
model: "gemini-1.5-pro-002",
1367-
contextLength: 2_097_152,
1368-
},
1369-
icon: "gemini.png",
1370-
providerOptions: ["vertexai"],
1371-
isOpenSource: false,
1372-
},
1373-
VertexGemini15Flash: {
1374-
title: "Gemini 1.5 Flash",
1375-
description:
1376-
"Fast and versatile multimodal model for scaling across diverse tasks",
1377-
params: {
1378-
title: "Gemini 1.5 Flash",
1379-
model: "gemini-1.5-flash-002",
1380-
contextLength: 1_048_576,
1381-
},
1382-
icon: "gemini.png",
1383-
providerOptions: ["vertexai"],
1384-
isOpenSource: false,
1385-
},
13861321
vertexMistralLarge: {
13871322
title: "Mistral Large",
13881323
description:

gui/src/pages/AddNewModel/configs/providers.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -598,9 +598,6 @@ Select the \`GPT-4o\` model below to complete your provider configuration, but n
598598
models.gemini20FlashLite,
599599
models.gemini20FlashImageGeneration,
600600
models.gemini25ProExp,
601-
models.gemini15Pro,
602-
models.geminiPro,
603-
models.gemini15Flash,
604601
],
605602
apiKeyUrl: "https://aistudio.google.com/app/apikey",
606603
},
@@ -925,11 +922,7 @@ To get started, [register](https://dataplatform.cloud.ibm.com/registration/stepo
925922
longDescription:
926923
"Use the supported Vertex AI models - see [here](https://cloud.google.com/docs/authentication/provide-credentials-adc) to authenticate",
927924
icon: "vertexai.png",
928-
packages: [
929-
models.VertexGemini15Pro,
930-
models.VertexGemini15Flash,
931-
models.mistralLarge,
932-
],
925+
packages: [models.mistralLarge],
933926
collectInputFor: [
934927
{
935928
inputType: "project",
@@ -1000,7 +993,6 @@ To get started, [register](https://dataplatform.cloud.ibm.com/registration/stepo
1000993
models.asksagegroq70b,
1001994
models.mistralLarge,
1002995
models.llama370bChat,
1003-
models.gemini15Pro,
1004996
],
1005997
apiKeyUrl: "https://chat.asksage.ai/",
1006998
},

packages/openai-adapters/src/test/main.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const TESTS: Omit<ModelConfig & { options?: TestConfigOptions }, "name">[] = [
7979
},
8080
{
8181
provider: "gemini",
82-
model: "gemini-1.5-flash-latest",
82+
model: "gemini-2.5-pro",
8383
apiKey: process.env.GEMINI_API_KEY!,
8484
roles: ["chat"],
8585
options: {

0 commit comments

Comments
 (0)