Find answers from the community

Updated 8 months ago

Gemini API Additional Terms of Service  ...

Hi everyone, I'm trying to ensure that I'm using the Gemini Pro 1.0 model in LlamaIndex, particularly because starting May 2nd, Google is implementing charges for using their models, with distinct costs for versions 1.0 and 1.5 as detailed here. The terms also reflect this change. I couldn't find the specific code in LlamaIndex that differentiates between these versions. Could anyone guide me on how to explicitly select Gemini Pro 1.0 to avoid higher charges? Thanks!
L
a
3 comments
pretty sure theres a command to list model names, using the generativeai package
then you just use that as the model name in your LLM
Thank you @Logan M, I've found some useful information on the Google AI Models - Gemini page that clarifies the model versions. It turns out that models/gemini-pro is currently an alias for gemini-1.0-pro. To explicitly use version 1.0 and avoid any future issues if the alias changes, we should use models/gemini-1.0-pro. Hope this helps anyone else looking to explicitly set their model version.
Add a reply
Sign up and join the conversation on Discord