mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
chore: Update Langchain dependencies (no-changelog) (#18213)
This commit is contained in:
@@ -242,7 +242,7 @@ export class EmbeddingsOpenAi implements INodeType {
|
||||
|
||||
const embeddings = new OpenAIEmbeddings({
|
||||
model: this.getNodeParameter('model', itemIndex, 'text-embedding-3-small') as string,
|
||||
openAIApiKey: credentials.apiKey as string,
|
||||
apiKey: credentials.apiKey as string,
|
||||
...options,
|
||||
configuration,
|
||||
});
|
||||
|
||||
@@ -369,7 +369,7 @@ export class LmChatOpenAi implements INodeType {
|
||||
modelKwargs.reasoning_effort = options.reasoningEffort;
|
||||
|
||||
const model = new ChatOpenAI({
|
||||
openAIApiKey: credentials.apiKey as string,
|
||||
apiKey: credentials.apiKey as string,
|
||||
model: modelName,
|
||||
...options,
|
||||
timeout: options.timeout ?? 60000,
|
||||
|
||||
@@ -260,7 +260,7 @@ export class LmOpenAi implements INodeType {
|
||||
}
|
||||
|
||||
const model = new OpenAI({
|
||||
openAIApiKey: credentials.apiKey as string,
|
||||
apiKey: credentials.apiKey as string,
|
||||
model: modelName,
|
||||
...options,
|
||||
configuration,
|
||||
|
||||
@@ -234,7 +234,7 @@ export class LmChatDeepSeek implements INodeType {
|
||||
};
|
||||
|
||||
const model = new ChatOpenAI({
|
||||
openAIApiKey: credentials.apiKey,
|
||||
apiKey: credentials.apiKey,
|
||||
model: modelName,
|
||||
...options,
|
||||
timeout: options.timeout ?? 60000,
|
||||
|
||||
@@ -233,7 +233,7 @@ export class LmChatOpenRouter implements INodeType {
|
||||
};
|
||||
|
||||
const model = new ChatOpenAI({
|
||||
openAIApiKey: credentials.apiKey,
|
||||
apiKey: credentials.apiKey,
|
||||
model: modelName,
|
||||
...options,
|
||||
timeout: options.timeout ?? 60000,
|
||||
|
||||
@@ -232,7 +232,7 @@ export class LmChatVercelAiGateway implements INodeType {
|
||||
};
|
||||
|
||||
const model = new ChatOpenAI({
|
||||
openAIApiKey: credentials.apiKey,
|
||||
apiKey: credentials.apiKey,
|
||||
model: modelName,
|
||||
...options,
|
||||
timeout: options.timeout ?? 60000,
|
||||
|
||||
@@ -234,7 +234,7 @@ export class LmChatXAiGrok implements INodeType {
|
||||
};
|
||||
|
||||
const model = new ChatOpenAI({
|
||||
openAIApiKey: credentials.apiKey,
|
||||
apiKey: credentials.apiKey,
|
||||
model: modelName,
|
||||
...options,
|
||||
timeout: options.timeout ?? 60000,
|
||||
|
||||
@@ -212,7 +212,7 @@ export async function execute(this: IExecuteFunctions, i: number): Promise<INode
|
||||
const abortSignal = this.getExecutionCancelSignal();
|
||||
|
||||
if (options.maxTokens !== undefined) {
|
||||
options.max_tokens = options.maxTokens;
|
||||
options.max_completion_tokens = options.maxTokens;
|
||||
delete options.maxTokens;
|
||||
}
|
||||
|
||||
|
||||
@@ -214,14 +214,14 @@
|
||||
"ignore": "^5.2.0",
|
||||
"js-tiktoken": "^1.0.12",
|
||||
"jsdom": "23.0.1",
|
||||
"langchain": "0.3.29",
|
||||
"langchain": "0.3.30",
|
||||
"lodash": "catalog:",
|
||||
"mammoth": "1.7.2",
|
||||
"mime-types": "2.1.35",
|
||||
"mongodb": "6.11.0",
|
||||
"n8n-nodes-base": "workspace:*",
|
||||
"n8n-workflow": "workspace:*",
|
||||
"openai": "5.8.1",
|
||||
"openai": "5.12.2",
|
||||
"pdf-parse": "1.1.1",
|
||||
"pg": "8.12.0",
|
||||
"proxy-from-env": "^1.1.0",
|
||||
|
||||
Reference in New Issue
Block a user