mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-28 05:55:17 -07:00
Handle empty string
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
@@ -180,7 +180,7 @@ export async function createContentGenerator(
|
|||||||
apiKey: config.apiKey === '' ? undefined : config.apiKey,
|
apiKey: config.apiKey === '' ? undefined : config.apiKey,
|
||||||
vertexai: config.vertexai,
|
vertexai: config.vertexai,
|
||||||
httpOptions,
|
httpOptions,
|
||||||
...(apiVersionEnv !== undefined && { apiVersion: apiVersionEnv }),
|
...(apiVersionEnv && { apiVersion: apiVersionEnv }),
|
||||||
});
|
});
|
||||||
return new LoggingContentGenerator(googleGenAI.models, gcConfig);
|
return new LoggingContentGenerator(googleGenAI.models, gcConfig);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user