diff options
| author | sasha-gitg <[email protected]> | 2025-05-27 10:00:07 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-27 10:00:07 -0700 |
| commit | 3511e84dc3ecdc121ca657e77859f302d514d271 (patch) | |
| tree | 0e3d810ea35d67c65911517144f32a4a532343aa /packages/cli/src | |
| parent | b3f52e215a98835b752bd3ba3ec08ae44e480eda (diff) | |
fix: default to Gemini API if GEMINI_API_KEY is set and when GOOGLE_GENAI_USE_VERTEXAI is set to True (#566)
Diffstat (limited to 'packages/cli/src')
| -rw-r--r-- | packages/cli/src/config/config.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/cli/src/config/config.ts b/packages/cli/src/config/config.ts index 783a1a88..740142f0 100644 --- a/packages/cli/src/config/config.ts +++ b/packages/cli/src/config/config.ts @@ -132,6 +132,7 @@ export async function loadCliConfig(settings: Settings): Promise<Config> { const userAgent = await createUserAgent(); const apiKeyForServer = geminiApiKey || googleApiKey || ''; + const useVertexAI = hasGeminiApiKey ? false : undefined; return createServerConfig( apiKeyForServer, @@ -149,6 +150,8 @@ export async function loadCliConfig(settings: Settings): Promise<Config> { userAgent, memoryContent, fileCount, + undefined, // alwaysSkipModificationConfirmation - not set by CLI args directly + useVertexAI, ); } |
