Attempting to score potential trade with Gemini... Prompt: I have a bullish technical signal for Apple Inc. (AAPL). Analyze the sentiment of the following news headlines (included in the headlines.txt file)... Context files:
Warning: Undefined variable $contextFilePaths in /var/www/algo5.xyz/public_html/auto/AI/geminiScoring.php on line 40

Warning: foreach() argument must be of type array|object, null given in /var/www/algo5.xyz/public_html/auto/AI/geminiScoring.php on line 40

Warning: Undefined variable $generationConfig in /var/www/algo5.xyz/public_html/auto/AI/geminiScoring.php on line 56
--- Error During API Call --- Message: Gemini API Error (HTTP 400): API key not valid. Please pass a valid API key.