mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00:00
More version simplifiction. (#810)
This commit is contained in:
committed by
GitHub
parent
63757d6a7a
commit
680f4cdd61
@@ -175,7 +175,7 @@ export async function loadCliConfig(
|
||||
debugMode,
|
||||
);
|
||||
|
||||
const userAgent = await createUserAgent();
|
||||
const userAgent = `GeminiCLI/${getCliVersion()}/(${process.platform}; ${process.arch})`;
|
||||
const apiKeyForServer = geminiApiKey || googleApiKey || '';
|
||||
const useVertexAI = hasGeminiApiKey ? false : undefined;
|
||||
|
||||
@@ -193,8 +193,6 @@ export async function loadCliConfig(
|
||||
originalModel = checkResult.originalModelIfSwitched;
|
||||
modelToUse = checkResult.effectiveModel;
|
||||
}
|
||||
} else {
|
||||
// logger.debug('API key not available during config load. Skipping model availability check.');
|
||||
}
|
||||
|
||||
const configParams: ConfigParameters = {
|
||||
@@ -237,8 +235,3 @@ export async function loadCliConfig(
|
||||
finalModel: modelToUse,
|
||||
};
|
||||
}
|
||||
|
||||
async function createUserAgent(): Promise<string> {
|
||||
const cliVersion = await getCliVersion();
|
||||
return `GeminiCLI/${cliVersion} Node.js/${process.version} (${process.platform}; ${process.arch})`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user