Skip to content

Commit

Permalink
feat(api): add gemini api wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
RajaRakoto committed Nov 23, 2024
1 parent e8ffeeb commit f05f8a6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/api/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* libs */
import { GoogleGenerativeAI } from "@google/generative-ai";

/* orm */
import { rGemini } from "../../drizzle/query";

// ==============================

const genAI = new GoogleGenerativeAI(rGemini.apiKey || "");

export const geminiModel = genAI.getGenerativeModel({
model: rGemini.model,
});

0 comments on commit f05f8a6

Please sign in to comment.