mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00:00
Simplify user agent handling. (#828)
This commit is contained in:
committed by
GitHub
parent
87474e52d7
commit
0613062fc8
@@ -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) {
|
||||
|
||||
@@ -182,7 +182,6 @@ describe('App UI', () => {
|
||||
contentGeneratorConfig: {
|
||||
apiKey: 'test-key',
|
||||
model: 'test-model',
|
||||
userAgent: 'test-agent',
|
||||
},
|
||||
embeddingModel: 'test-embedding-model',
|
||||
sandbox: false,
|
||||
|
||||
Reference in New Issue
Block a user