Allow apiKey to be empty

This commit is contained in:
Alex Gleason committed 2025-08-26 12:03:42 -05:00
1 parent 365ce0757e
commit d1110445e6
5 files changed
+8 -46

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@ export function useAIProjectId({ onError }: UseAIProjectIdOptions = {}) {
// Use first available provider as fallback
const providers = settings.providers || {};
const firstProvider = Object.keys(providers)[0];
if (!firstProvider || !providers[firstProvider]?.apiKey) {
if (!firstProvider) {
throw new Error('No configured AI providers available');
}