mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 08:47:44 +00:00
Initiate the GeminiClient with a config
Also address the open readability improvement comments from #104.
This commit is contained in:
@@ -78,10 +78,7 @@ export class BackgroundTerminalAnalyzer {
|
||||
) {
|
||||
try {
|
||||
// Initialize Gemini client using config
|
||||
this.geminiClient = new GeminiClient(
|
||||
config.getApiKey(),
|
||||
config.getModel(),
|
||||
);
|
||||
this.geminiClient = new GeminiClient(config);
|
||||
} catch (error) {
|
||||
console.error(
|
||||
'Failed to initialize GeminiClient in BackgroundTerminalAnalyzer:',
|
||||
|
||||
Reference in New Issue
Block a user