LLMs
Gemini - Vertex AI
Use Google’s Vertex AI Platform to access the Gemini model.
Prerequisites
- Install the Google Cloud SDK
- Create a Google Cloud project
- Enable the AI Platform API
- Authenticate with Google Cloud
gcloud auth application-default login
Example
Use Gemini
with your Assistant
:
Params
name
str
default: "Gemini"The name identifier for the assistant.
model
str
default: "gemini-1.0-pro-vision"The specific model ID used for generating responses.
generation_config
Any
Configuration settings for the generation process, such as parameters for controlling output behavior.
safety_settings
Any
Settings related to safety measures, ensuring the generation of appropriate and safe content.
function_declarations
List[FunctionDeclaration]
A list of function declarations that the model can utilize during the response generation process.
generative_model
GenerativeModel
The generative model instance used for producing responses.
Was this page helpful?