From cfdf8b663936ff8240a40833b3e3142772ab5904 Mon Sep 17 00:00:00 2001 From: cbeatty8 Date: Sun, 29 Mar 2026 02:34:59 +0000 Subject: [PATCH] fix: rename gemini provider from 'geminiai' to 'google' to match backend Fixes #271 The backend's llm_provider table uses 'google' for Gemini provider, but the CLI was sending 'geminiai'. This caused init to fail with: 'Requested providers {geminiai} do not match any stored providers.' Changes: - Rename provider key from 'geminiai' to 'google' in AI_PROVIDERS_CONFIG - Update AiProviders type to use 'google' instead of 'geminiai' - cliOptionValue now sends 'google' to match backend expectations --- src/lib/config/simulator.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/config/simulator.ts b/src/lib/config/simulator.ts index 6a6718e..12ade54 100644 --- a/src/lib/config/simulator.ts +++ b/src/lib/config/simulator.ts @@ -23,7 +23,7 @@ export type RunningPlatform = (typeof AVAILABLE_PLATFORMS)[number]; export const STARTING_TIMEOUT_WAIT_CYLCE = 2000; export const STARTING_TIMEOUT_ATTEMPTS = 120; -export type AiProviders = "ollama" | "openai" | "heuristai" | "geminiai" | "xai"; +export type AiProviders = "ollama" | "openai" | "heuristai" | "google" | "xai"; export type AiProvidersEnvVars = "ollama" | "OPENAIKEY" | "HEURISTAIAPIKEY" | "GEMINI_API_KEY" | "XAI_API_KEY"; export type AiProvidersConfigType = { [key in AiProviders]: {name: string; hint: string; envVar?: AiProvidersEnvVars; cliOptionValue: string}; @@ -47,11 +47,11 @@ export const AI_PROVIDERS_CONFIG: AiProvidersConfigType = { envVar: "HEURISTAIAPIKEY", cliOptionValue: "heuristai", }, - geminiai: { + google: { name: "Gemini", hint: '(You will need to provide an API key.)', envVar: "GEMINI_API_KEY", - cliOptionValue: "geminiai", + cliOptionValue: "google", }, xai: { name: "XAI",