From d1110445e6b7a8a56bb3924aac7b14eafbefa351 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 26 Aug 2025 12:03:42 -0500 Subject: [PATCH] Allow apiKey to be empty --- src/components/ai/AISettingsDialog.tsx | 6 ---- src/contexts/AISettingsContext.ts | 2 +- src/hooks/useAIChat.ts | 40 ++++---------------------- src/hooks/useAIProjectId.ts | 2 +- src/hooks/useProviderModels.ts | 4 --- 5 files changed, 8 insertions(+), 46 deletions(-) diff --git a/src/components/ai/AISettingsDialog.tsx b/src/components/ai/AISettingsDialog.tsx index 52d6184f..258e137b 100644 --- a/src/components/ai/AISettingsDialog.tsx +++ b/src/components/ai/AISettingsDialog.tsx @@ -165,7 +165,6 @@ export function AISettingsDialog({ open: controlledOpen, onOpenChange }: AISetti const preset = PRESET_PROVIDERS.find(p => p.id === providerId); const provider = localProviders[providerId]; const isCustom = !preset; - const hasApiKey = provider?.apiKey && provider.apiKey.length > 0; return ( @@ -176,11 +175,6 @@ export function AISettingsDialog({ open: controlledOpen, onOpenChange }: AISetti {preset?.name || providerId} {isCustom && Custom} - {hasApiKey && ( - - Configured - - )}