I believe this issue is caused by an incompatibility between the 'google-generativeai' and 'llama-index-llms-gemini' libraries. Have you found a solution for this?
I've tried uninstalling and reinstalling them, but the problem persists. Do you know which specific versions work correctly with LlamaIndex?
just to update u! The Gemini() worked after creating a new env and installing the LlamaIndex from scatch. I think there was some bug after updating the LlamaIndex in my previous env.
Also, both Gemini Flash and Pro works in Canada and they are free for a specific amount of query per day (like 1500 RPM per day - 15 RPM per min for Gemini_Flash)