mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-12 23:01:21 +00:00
Support xAI for evals (#2703)
This commit is contained in:
parent
30c44ff14c
commit
0374436fac
3 changed files with 9 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue