AI Analysis: switch to gemini-2.5-flash based on diagnostics

This commit is contained in:
jeremy bayse
2026-03-25 18:06:44 +01:00
parent 5a8d9b494b
commit 30918870a2
2 changed files with 28 additions and 1 deletions

View File

@@ -196,7 +196,7 @@ class AIAnalysisService
if (!$apiKey) return $this->getSimulatedAnalysis();
try {
$response = Http::timeout(60)->post("https://generativelanguage.googleapis.com/v1/models/gemini-1.5-flash:generateContent?key=" . $apiKey, [
$response = Http::timeout(60)->post("https://generativelanguage.googleapis.com/v1/models/gemini-2.5-flash:generateContent?key=" . $apiKey, [
'contents' => [['parts' => [['text' => $prompt]]]]
]);