My personal daily experience with this! I first used vertexai APIs because that's what they suggested, that Gemini APIs are not for production use.
Then there comes the Google.generativeai. I don't remember the reason but they were pushing me to start using this library.
Now it's all flashy google.genai libraries that they are pushing!
I have figured that this is what I should use and this is the documentation that I should look for, because doing a Google search or using an LLM gives me so many confusing results. The only thing that works for sure is reading the library code. That's what I'm doing these days.
For example, the documentation in one of those above libraries say that Gemini can read a document from cloud storage if you give it the uri. That doesn't work in google.genai library. I couldn't figure out why. I imagined maybe Gemini might need access to the cloud storage bucket, but I couldn't find any documentation as to how I can do that. I finally understood that I need to use the new file API and that uri works.
Yes, I like Gemini model they are really good. But the library documentation can be significantly simpler.
Then there comes the Google.generativeai. I don't remember the reason but they were pushing me to start using this library.
Now it's all flashy google.genai libraries that they are pushing!
I have figured that this is what I should use and this is the documentation that I should look for, because doing a Google search or using an LLM gives me so many confusing results. The only thing that works for sure is reading the library code. That's what I'm doing these days.
For example, the documentation in one of those above libraries say that Gemini can read a document from cloud storage if you give it the uri. That doesn't work in google.genai library. I couldn't figure out why. I imagined maybe Gemini might need access to the cloud storage bucket, but I couldn't find any documentation as to how I can do that. I finally understood that I need to use the new file API and that uri works.
Yes, I like Gemini model they are really good. But the library documentation can be significantly simpler.