I have been fixed the same issue by doing this -> ( pip uninstall google & pip uninstall google-generativeai ) ( if there are not installed yet, you are good and then; Install the new SDK: (pip install --upgrade google-genai )