@langchain/google-genai
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -129,2 +129,3 @@ import { GoogleGenerativeAI as GenerativeAI, } from "@google/generative-ai"; | ||
} | ||
this.stopSequences = fields?.stopSequences ?? this.stopSequences; | ||
this.apiKey = fields?.apiKey ?? getEnvironmentVariable("GOOGLE_API_KEY"); | ||
@@ -131,0 +132,0 @@ if (!this.apiKey) { |
@@ -124,3 +124,3 @@ import { AIMessage, AIMessageChunk, ChatMessage, isBaseMessage, } from "@langchain/core/messages"; | ||
name: content === null ? undefined : content.role, | ||
additional_kwargs: {}, | ||
additional_kwargs: generationInfo, | ||
}), | ||
@@ -145,2 +145,4 @@ generationInfo, | ||
name: content === null ? undefined : content.role, | ||
// Each chunk can have unique "generationInfo", and merging strategy is unclear, | ||
// so leave blank for now. | ||
additional_kwargs: {}, | ||
@@ -147,0 +149,0 @@ }), |
{ | ||
"name": "@langchain/google-genai", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Sample integration for LangChain.js", | ||
@@ -38,3 +38,3 @@ "type": "module", | ||
"@google/generative-ai": "^0.1.0", | ||
"@langchain/core": "~0.1.1" | ||
"@langchain/core": "~0.1.2" | ||
}, | ||
@@ -41,0 +41,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
53588
18
1212
0
164
Updated@langchain/core@~0.1.2