diff --git a/src/lib/AI.ts b/src/lib/AI.ts index 389fe65..7698560 100644 --- a/src/lib/AI.ts +++ b/src/lib/AI.ts @@ -1,6 +1,6 @@ import { GoogleGenerativeAI, HarmCategory, HarmBlockThreshold } from "@google/generative-ai"; -const apiKey = process.env.NEXT_PUBLIC_GEMINI_API_KEY as string; +const apiKey = process.env.GEMINI_API_KEY as string; const genAI = new GoogleGenerativeAI(apiKey); const model = genAI.getGenerativeModel({