Skip to content

Commit 07b5fe8

Browse files
authored
feat(platform/backend): add gemini-3-pro-preview (#11413)
This adds gemini-3-pro-preview from openrouter https://openrouter.ai/google/gemini-3-pro-preview #### For code changes: - [x] I have clearly listed my changes in the PR description - [x] I have made a test plan - [x] I have tested my changes according to the test plan: <!-- Put your test plan here: --> - [x] Test the gemini 3 model in the llm blocks and it works
1 parent 746dbba commit 07b5fe8

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

autogpt_platform/backend/backend/blocks/llm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ class LlmModel(str, Enum, metaclass=LlmModelMeta):
129129
OPENAI_GPT_OSS_120B = "openai/gpt-oss-120b"
130130
OPENAI_GPT_OSS_20B = "openai/gpt-oss-20b"
131131
GEMINI_2_5_PRO = "google/gemini-2.5-pro-preview-03-25"
132+
GEMINI_3_PRO_PREVIEW = "google/gemini-3-pro-preview"
132133
GEMINI_2_5_FLASH = "google/gemini-2.5-flash"
133134
GEMINI_2_0_FLASH = "google/gemini-2.0-flash-001"
134135
GEMINI_2_5_FLASH_LITE_PREVIEW = "google/gemini-2.5-flash-lite-preview-06-17"
@@ -241,6 +242,7 @@ def max_output_tokens(self) -> int | None:
241242
LlmModel.OLLAMA_DOLPHIN: ModelMetadata("ollama", 32768, None),
242243
# https://openrouter.ai/models
243244
LlmModel.GEMINI_2_5_PRO: ModelMetadata("open_router", 1050000, 8192),
245+
LlmModel.GEMINI_3_PRO_PREVIEW: ModelMetadata("open_router", 1048576, 65535),
244246
LlmModel.GEMINI_2_5_FLASH: ModelMetadata("open_router", 1048576, 65535),
245247
LlmModel.GEMINI_2_0_FLASH: ModelMetadata("open_router", 1048576, 8192),
246248
LlmModel.GEMINI_2_5_FLASH_LITE_PREVIEW: ModelMetadata(

autogpt_platform/backend/backend/data/block_cost_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
LlmModel.OPENAI_GPT_OSS_120B: 1,
9393
LlmModel.OPENAI_GPT_OSS_20B: 1,
9494
LlmModel.GEMINI_2_5_PRO: 4,
95+
LlmModel.GEMINI_3_PRO_PREVIEW: 5,
9596
LlmModel.MISTRAL_NEMO: 1,
9697
LlmModel.COHERE_COMMAND_R_08_2024: 1,
9798
LlmModel.COHERE_COMMAND_R_PLUS_08_2024: 3,

0 commit comments

Comments
 (0)