From d7a3fb651ba09b0ca03d85fa25c59eb85cce368d Mon Sep 17 00:00:00 2001 From: Piyush Yadav Date: Tue, 25 Jun 2024 20:24:59 +0530 Subject: [PATCH] chore: updating env variable from client side visible to server side --- src/lib/AI.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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({