added localStorage functionality to the entire project, LLM keeps getting overloaded

This commit is contained in:
Ivan Rudik
2025-11-09 09:24:47 +00:00
parent 6421160279
commit 64be41f894
10 changed files with 447 additions and 702 deletions
+3 -3
View File
@@ -16,7 +16,7 @@ export async function chatToGemini(
): Promise<string> {
const model = genAI.getGenerativeModel({
model: settings.model || "gemini-2.5-flash",
systemInstruction: settings.sysTemInstructions || "you are going to create a project idea, explain it in summery first before going to detail",
systemInstruction: settings.systemInstructions || "you are going to create a project idea, explain it in summery first before going to detail",
});
const generationConfig: GenerateConfig = {
@@ -36,7 +36,7 @@ export async function chatToGemini(
return result.response.text();
}
catch (error) {
console.error(error)
throw error
console.error("Gemini API Error:", error);
throw error;
}
}