mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-02 16:04:38 -07:00
feat: Add support for Vertex AI and Vertex express mode (#380)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user