@langchain/google-genai
Advanced tools
Comparing version 0.0.25 to 0.0.26
@@ -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 @@ /** |
@@ -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
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
97326
2295