Skip to content

Commit

Permalink
chore: updating env variable from client side visible to server side
Browse files Browse the repository at this point in the history
  • Loading branch information
piyushyadav0191 committed Jun 25, 2024
1 parent 787f53d commit d7a3fb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/AI.ts
Original file line number Diff line number Diff line change
@@ -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({
Expand Down

0 comments on commit d7a3fb6

Please sign in to comment.