Update Saqel Platform: 2026-09-08 23:35:48
This commit is contained in:
@@ -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'])) {
|
||||
|
||||
Reference in New Issue
Block a user