@langchain/openai
Advanced tools
Comparing version 0.4.2 to 0.4.3
@@ -435,2 +435,3 @@ import { type ClientOptions } from "openai"; | ||
} | undefined; | ||
get lc_serializable_keys(): string[]; | ||
constructor(fields?: Partial<OpenAIChatInput> & Partial<AzureOpenAIInput> & { | ||
@@ -437,0 +438,0 @@ openAIApiKey?: string; |
@@ -440,2 +440,16 @@ import { AzureOpenAI as AzureOpenAIClient } from "openai"; | ||
} | ||
get lc_serializable_keys() { | ||
return [ | ||
...super.lc_serializable_keys, | ||
"azureOpenAIApiKey", | ||
"azureOpenAIApiVersion", | ||
"azureOpenAIBasePath", | ||
"azureOpenAIEndpoint", | ||
"azureOpenAIApiInstanceName", | ||
"azureOpenAIApiDeploymentName", | ||
"deploymentName", | ||
"openAIApiKey", | ||
"openAIApiVersion", | ||
]; | ||
} | ||
constructor(fields) { | ||
@@ -442,0 +456,0 @@ super(fields); |
@@ -658,2 +658,3 @@ import { type ClientOptions, OpenAI as OpenAIClient } from "openai"; | ||
get lc_aliases(): Record<string, string>; | ||
get lc_serializable_keys(): string[]; | ||
temperature?: number; | ||
@@ -660,0 +661,0 @@ topP?: number; |
@@ -680,2 +680,40 @@ import { OpenAI as OpenAIClient } from "openai"; | ||
} | ||
get lc_serializable_keys() { | ||
return [ | ||
"configuration", | ||
"logprobs", | ||
"topLogprobs", | ||
"prefixMessages", | ||
"supportsStrictToolCalling", | ||
"modalities", | ||
"audio", | ||
"reasoningEffort", | ||
"temperature", | ||
"maxTokens", | ||
"topP", | ||
"frequencyPenalty", | ||
"presencePenalty", | ||
"n", | ||
"logitBias", | ||
"user", | ||
"streaming", | ||
"streamUsage", | ||
"modelName", | ||
"model", | ||
"modelKwargs", | ||
"stop", | ||
"stopSequences", | ||
"timeout", | ||
"openAIApiKey", | ||
"apiKey", | ||
"cache", | ||
"maxConcurrency", | ||
"maxRetries", | ||
"verbose", | ||
"callbacks", | ||
"tags", | ||
"metadata", | ||
"disableStreaming", | ||
]; | ||
} | ||
constructor(fields) { | ||
@@ -682,0 +720,0 @@ super(fields ?? {}); |
{ | ||
"name": "@langchain/openai", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"description": "OpenAI integrations for LangChain.js", | ||
@@ -44,3 +44,3 @@ "type": "module", | ||
"peerDependencies": { | ||
"@langchain/core": ">=0.3.29 <0.4.0" | ||
"@langchain/core": ">=0.3.39 <0.4.0" | ||
}, | ||
@@ -47,0 +47,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
350477
9732