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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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) {