Skip to content

Commit 126d583

Browse files
authored
feat(backend/blocks): add latest grok models (#11422)
This PR adds some of the latest grok models to the platform ``x-ai/grok-4-fast``, ``x-ai/grok-4.1-fast`` and ``ai/grok-code-fast-1`` #### 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 all of the latest grok models to make sure they work and they do! <img width="1089" height="714" alt="image" src="https://github.com/user-attachments/assets/0d1e3984-69e8-432b-982a-b04c16bc4f41" />
1 parent 643aea8 commit 126d583

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

autogpt_platform/backend/backend/blocks/llm.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ class LlmModel(str, Enum, metaclass=LlmModelMeta):
152152
META_LLAMA_4_SCOUT = "meta-llama/llama-4-scout"
153153
META_LLAMA_4_MAVERICK = "meta-llama/llama-4-maverick"
154154
GROK_4 = "x-ai/grok-4"
155+
GROK_4_FAST = "x-ai/grok-4-fast"
156+
GROK_4_1_FAST = "x-ai/grok-4.1-fast"
157+
GROK_CODE_FAST_1 = "x-ai/grok-code-fast-1"
155158
KIMI_K2 = "moonshotai/kimi-k2"
156159
QWEN3_235B_A22B_THINKING = "qwen/qwen3-235b-a22b-thinking-2507"
157160
QWEN3_CODER = "qwen/qwen3-coder"
@@ -277,6 +280,9 @@ def max_output_tokens(self) -> int | None:
277280
LlmModel.META_LLAMA_4_SCOUT: ModelMetadata("open_router", 131072, 131072),
278281
LlmModel.META_LLAMA_4_MAVERICK: ModelMetadata("open_router", 1048576, 1000000),
279282
LlmModel.GROK_4: ModelMetadata("open_router", 256000, 256000),
283+
LlmModel.GROK_4_FAST: ModelMetadata("open_router", 2000000, 30000),
284+
LlmModel.GROK_4_1_FAST: ModelMetadata("open_router", 2000000, 30000),
285+
LlmModel.GROK_CODE_FAST_1: ModelMetadata("open_router", 256000, 10000),
280286
LlmModel.KIMI_K2: ModelMetadata("open_router", 131000, 131000),
281287
LlmModel.QWEN3_235B_A22B_THINKING: ModelMetadata("open_router", 262144, 262144),
282288
LlmModel.QWEN3_CODER: ModelMetadata("open_router", 262144, 262144),

autogpt_platform/backend/backend/data/block_cost_config.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@
116116
LlmModel.LLAMA_API_LLAMA3_3_8B: 1,
117117
LlmModel.LLAMA_API_LLAMA3_3_70B: 1,
118118
LlmModel.GROK_4: 9,
119+
LlmModel.GROK_4_FAST: 1,
120+
LlmModel.GROK_4_1_FAST: 1,
121+
LlmModel.GROK_CODE_FAST_1: 1,
119122
LlmModel.KIMI_K2: 1,
120123
LlmModel.QWEN3_235B_A22B_THINKING: 1,
121124
LlmModel.QWEN3_CODER: 9,

0 commit comments

Comments
 (0)