Socket
Socket
Sign inDemoInstall

@langchain/openai

Package Overview
Dependencies
Maintainers
0
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@langchain/openai - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

6

dist/chat_models.js

@@ -464,4 +464,2 @@ import { OpenAI as OpenAIClient } from "openai";

this.user = fields?.user;
this.streaming = fields?.streaming ?? false;
this.streamUsage = fields?.streamUsage ?? this.streamUsage;
if (this.azureOpenAIApiKey || this.azureADTokenProvider) {

@@ -478,3 +476,7 @@ if (!this.azureOpenAIApiInstanceName && !this.azureOpenAIBasePath) {

this.apiKey = this.apiKey ?? "";
// Streaming usage is not supported by Azure deployments, so default to false
this.streamUsage = false;
}
this.streaming = fields?.streaming ?? false;
this.streamUsage = fields?.streamUsage ?? this.streamUsage;
this.clientConfig = {

@@ -481,0 +483,0 @@ apiKey: this.apiKey,

{
"name": "@langchain/openai",
"version": "0.2.0",
"version": "0.2.1",
"description": "OpenAI integrations 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