Skip to content

Commit 0374436

Browse files
authored
Support xAI for evals (#2703)
1 parent 30c44ff commit 0374436

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

evals/apps/web/src/app/runs/new/new-run.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ export function NewRun() {
158158
.parse(JSON.parse(await file.text()))
159159

160160
const providerSettings = providerProfiles.apiConfigs[providerProfiles.currentApiConfigName] ?? {}
161+
161162
const {
162163
apiProvider,
163164
apiModelId,
@@ -177,6 +178,7 @@ export function NewRun() {
177178
case "gemini":
178179
case "mistral":
179180
case "openai-native":
181+
case "xai":
180182
case "vertex":
181183
setValue("model", apiModelId ?? "")
182184
break

evals/packages/types/src/roo-code-defaults.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const rooCodeDefaults: RooCodeSettings = {
99
rateLimitSeconds: 0,
1010

1111
pinnedApiConfigs: {},
12-
lastShownAnnouncementId: "apr-04-2025-boomerang",
12+
lastShownAnnouncementId: "apr-16-2025-3-12",
1313

1414
autoApprovalEnabled: true,
1515
alwaysAllowReadOnly: true,
@@ -45,7 +45,7 @@ export const rooCodeDefaults: RooCodeSettings = {
4545
maxReadFileLine: 500,
4646

4747
terminalOutputLineLimit: 500,
48-
terminalShellIntegrationTimeout: 15_000,
48+
terminalShellIntegrationTimeout: 30000,
4949
terminalCommandDelay: 0,
5050
terminalPowershellCounter: false,
5151
terminalZshClearEolMark: true,

evals/packages/types/src/roo-code.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export const providerNames = [
1818
"lmstudio",
1919
"gemini",
2020
"openai-native",
21+
"xai",
2122
"mistral",
2223
"deepseek",
2324
"unbound",
@@ -360,6 +361,8 @@ export const providerSettingsSchema = z.object({
360361
googleGeminiBaseUrl: z.string().optional(),
361362
// OpenAI Native
362363
openAiNativeApiKey: z.string().optional(),
364+
// XAI
365+
xaiApiKey: z.string().optional(),
363366
// Mistral
364367
mistralApiKey: z.string().optional(),
365368
mistralCodestralUrl: z.string().optional(),
@@ -433,6 +436,8 @@ const providerSettingsRecord: ProviderSettingsRecord = {
433436
openAiUseAzure: undefined,
434437
azureApiVersion: undefined,
435438
openAiStreamingEnabled: undefined,
439+
// xAI
440+
xaiApiKey: undefined,
436441
// Ollama
437442
ollamaModelId: undefined,
438443
ollamaBaseUrl: undefined,

0 commit comments

Comments
 (0)