mirror of
https://github.com/xavidop/cardex.git
synced 2026-08-29 00:01:18 +00:00
fix: throw error
This commit is contained in:
@@ -5,11 +5,6 @@ import { getUserApiKeys } from '@/lib/firestore';
|
||||
// Default genkit instance with environment variables
|
||||
const defaultApiKey = process.env.GOOGLE_GENAI_API_KEY;
|
||||
|
||||
if (!defaultApiKey) {
|
||||
console.error('Missing Google AI API key. Please set GOOGLE_GENAI_API_KEY or GEMINI_API_KEY environment variable.');
|
||||
throw new Error('Google AI API key is required for Genkit configuration');
|
||||
}
|
||||
|
||||
export const ai = genkit({
|
||||
plugins: [
|
||||
googleAI({apiKey: defaultApiKey})
|
||||
|
||||
Reference in New Issue
Block a user