mirror of
https://github.com/christianvidalwolf-prog/Craze-Data-check.git
synced 2026-08-03 13:05:25 +02:00
fix(gemini): update to 2.5 series models for March 2026 compatibility
This commit is contained in:
@@ -13,13 +13,13 @@ 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.');
|
||||
}
|
||||
|
||||
// Model fallback list - based on March 2026 status
|
||||
// Model fallback list - updated for March 2026
|
||||
const modelOptions = [
|
||||
'gemini-2.5-flash',
|
||||
'gemini-2.5-flash-lite',
|
||||
'gemini-2.5-pro',
|
||||
'gemini-2.0-flash',
|
||||
'gemini-1.5-flash',
|
||||
'gemini-1.5-pro',
|
||||
'gemini-1.0-pro-002',
|
||||
'gemini-1.0-pro'
|
||||
'gemini-1.5-flash'
|
||||
];
|
||||
|
||||
let lastError: any = null;
|
||||
|
||||
Reference in New Issue
Block a user