Try Gemini 1.5 models, the latest multimodal models in Vertex AI, and see what you can build with up to a 2M token context window.Try Gemini 1.5 models, the latest multimodal models in Vertex AI, and see what you can build with up to a 2M token context window.
Stay organized with collections
Save and categorize content based on your preferences.
Package tokenizer provides local token counting for Gemini models. This
tokenizer downloads its model from the web, but otherwise doesn't require
an API call for every [CountTokens] invocation.
CountTokens counts the tokens in all the given parts and returns their
sum. Only [genai.Text] parts are suppored; an error will be returned if
non-text parts are provided.