feat: Update dependencies and import maps
Upgrades React to v19.2.4 and adjusts ESM import maps to ensure correct versioning and loading. Also, removes redundant API key check in geminiService.ts as it's handled at build time.
This commit is contained in:
@@ -2,11 +2,6 @@ import { GoogleGenAI, Type } from "@google/genai";
|
||||
import { Question } from "../types";
|
||||
|
||||
const generateQuestions = async (topic: string, count: number = 5): Promise<Question[]> => {
|
||||
if (!process.env.API_KEY) {
|
||||
console.error("API Key is missing");
|
||||
return [];
|
||||
}
|
||||
|
||||
const ai = new GoogleGenAI({ apiKey: process.env.API_KEY });
|
||||
|
||||
try {
|
||||
@@ -49,4 +44,4 @@ const generateQuestions = async (topic: string, count: number = 5): Promise<Ques
|
||||
}
|
||||
};
|
||||
|
||||
export { generateQuestions };
|
||||
export { generateQuestions };
|
||||
Reference in New Issue
Block a user