This commit is contained in:
从何开始123
2026-01-08 02:16:42 +08:00
parent 83b4df1167
commit 54e9bf5906
31 changed files with 2201 additions and 0 deletions

13
prisma/api.ts Normal file
View File

@@ -0,0 +1,13 @@
import { GoogleGenAI } from "@google/genai";
export const getAI = (config?: { apiKey?: string; baseUrl?: string }) => {
const options: any = {
apiKey: config?.apiKey || process.env.API_KEY,
};
if (config?.baseUrl) {
options.baseUrl = config.baseUrl;
}
return new GoogleGenAI(options);
};