Skip to content

Commit 78aaf7c

Browse files
committed
Added support for Grok Code Fast to the xAI provider
1 parent 5ac5440 commit 78aaf7c

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.changeset/tough-spiders-yawn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"kilo-code": patch
3+
---
4+
5+
Added support for Grok Code Fast to the xAI provider

packages/types/src/providers/xai.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ export type XAIModelId = keyof typeof xaiModels
66
export const xaiDefaultModelId: XAIModelId = "grok-4"
77

88
export const xaiModels = {
9+
"grok-code-fast-1": {
10+
maxTokens: 16_384,
11+
contextWindow: 262_144,
12+
supportsImages: false,
13+
supportsPromptCache: true,
14+
inputPrice: 0.2,
15+
outputPrice: 1.5,
16+
cacheWritesPrice: 0.02,
17+
cacheReadsPrice: 0.02,
18+
description: "xAI's Grok Code Fast model with 256K context window",
19+
},
920
"grok-4": {
1021
maxTokens: 8192,
1122
contextWindow: 256000,

0 commit comments

Comments
 (0)