mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 08:47:44 +00: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