Skip to content
This repository was archived by the owner on Apr 30, 2026. It is now read-only.

Commit c40adaf

Browse files
authored
chore: add latest google models (#2191)
1 parent 995b465 commit c40adaf

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

.changeset/purple-icons-buy.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@llamaindex/google": patch
3+
---
4+
5+
Add latest google models to lib

packages/providers/google/src/constants.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ export enum GEMINI_MODEL {
2727
GEMINI_2_5_PRO_PREVIEW = "gemini-2.5-pro-preview-03-25",
2828
GEMINI_2_5_PRO_PREVIEW_LATEST = "gemini-2.5-pro-preview-06-05",
2929
GEMINI_2_5_FLASH_PREVIEW = "gemini-2.5-flash-preview-05-20",
30+
GEMINI_2_5_PRO_LATEST = "gemini-2.5-pro",
31+
GEMINI_2_5_FLASH_LATEST = "gemini-2.5-flash",
32+
GEMINI_2_5_FLASH_LITE = "gemini-2.5-flash-lite",
3033
}
3134

3235
export const GEMINI_MODEL_INFO_MAP: Record<
@@ -54,6 +57,9 @@ export const GEMINI_MODEL_INFO_MAP: Record<
5457
[GEMINI_MODEL.GEMINI_2_5_PRO_PREVIEW]: { contextWindow: 10 ** 6 },
5558
[GEMINI_MODEL.GEMINI_2_5_PRO_PREVIEW_LATEST]: { contextWindow: 10 ** 6 },
5659
[GEMINI_MODEL.GEMINI_2_5_FLASH_PREVIEW]: { contextWindow: 10 ** 6 },
60+
[GEMINI_MODEL.GEMINI_2_5_PRO_LATEST]: { contextWindow: 10 ** 6 },
61+
[GEMINI_MODEL.GEMINI_2_5_FLASH_LATEST]: { contextWindow: 10 ** 6 },
62+
[GEMINI_MODEL.GEMINI_2_5_FLASH_LITE]: { contextWindow: 10 ** 6 },
5763
};
5864

5965
export const SUPPORT_TOOL_CALL_MODELS: GEMINI_MODEL[] = [
@@ -73,6 +79,9 @@ export const SUPPORT_TOOL_CALL_MODELS: GEMINI_MODEL[] = [
7379
GEMINI_MODEL.GEMINI_2_5_PRO_PREVIEW,
7480
GEMINI_MODEL.GEMINI_2_5_PRO_PREVIEW_LATEST,
7581
GEMINI_MODEL.GEMINI_2_5_FLASH_PREVIEW,
82+
GEMINI_MODEL.GEMINI_2_5_PRO_LATEST,
83+
GEMINI_MODEL.GEMINI_2_5_FLASH_LATEST,
84+
GEMINI_MODEL.GEMINI_2_5_FLASH_LITE,
7685
];
7786

7887
export const DEFAULT_GEMINI_PARAMS = {

0 commit comments

Comments
 (0)