Simplify user agent handling. (#828)

This commit is contained in:
Tommaso Sciortino
2025-06-09 09:31:27 -07:00
committed by GitHub
parent 87474e52d7
commit 0613062fc8
6 changed files with 3 additions and 10 deletions

View File

@@ -18,7 +18,6 @@ import {
} from '@gemini-cli/core';
import { Settings } from './settings.js';
import { getEffectiveModel } from '../utils/modelCheck.js';
import { getCliVersion } from '../utils/version.js';
// Simple console logger for now - replace with actual logger if available
const logger = {
@@ -206,7 +205,6 @@ async function createContentGeneratorConfig(
model: argv.model || DEFAULT_GEMINI_MODEL,
apiKey: geminiApiKey || googleApiKey || '',
vertexai: hasGeminiApiKey ? false : undefined,
userAgent: `GeminiCLI/${getCliVersion()}/(${process.platform}; ${process.arch})`,
};
if (config.apiKey) {

View File

@@ -182,7 +182,6 @@ describe('App UI', () => {
contentGeneratorConfig: {
apiKey: 'test-key',
model: 'test-model',
userAgent: 'test-agent',
},
embeddingModel: 'test-embedding-model',
sandbox: false,