Skip to content

Commit 2823e6c

Browse files
authored
Update list of models and set new defualt for xAI (RooCodeInc#2777)
1 parent cef9af1 commit 2823e6c

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

src/shared/api.ts

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1319,35 +1319,8 @@ export const askSageModels = {
13191319
// X AI
13201320
// https://docs.x.ai/docs/api-reference
13211321
export type XAIModelId = keyof typeof xaiModels
1322-
export const xaiDefaultModelId: XAIModelId = "grok-2-latest"
1322+
export const xaiDefaultModelId: XAIModelId = "grok-3-beta"
13231323
export const xaiModels = {
1324-
"grok-2-latest": {
1325-
maxTokens: 8192,
1326-
contextWindow: 131072,
1327-
supportsImages: false,
1328-
supportsPromptCache: false,
1329-
inputPrice: 2.0,
1330-
outputPrice: 10.0,
1331-
description: "X AI's Grok-2 model - latest version with 131K context window",
1332-
},
1333-
"grok-2": {
1334-
maxTokens: 8192,
1335-
contextWindow: 131072,
1336-
supportsImages: false,
1337-
supportsPromptCache: false,
1338-
inputPrice: 2.0,
1339-
outputPrice: 10.0,
1340-
description: "X AI's Grok-2 model with 131K context window",
1341-
},
1342-
"grok-2-1212": {
1343-
maxTokens: 8192,
1344-
contextWindow: 131072,
1345-
supportsImages: false,
1346-
supportsPromptCache: false,
1347-
inputPrice: 2.0,
1348-
outputPrice: 10.0,
1349-
description: "X AI's Grok-2 model (version 1212) with 131K context window",
1350-
},
13511324
"grok-3-beta": {
13521325
maxTokens: 8192,
13531326
contextWindow: 131072,
@@ -1384,6 +1357,33 @@ export const xaiModels = {
13841357
outputPrice: 4.0,
13851358
description: "X AI's Grok-3 mini fast beta model with 131K context window",
13861359
},
1360+
"grok-2-latest": {
1361+
maxTokens: 8192,
1362+
contextWindow: 131072,
1363+
supportsImages: false,
1364+
supportsPromptCache: false,
1365+
inputPrice: 2.0,
1366+
outputPrice: 10.0,
1367+
description: "X AI's Grok-2 model - latest version with 131K context window",
1368+
},
1369+
"grok-2": {
1370+
maxTokens: 8192,
1371+
contextWindow: 131072,
1372+
supportsImages: false,
1373+
supportsPromptCache: false,
1374+
inputPrice: 2.0,
1375+
outputPrice: 10.0,
1376+
description: "X AI's Grok-2 model with 131K context window",
1377+
},
1378+
"grok-2-1212": {
1379+
maxTokens: 8192,
1380+
contextWindow: 131072,
1381+
supportsImages: false,
1382+
supportsPromptCache: false,
1383+
inputPrice: 2.0,
1384+
outputPrice: 10.0,
1385+
description: "X AI's Grok-2 model (version 1212) with 131K context window",
1386+
},
13871387
"grok-2-vision-latest": {
13881388
maxTokens: 8192,
13891389
contextWindow: 32768,

0 commit comments

Comments
 (0)