fix(gemini): use stable gemini-1.5-flash model

This commit is contained in:
christian.vidal
2026-03-27 14:07:27 +01:00
parent 15d7a6ea3a
commit 893ee3a818
+1 -1
View File
@@ -13,7 +13,7 @@ export async function generateGemini(prompt: string, systemPrompt: string): Prom
throw new Error('Gemini API Key not found. Please set VITE_GEMINI_API_KEY in .env or GEMINI_API_KEY in localStorage.'); throw new Error('Gemini API Key not found. Please set VITE_GEMINI_API_KEY in .env or GEMINI_API_KEY in localStorage.');
} }
const response = await fetch(`https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash-exp:generateContent?key=${apiKey}`, { const response = await fetch(`https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent?key=${apiKey}`, {
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'