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

@langchain/google-common

Package Overview
Dependencies
Maintainers
0
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@langchain/google-common - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

1

dist/chat_models.js

@@ -355,2 +355,3 @@ import { getEnvironmentVariable } from "@langchain/core/utils/env";

tools,
tool_choice: functionName,
});

@@ -357,0 +358,0 @@ if (!includeRaw) {

@@ -19,2 +19,6 @@ import { Embeddings } from "@langchain/core/embeddings";

}
get modelPublisher() {
// All the embedding models are currently published by "google"
return "google";
}
async formatData(input, parameters) {

@@ -21,0 +25,0 @@ return {

@@ -806,6 +806,15 @@ import { v4 as uuidv4 } from "uuid";

}
if (["auto", "any", "none"].includes(parameters.tool_choice)) {
return {
functionCallingConfig: {
mode: parameters.tool_choice,
allowedFunctionNames: parameters.allowed_function_names,
},
};
}
// force tool choice to be a single function name in case of structured output
return {
functionCallingConfig: {
mode: parameters.tool_choice,
allowedFunctionNames: parameters.allowed_function_names,
mode: "any",
allowedFunctionNames: [parameters.tool_choice],
},

@@ -812,0 +821,0 @@ };

2

package.json
{
"name": "@langchain/google-common",
"version": "0.1.4",
"version": "0.1.5",
"description": "Core types and classes for Google services.",

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

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

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