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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-05 UTC."],[],[]]