From d5a408064fe54c9066bfcd87a46a558bf6672c41 Mon Sep 17 00:00:00 2001 From: Blake Ramsdell Date: Sun, 25 May 2025 16:02:11 -0700 Subject: [PATCH] Change GEMINI_API_KEY references to GOOGLE_API_KEY --- docs/workspaces.md | 2 +- src/main/llm/geminiLLM.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/workspaces.md b/docs/workspaces.md index 99e7830..cf988a5 100644 --- a/docs/workspaces.md +++ b/docs/workspaces.md @@ -29,7 +29,7 @@ tspark.json - in root of workspace "ANTHROPIC_API_KEY": "xxxxx" }, "gemini": { - "GEMINI_API_KEY": "xxxxx" + "GOOGLE_API_KEY": "xxxxx" }, "openai": { "OPENAI_API_KEY": "xxxxx" diff --git a/src/main/llm/geminiLLM.ts b/src/main/llm/geminiLLM.ts index dddef51..eb2e5f3 100644 --- a/src/main/llm/geminiLLM.ts +++ b/src/main/llm/geminiLLM.ts @@ -125,7 +125,7 @@ export class GeminiLLM implements ILLM { try { const apiKey = this.workspace.getProviderSettingsValue(LLMType.Gemini, 'GOOGLE_API_KEY')!; if (!apiKey) { - throw new Error('GEMINI_API_KEY is missing in the configuration. Please add it to your config.json file.'); + throw new Error('GOOGLE_API_KEY is missing in the configuration. Please add it to your config.json file.'); } this.genAI = new GoogleGenAI({ apiKey }); log.info('Gemini LLM initialized successfully');