@@ -7,6 +7,60 @@ export const xAI: ModelProvider = {
77 displayName : "Grok Beta" ,
88 contextLength : 128000 ,
99 recommendedFor : [ "chat" ] ,
10+ regex : / g r o k - b e t a / ,
11+ } ,
12+ {
13+ model : "grok-2" ,
14+ displayName : "Grok 2" ,
15+ contextLength : 131072 ,
16+ recommendedFor : [ "chat" ] ,
17+ regex : / g r o k - 2 / ,
18+ } ,
19+ {
20+ model : "grok-3-mini" ,
21+ displayName : "Grok 3 Mini" ,
22+ contextLength : 131072 ,
23+ maxCompletionTokens : 8000 ,
24+ recommendedFor : [ "chat" ] ,
25+ regex : / g r o k - 3 - m i n i / ,
26+ } ,
27+ {
28+ model : "grok-3" ,
29+ displayName : "Grok 3" ,
30+ contextLength : 131072 ,
31+ recommendedFor : [ "chat" ] ,
32+ regex : / g r o k - 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 : / g r o k - 4 - f a s t - r e a s o n i n g / ,
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 : / g r o k - 4 - f a s t - n o n - r e a s o n i n g / ,
49+ } ,
50+ {
51+ model : "grok-4" ,
52+ displayName : "Grok 4 Fast" ,
53+ contextLength : 256000 ,
54+ recommendedFor : [ "chat" ] ,
55+ regex : / g r o k - 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 : / g r o k - c o d e - f a s t - 1 / ,
1064 } ,
1165 ] ,
1266 id : "xAI" ,
0 commit comments