..
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
|
||||
import { GoogleGenAI, Type } from "@google/genai";
|
||||
|
||||
const ai = new GoogleGenAI({ apiKey: process.env.API_KEY });
|
||||
const apiKey = import.meta.env.VITE_GEMINI_API_KEY || process.env.GEMINI_API_KEY || process.env.API_KEY || '';
|
||||
if (!apiKey) console.error("API Key is missing!");
|
||||
const ai = new GoogleGenAI({ apiKey });
|
||||
|
||||
export interface DetailedSearchResult {
|
||||
title: string;
|
||||
|
||||
Reference in New Issue
Block a user