Skip to content

Commit 2d6d9fc

Browse files
committed
Add support for Gemini 3 models
1 parent 3d27b6a commit 2d6d9fc

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

llm_toolkit/models.py

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,39 @@ class GeminiV2D5ProChat(GeminiV1D5Chat):
10441044
_vertex_ai_model = 'gemini-2.5-pro'
10451045

10461046

1047+
class GeminiV3Flash(GeminiModel):
1048+
"""Gemini 3 Flash."""
1049+
_max_output_tokens = 65536
1050+
context_window = 1048576
1051+
name = 'vertex_ai_gemini-3-flash'
1052+
_vertex_ai_model = 'gemini-3-flash-preview'
1053+
1054+
1055+
class GeminiV3Pro(GeminiModel):
1056+
"""Gemini 3 Pro."""
1057+
_max_output_tokens = 65536
1058+
context_window = 1048576
1059+
name = 'vertex_ai_gemini-3-pro'
1060+
_vertex_ai_model = 'gemini-3-pro-preview'
1061+
1062+
1063+
class GeminiV3FlashChat(GeminiV1D5Chat):
1064+
"""Gemini 3 Flash for chat session."""
1065+
_max_output_tokens = 65536
1066+
context_window = 1048576
1067+
name = 'vertex_ai_gemini-3-flash-chat'
1068+
_vertex_ai_model = 'gemini-3-flash-preview'
1069+
0
1070+
1071+
class GeminiV3ProChat(GeminiV1D5Chat):
1072+
"""Gemini 3 Pro for chat session."""
1073+
_max_output_tokens = 65536
1074+
context_window = 1048576
1075+
name = 'vertex_ai_gemini-3-pro-chat'
1076+
_vertex_ai_model = 'gemini-3-pro-preview'
1077+
1078+
1079+
10471080
class AIBinaryModel(GoogleModel):
10481081
"""A customized model hosted internally."""
10491082

0 commit comments

Comments
 (0)