Update Saqel Platform: 2026-09-08 23:35:48

This commit is contained in:
Hamza-Ayed
2026-09-08 23:35:48 +03:00
parent 90487a42ad
commit 41493f5dd6
11 changed files with 19 additions and 19 deletions
@@ -15,7 +15,7 @@ class CurriculumExtractorService
$fileNameClean = trim(preg_replace('/\.[^.]+$/u', '', $fileName));
// Try AI Structuring with Gemini 2.0 Flash
$geminiKey = Env::get('GEMINI_API_KEY') ?: getenv('GEMINI_API_KEY');
$geminiKey = Env::get('GEMINI_KEY') ?: getenv('GEMINI_KEY');
if (!empty($geminiKey) && !empty($rawText)) {
$aiStructure = self::callGeminiStructurer($fileName, $rawText, $geminiKey);
if (!empty($aiStructure['units']) && !empty($aiStructure['subject_name'])) {