Class VertexAiGeminiChatModel

java.lang.Object
dev.langchain4j.model.vertexai.VertexAiGeminiChatModel
All Implemented Interfaces:
ChatLanguageModel, Closeable, AutoCloseable

public class VertexAiGeminiChatModel extends Object implements ChatLanguageModel, Closeable
Represents a Google Vertex AI Gemini language model with a chat completion interface, such as gemini-pro. See details here.
Please follow these steps before using this model:
1. Authentication
When developing locally, you can use one of:
a) Google Cloud SDK
b) Service account When using service account, ensure that GOOGLE_APPLICATION_CREDENTIALS environment variable points to your JSON service account key.
2. Authorization
3. Prerequisites