Use Google’s Vertex AI Platform to access the Gemini model.

Prerequisites

  1. Install the Google Cloud SDK
  2. Create a Google Cloud project
  3. Enable the AI Platform API
  4. 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.