diff --git a/libs/langchain-google-genai/src/chat_models.ts b/libs/langchain-google-genai/src/chat_models.ts index 93f5dfa9c26f..fd09579bff09 100644 --- a/libs/langchain-google-genai/src/chat_models.ts +++ b/libs/langchain-google-genai/src/chat_models.ts @@ -580,7 +580,11 @@ export class ChatGoogleGenerativeAI private client: GenerativeModel; get _isMultimodalModel() { - return this.model.includes("vision") || this.model.startsWith("gemini-1.5"); + return ( + this.model.includes("vision") || + this.model.startsWith("gemini-1.5") || + this.model.startsWith("gemini-2") + ); } constructor(fields?: GoogleGenerativeAIChatInput) {