Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@langchain/google-genai

Package Overview
Dependencies
Maintainers
4
Versions
32
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 0.0.3 to 0.0.4

README.md

1

dist/chat_models.js

@@ -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) {

4

dist/utils.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc