Skip to content

Commit

Permalink
feat(api): add google ai file manager
Browse files Browse the repository at this point in the history
  • Loading branch information
RajaRakoto committed Nov 24, 2024
1 parent cfe6da5 commit 8a5b59d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/api/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
/* libs */
import { GoogleAIFileManager } from "@google/generative-ai/server";
import { GoogleGenerativeAI } from "@google/generative-ai";

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

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

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

export const geminiModel = genAI.getGenerativeModel({
model: rGemini.model,
Expand Down

0 comments on commit 8a5b59d

Please sign in to comment.