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

@langchain/google-genai

Package Overview
Dependencies
Maintainers
10
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.25 to 0.0.26

8

dist/chat_models.d.ts

@@ -28,2 +28,4 @@ import { GenerateContentRequest, SafetySetting, Part as GenerativeAIPart } from "@google/generative-ai";

/**
* @deprecated Use "model" instead.
*
* Model Name to use

@@ -111,2 +113,8 @@ *

streaming?: boolean;
/**
* Whether or not to force the model to respond with JSON.
* Available for `gemini-1.5` models and later.
* @default false
*/
json?: boolean;
}

@@ -113,0 +121,0 @@ /**

3

dist/chat_models.js

@@ -191,2 +191,3 @@ import { GoogleGenerativeAI as GenerativeAI, } from "@google/generative-ai";

topK: this.topK,
...(fields?.json ? { responseMimeType: "application/json" } : {}),
},

@@ -329,3 +330,3 @@ }, {

try {
return this.client.generateContent(request);
return await this.client.generateContent(request);
// eslint-disable-next-line @typescript-eslint/no-explicit-any

@@ -332,0 +333,0 @@ }

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

@@ -5,0 +5,0 @@ "type": "module",

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