@langchain/google-genai
Advanced tools
+9
-0
| # @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 @@ |
@@ -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\//, ""); |
@@ -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\//, ""); |
+3
-3
| { | ||
| "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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
442834
0.5%4211
0.21%