Skip to content

Commit e49eb5c

Browse files
committed
Revert "fix: revert llm info changes (see 7937)"
This reverts commit 93a2668.
1 parent 93a2668 commit e49eb5c

File tree

1 file changed

+54
-0
lines changed
  • packages/llm-info/src/providers

1 file changed

+54
-0
lines changed

packages/llm-info/src/providers/xAI.ts

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,60 @@ export const xAI: ModelProvider = {
77
displayName: "Grok Beta",
88
contextLength: 128000,
99
recommendedFor: ["chat"],
10+
regex: /grok-beta/,
11+
},
12+
{
13+
model: "grok-2",
14+
displayName: "Grok 2",
15+
contextLength: 131072,
16+
recommendedFor: ["chat"],
17+
regex: /grok-2/,
18+
},
19+
{
20+
model: "grok-3-mini",
21+
displayName: "Grok 3 Mini",
22+
contextLength: 131072,
23+
maxCompletionTokens: 8000,
24+
recommendedFor: ["chat"],
25+
regex: /grok-3-mini/,
26+
},
27+
{
28+
model: "grok-3",
29+
displayName: "Grok 3",
30+
contextLength: 131072,
31+
recommendedFor: ["chat"],
32+
regex: /grok-3/,
33+
},
34+
{
35+
model: "grok-4-fast-reasoning",
36+
displayName: "Grok 4 Fast Reasoning",
37+
contextLength: 2000000,
38+
maxCompletionTokens: 30000,
39+
recommendedFor: ["chat"],
40+
regex: /grok-4-fast-reasoning/,
41+
},
42+
{
43+
model: "grok-4-fast-non-reasoning",
44+
displayName: "Grok 4 Fast Non-Reasoning",
45+
contextLength: 2000000,
46+
maxCompletionTokens: 30000,
47+
recommendedFor: ["chat"],
48+
regex: /grok-4-fast-non-reasoning/,
49+
},
50+
{
51+
model: "grok-4",
52+
displayName: "Grok 4 Fast",
53+
contextLength: 256000,
54+
recommendedFor: ["chat"],
55+
regex: /grok-4/,
56+
},
57+
{
58+
model: "grok-code-fast-1",
59+
displayName: "Grok Code Fast 1",
60+
contextLength: 256000,
61+
maxCompletionTokens: 10000,
62+
recommendedFor: ["chat"],
63+
regex: /grok-code-fast-1/,
1064
},
1165
],
1266
id: "xAI",

0 commit comments

Comments
 (0)