fix(onboard): align xAI default model to grok-4

This commit is contained in:
George Pickett
2026-02-05 15:04:20 -08:00
parent db31c0ccca
commit 155dfa93e5
7 changed files with 71 additions and 9 deletions

View File

@@ -36,7 +36,7 @@ export async function applyAuthChoiceXAI(
let hasCredential = false;
const optsKey = params.opts?.xaiApiKey?.trim();
if (optsKey) {
await setXaiApiKey(normalizeApiKeyInput(optsKey), params.agentDir);
setXaiApiKey(normalizeApiKeyInput(optsKey), params.agentDir);
hasCredential = true;
}
@@ -48,7 +48,7 @@ export async function applyAuthChoiceXAI(
initialValue: true,
});
if (useExisting) {
await setXaiApiKey(envKey.apiKey, params.agentDir);
setXaiApiKey(envKey.apiKey, params.agentDir);
hasCredential = true;
}
}
@@ -59,7 +59,7 @@ export async function applyAuthChoiceXAI(
message: "Enter xAI API key",
validate: validateApiKeyInput,
});
await setXaiApiKey(normalizeApiKeyInput(String(key)), params.agentDir);
setXaiApiKey(normalizeApiKeyInput(String(key)), params.agentDir);
}
nextConfig = applyAuthProfileConfig(nextConfig, {