From e49eb5cffa84643e92be1d20bb981d283aeecd2e Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 23 Sep 2025 17:40:40 -0700 Subject: [PATCH] Revert "fix: revert llm info changes (see 7937)" This reverts commit 93a2668b1711a4dba0c923d6f63e9f7ede6a1784. --- packages/llm-info/src/providers/xAI.ts | 54 ++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/packages/llm-info/src/providers/xAI.ts b/packages/llm-info/src/providers/xAI.ts index 96a51c9be..17ec83fa7 100644 --- a/packages/llm-info/src/providers/xAI.ts +++ b/packages/llm-info/src/providers/xAI.ts @@ -7,6 +7,60 @@ export const xAI: ModelProvider = { displayName: "Grok Beta", contextLength: 128000, recommendedFor: ["chat"], + regex: /grok-beta/, + }, + { + model: "grok-2", + displayName: "Grok 2", + contextLength: 131072, + recommendedFor: ["chat"], + regex: /grok-2/, + }, + { + model: "grok-3-mini", + displayName: "Grok 3 Mini", + contextLength: 131072, + maxCompletionTokens: 8000, + recommendedFor: ["chat"], + regex: /grok-3-mini/, + }, + { + model: "grok-3", + displayName: "Grok 3", + contextLength: 131072, + recommendedFor: ["chat"], + regex: /grok-3/, + }, + { + model: "grok-4-fast-reasoning", + displayName: "Grok 4 Fast Reasoning", + contextLength: 2000000, + maxCompletionTokens: 30000, + recommendedFor: ["chat"], + regex: /grok-4-fast-reasoning/, + }, + { + model: "grok-4-fast-non-reasoning", + displayName: "Grok 4 Fast Non-Reasoning", + contextLength: 2000000, + maxCompletionTokens: 30000, + recommendedFor: ["chat"], + regex: /grok-4-fast-non-reasoning/, + }, + { + model: "grok-4", + displayName: "Grok 4 Fast", + contextLength: 256000, + recommendedFor: ["chat"], + regex: /grok-4/, + }, + { + model: "grok-code-fast-1", + displayName: "Grok Code Fast 1", + contextLength: 256000, + maxCompletionTokens: 10000, + recommendedFor: ["chat"], + regex: /grok-code-fast-1/, }, ], id: "xAI",