Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@langchain/google-genai

Package Overview
Dependencies
Maintainers
12
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@langchain/google-genai - npm Package Compare versions

Comparing version
2.1.19
to
2.1.20
+9
-0
CHANGELOG.md
# @langchain/google-genai
## 2.1.20
### Patch Changes
- [#10080](https://github.com/langchain-ai/langchainjs/pull/10080) [`b583729`](https://github.com/langchain-ai/langchainjs/commit/b583729e99cf0c035630f6b311c4d069a1980cca) Thanks [@hntrl](https://github.com/hntrl)! - Add string-model constructor overloads for chat models (with supporting tests where applicable).
- Updated dependencies [[`fb2226e`](https://github.com/langchain-ai/langchainjs/commit/fb2226e6decdaba21e78b3f01877b45fa1eed6d3)]:
- @langchain/core@1.1.27
## 2.1.19

@@ -4,0 +13,0 @@

+5
-1

@@ -422,3 +422,7 @@ const require_zod_to_genai_parameters = require('./utils/zod_to_genai_parameters.cjs');

}
constructor(fields) {
constructor(modelOrFields, fieldsArg) {
const fields = typeof modelOrFields === "string" ? {
...fieldsArg ?? {},
model: modelOrFields
} : modelOrFields;
super(fields);

@@ -425,0 +429,0 @@ this.model = fields.model.replace(/^models\//, "");

+2
-1

@@ -45,3 +45,3 @@ import { GoogleGenerativeAIThinkingConfig, GoogleGenerativeAIToolType } from "./types.cjs";

*/
model: string;
model: ModelParams["model"];
/**

@@ -540,2 +540,3 @@ * Controls the randomness of the output.

get _isMultimodalModel(): boolean;
constructor(model: ModelParams["model"], fields?: Omit<GoogleGenerativeAIChatInput, "model">);
constructor(fields: GoogleGenerativeAIChatInput);

@@ -542,0 +543,0 @@ useCachedContent(cachedContent: CachedContent, modelParams?: ModelParams, requestOptions?: RequestOptions): void;

@@ -45,3 +45,3 @@ import { GoogleGenerativeAIThinkingConfig, GoogleGenerativeAIToolType } from "./types.js";

*/
model: string;
model: ModelParams["model"];
/**

@@ -540,2 +540,3 @@ * Controls the randomness of the output.

get _isMultimodalModel(): boolean;
constructor(model: ModelParams["model"], fields?: Omit<GoogleGenerativeAIChatInput, "model">);
constructor(fields: GoogleGenerativeAIChatInput);

@@ -542,0 +543,0 @@ useCachedContent(cachedContent: CachedContent, modelParams?: ModelParams, requestOptions?: RequestOptions): void;

@@ -422,3 +422,7 @@ import { removeAdditionalProperties, schemaToGenerativeAIParameters } from "./utils/zod_to_genai_parameters.js";

}
constructor(fields) {
constructor(modelOrFields, fieldsArg) {
const fields = typeof modelOrFields === "string" ? {
...fieldsArg ?? {},
model: modelOrFields
} : modelOrFields;
super(fields);

@@ -425,0 +429,0 @@ this.model = fields.model.replace(/^models\//, "");

{
"name": "@langchain/google-genai",
"version": "2.1.19",
"version": "2.1.20",
"description": "Google Generative AI integration for LangChain.js",

@@ -21,3 +21,3 @@ "author": "LangChain",

"peerDependencies": {
"@langchain/core": "^1.1.25"
"@langchain/core": "^1.1.27"
},

@@ -39,3 +39,3 @@ "devDependencies": {

"zod": "^3.25.76",
"@langchain/core": "^1.1.25",
"@langchain/core": "^1.1.27",
"@langchain/eslint": "0.1.1",

@@ -42,0 +42,0 @@ "@langchain/standard-tests": "0.0.23",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet