diff options
| author | sasha-gitg <[email protected]> | 2025-05-16 08:06:43 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-16 08:06:43 -0700 |
| commit | 609757f911949b2c24241ab0e6b6f20a78a9e40a (patch) | |
| tree | 780b4ecc84abe365a77f683739ddb4750102bd7d /packages/server/src | |
| parent | 7d818b46bc6bfd5f065cd597fb2d92d999c526de (diff) | |
feat: Add support for Vertex AI and Vertex express mode (#380)
Diffstat (limited to 'packages/server/src')
| -rw-r--r-- | packages/server/src/core/client.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/server/src/core/client.ts b/packages/server/src/core/client.ts index 471944f4..51895802 100644 --- a/packages/server/src/core/client.ts +++ b/packages/server/src/core/client.ts @@ -35,8 +35,9 @@ export class GeminiClient { constructor(private config: Config) { const userAgent = config.getUserAgent(); + const apiKeyFromConfig = config.getApiKey(); this.client = new GoogleGenAI({ - apiKey: config.getApiKey(), + apiKey: apiKeyFromConfig === '' ? undefined : apiKeyFromConfig, httpOptions: { headers: { 'User-Agent': userAgent, |
