One other thing: you posted your Gemini API key earlier. You should rotate that key in Google AI Studio/Google Cloud and replace it in your app. Once a key is exposed, assume it is compromised. key is located in permit_ai.php https://ai.google.dev/gemini-api/docs/api-key