Support xAI for evals (#2703)

This commit is contained in:
Chris Estreich 2025-04-16 23:08:58 -07:00 committed by GitHub
parent 30c44ff14c
commit 0374436fac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 2 deletions

View file

@ -158,6 +158,7 @@ export function NewRun() {
.parse(JSON.parse(await file.text()))
const providerSettings = providerProfiles.apiConfigs[providerProfiles.currentApiConfigName] ?? {}
const {
apiProvider,
apiModelId,
@ -177,6 +178,7 @@ export function NewRun() {
case "gemini":
case "mistral":
case "openai-native":
case "xai":
case "vertex":
setValue("model", apiModelId ?? "")
break

View file

@ -9,7 +9,7 @@ export const rooCodeDefaults: RooCodeSettings = {
rateLimitSeconds: 0,
pinnedApiConfigs: {},
lastShownAnnouncementId: "apr-04-2025-boomerang",
lastShownAnnouncementId: "apr-16-2025-3-12",
autoApprovalEnabled: true,
alwaysAllowReadOnly: true,
@ -45,7 +45,7 @@ export const rooCodeDefaults: RooCodeSettings = {
maxReadFileLine: 500,
terminalOutputLineLimit: 500,
terminalShellIntegrationTimeout: 15_000,
terminalShellIntegrationTimeout: 30000,
terminalCommandDelay: 0,
terminalPowershellCounter: false,
terminalZshClearEolMark: true,

View file

@ -18,6 +18,7 @@ export const providerNames = [
"lmstudio",
"gemini",
"openai-native",
"xai",
"mistral",
"deepseek",
"unbound",
@ -360,6 +361,8 @@ export const providerSettingsSchema = z.object({
googleGeminiBaseUrl: z.string().optional(),
// OpenAI Native
openAiNativeApiKey: z.string().optional(),
// XAI
xaiApiKey: z.string().optional(),
// Mistral
mistralApiKey: z.string().optional(),
mistralCodestralUrl: z.string().optional(),
@ -433,6 +436,8 @@ const providerSettingsRecord: ProviderSettingsRecord = {
openAiUseAzure: undefined,
azureApiVersion: undefined,
openAiStreamingEnabled: undefined,
// xAI
xaiApiKey: undefined,
// Ollama
ollamaModelId: undefined,
ollamaBaseUrl: undefined,