@langchain/google-genai 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -360,7 +360,9 @@ class ChatGoogleGenerativeAI extends chat_models_1.BaseChatModel {
360
360
  };
361
361
  }
362
362
  get _isMultimodalModel() {
363
- return this.model.includes("vision") || this.model.startsWith("gemini-1.5");
363
+ return (this.model.includes("vision") ||
364
+ this.model.startsWith("gemini-1.5") ||
365
+ this.model.startsWith("gemini-2"));
364
366
  }
365
367
  constructor(fields) {
366
368
  super(fields ?? {});
@@ -357,7 +357,9 @@ export class ChatGoogleGenerativeAI extends BaseChatModel {
357
357
  };
358
358
  }
359
359
  get _isMultimodalModel() {
360
- return this.model.includes("vision") || this.model.startsWith("gemini-1.5");
360
+ return (this.model.includes("vision") ||
361
+ this.model.startsWith("gemini-1.5") ||
362
+ this.model.startsWith("gemini-2"));
361
363
  }
362
364
  constructor(fields) {
363
365
  super(fields ?? {});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/google-genai",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Google Generative AI integration for LangChain.js",
5
5
  "type": "module",
6
6
  "engines": {