Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/workspaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/main/llm/geminiLLM.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down