fix: set gemini default model for api-key auth (#489) - thanks @jonasjancarik

This commit is contained in:
Peter Steinberger
2026-01-09 02:49:42 +01:00
parent 302d51fd40
commit e1789ba9e5
6 changed files with 108 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ import {
DEFAULT_GATEWAY_DAEMON_RUNTIME,
isGatewayDaemonRuntime,
} from "./daemon-runtime.js";
import { applyGoogleGeminiModelDefault } from "./google-gemini-model-default.js";
import { healthCommand } from "./health.js";
import {
applyAuthProfileConfig,
@@ -133,6 +134,7 @@ export async function runNonInteractiveOnboarding(
provider: "google",
mode: "api_key",
});
nextConfig = applyGoogleGeminiModelDefault(nextConfig).next;
} else if (authChoice === "claude-cli") {
const store = ensureAuthProfileStore(undefined, {
allowKeychainPrompt: false,