Skip to content

Commit e90e617

Browse files
roomote-v0[bot]roomotedaniel-lxs
authored
feat: migrate xAI provider to use dedicated @ai-sdk/xai package (#11158)
Co-authored-by: Roo Code <roomote@roocode.com> Co-authored-by: daniel-lxs <ricciodaniel98@gmail.com>
1 parent 67fb150 commit e90e617

5 files changed

Lines changed: 777 additions & 582 deletions

File tree

packages/types/src/providers/xai.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ export const xaiModels = {
3030
cacheReadsPrice: 0.05,
3131
description:
3232
"xAI's Grok 4.1 Fast model with 2M context window, optimized for high-performance agentic tool calling with reasoning",
33+
supportsReasoningEffort: ["low", "high"],
34+
reasoningEffort: "low",
3335
includedTools: ["search_replace"],
3436
excludedTools: ["apply_diff"],
3537
},
@@ -58,6 +60,8 @@ export const xaiModels = {
5860
cacheReadsPrice: 0.05,
5961
description:
6062
"xAI's Grok 4 Fast model with 2M context window, optimized for high-performance agentic tool calling with reasoning",
63+
supportsReasoningEffort: ["low", "high"],
64+
reasoningEffort: "low",
6165
includedTools: ["search_replace"],
6266
excludedTools: ["apply_diff"],
6367
},

pnpm-lock.yaml

Lines changed: 29 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)