@langchain/openai
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -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
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
266822
6757