@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.
- package/dist/chat_models.cjs +3 -1
- package/dist/chat_models.js +3 -1
- package/package.json +1 -1
package/dist/chat_models.cjs
CHANGED
|
@@ -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") ||
|
|
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 ?? {});
|
package/dist/chat_models.js
CHANGED
|
@@ -357,7 +357,9 @@ export class ChatGoogleGenerativeAI extends BaseChatModel {
|
|
|
357
357
|
};
|
|
358
358
|
}
|
|
359
359
|
get _isMultimodalModel() {
|
|
360
|
-
return this.model.includes("vision") ||
|
|
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 ?? {});
|