Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions packages/types/src/providers/xai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ export const xaiModels = {
cacheWritesPrice: 0.02,
cacheReadsPrice: 0.02,
description: "xAI's Grok Code Fast model with 256K context window",
includedTools: ["search_replace"],
excludedTools: ["apply_diff"],
},
"grok-4-1-fast-reasoning": {
maxTokens: 65_536,
Expand All @@ -30,6 +32,8 @@ export const xaiModels = {
cacheReadsPrice: 0.05,
description:
"xAI's Grok 4.1 Fast model with 2M context window, optimized for high-performance agentic tool calling with reasoning",
includedTools: ["search_replace"],
excludedTools: ["apply_diff"],
},
"grok-4-1-fast-non-reasoning": {
maxTokens: 65_536,
Expand All @@ -43,6 +47,8 @@ export const xaiModels = {
cacheReadsPrice: 0.05,
description:
"xAI's Grok 4.1 Fast model with 2M context window, optimized for high-performance agentic tool calling",
includedTools: ["search_replace"],
excludedTools: ["apply_diff"],
},
"grok-4-fast-reasoning": {
maxTokens: 65_536,
Expand All @@ -56,6 +62,8 @@ export const xaiModels = {
cacheReadsPrice: 0.05,
description:
"xAI's Grok 4 Fast model with 2M context window, optimized for high-performance agentic tool calling with reasoning",
includedTools: ["search_replace"],
excludedTools: ["apply_diff"],
},
"grok-4-fast-non-reasoning": {
maxTokens: 65_536,
Expand All @@ -69,6 +77,8 @@ export const xaiModels = {
cacheReadsPrice: 0.05,
description:
"xAI's Grok 4 Fast model with 2M context window, optimized for high-performance agentic tool calling",
includedTools: ["search_replace"],
excludedTools: ["apply_diff"],
},
"grok-4-0709": {
maxTokens: 8192,
Expand All @@ -81,6 +91,8 @@ export const xaiModels = {
cacheWritesPrice: 0.75,
cacheReadsPrice: 0.75,
description: "xAI's Grok-4 model with 256K context window",
includedTools: ["search_replace"],
excludedTools: ["apply_diff"],
},
"grok-3-mini": {
maxTokens: 8192,
Expand All @@ -95,6 +107,8 @@ export const xaiModels = {
description: "xAI's Grok-3 mini model with 128K context window",
supportsReasoningEffort: ["low", "high"],
reasoningEffort: "low",
includedTools: ["search_replace"],
excludedTools: ["apply_diff"],
},
"grok-3": {
maxTokens: 8192,
Expand All @@ -107,5 +121,7 @@ export const xaiModels = {
cacheWritesPrice: 0.75,
cacheReadsPrice: 0.75,
description: "xAI's Grok-3 model with 128K context window",
includedTools: ["search_replace"],
excludedTools: ["apply_diff"],
},
} as const satisfies Record<string, ModelInfo>
Loading