Initiate the GeminiClient with a config

Also address the open readability improvement comments from #104.
This commit is contained in:
Jaana Dogan
2025-04-22 11:01:09 -07:00
parent 3db2a796ec
commit 8e0fb9ee2f
5 changed files with 43 additions and 105 deletions

View File

@@ -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:',