Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

Add context windows for grok-4 models (#3043)

Tomas294de41e6c44
diff --git a/letta/schemas/providers/xai.py b/letta/schemas/providers/xai.py
index c199c5169..4e9bfd577 100644
--- a/letta/schemas/providers/xai.py
+++ b/letta/schemas/providers/xai.py
@@ -16,6 +16,9 @@ MODEL_CONTEXT_WINDOWS = {
"grok-3-mini": 131_072,
"grok-3-mini-fast": 131_072,
"grok-4-0709": 256_000,
+ "grok-4-fast-reasoning": 2_000_000,
+ "grok-4-fast-non-reasoning": 2_000_000,
+ "grok-code-fast-1": 256_000
}