From d06b7d7aefb648c4c23cb55fcf14865a90df55c0 Mon Sep 17 00:00:00 2001 From: Henry Heng Date: Tue, 27 May 2025 18:48:43 +0100 Subject: [PATCH] Bugfix/Google Gemini Image Input (#4515) always allow image input for all gemini llms --- .../ChatGoogleGenerativeAI/FlowiseChatGoogleGenerativeAI.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components/nodes/chatmodels/ChatGoogleGenerativeAI/FlowiseChatGoogleGenerativeAI.ts b/packages/components/nodes/chatmodels/ChatGoogleGenerativeAI/FlowiseChatGoogleGenerativeAI.ts index 4824810eb..8854485c9 100644 --- a/packages/components/nodes/chatmodels/ChatGoogleGenerativeAI/FlowiseChatGoogleGenerativeAI.ts +++ b/packages/components/nodes/chatmodels/ChatGoogleGenerativeAI/FlowiseChatGoogleGenerativeAI.ts @@ -92,7 +92,7 @@ class LangchainChatGoogleGenerativeAI private contextCache?: FlowiseGoogleAICacheManager get _isMultimodalModel() { - return this.modelName.includes('vision') || this.modelName.startsWith('gemini-1.5') + return true } constructor(fields?: GoogleGenerativeAIChatInput) {