@langchain/google-genai 0.2.16 → 0.2.17

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.
@@ -403,7 +403,10 @@ class ChatGoogleGenerativeAI extends chat_models_1.BaseChatModel {
403
403
  get _isMultimodalModel() {
404
404
  return (this.model.includes("vision") ||
405
405
  this.model.startsWith("gemini-1.5") ||
406
- this.model.startsWith("gemini-2"));
406
+ this.model.startsWith("gemini-2") ||
407
+ (this.model.startsWith("gemma-3-") &&
408
+ !this.model.startsWith("gemma-3-1b")) // gemma-3 models are multimodal(but gemma-3n-* and gemma-3-1b are not)
409
+ );
407
410
  }
408
411
  constructor(fields) {
409
412
  super(fields);
@@ -400,7 +400,10 @@ export class ChatGoogleGenerativeAI extends BaseChatModel {
400
400
  get _isMultimodalModel() {
401
401
  return (this.model.includes("vision") ||
402
402
  this.model.startsWith("gemini-1.5") ||
403
- this.model.startsWith("gemini-2"));
403
+ this.model.startsWith("gemini-2") ||
404
+ (this.model.startsWith("gemma-3-") &&
405
+ !this.model.startsWith("gemma-3-1b")) // gemma-3 models are multimodal(but gemma-3n-* and gemma-3-1b are not)
406
+ );
404
407
  }
405
408
  constructor(fields) {
406
409
  super(fields);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/google-genai",
3
- "version": "0.2.16",
3
+ "version": "0.2.17",
4
4
  "description": "Google Generative AI integration for LangChain.js",
5
5
  "type": "module",
6
6
  "engines": {