Try Gemini 1.5 models, our newest multimodal models in Vertex AI, and see what you can build with a 1M token context window.Try Gemini 1.5 models, our newest multimodal models in Vertex AI, and see what you can build with a 1M token context window.
public GenerativeModel.Builder setModelName(String modelName)
Sets the name of the generative model. This is required for building a GenerativeModel
instance. Supported format: "gemini-pro", "models/gemini-pro",
"publishers/google/models/gemini-pro", where "gemini-pro" is the model name. Valid model
names can be found in the Gemini models documentation:
https://cloud.google.com/vertex-ai/docs/generative-ai/learn/models#gemini-models
public GenerativeModel.Builder setVertexAi(VertexAI vertexAi)
Sets com.google.cloud.vertexai.VertexAI that contains the default configs for the
generative model. This is required for building a GenerativeModel instance.