Bugfix/Google Gemini Image Input (#4515)

always allow image input for all gemini llms
This commit is contained in:
Henry Heng
2025-05-27 18:48:43 +01:00
committed by GitHub
parent 07b251b4bc
commit d06b7d7aef
@@ -92,7 +92,7 @@ class LangchainChatGoogleGenerativeAI
private contextCache?: FlowiseGoogleAICacheManager private contextCache?: FlowiseGoogleAICacheManager
get _isMultimodalModel() { get _isMultimodalModel() {
return this.modelName.includes('vision') || this.modelName.startsWith('gemini-1.5') return true
} }
constructor(fields?: GoogleGenerativeAIChatInput) { constructor(fields?: GoogleGenerativeAIChatInput) {