For Gemini AI I have seen also issues until I changed the Base URL as following:
https://generativelanguage.googleapis.com/v1beta/models
Now, it is working well