@n8n/n8n-nodes-langchain 1.70.0 → 1.72.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build.tsbuildinfo +1 -1
- package/dist/known/credentials.json +7 -7
- package/dist/known/nodes.json +68 -68
- package/dist/methods/defined.json +1 -1
- package/dist/methods/referenced.json +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/execute.js +2 -2
- package/dist/nodes/agents/Agent/agents/ToolsAgent/execute.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/utils.d.ts +3 -1
- package/dist/nodes/agents/Agent/agents/utils.js.map +1 -1
- package/dist/nodes/document_loaders/DocumentGithubLoader/DocumentGithubLoader.node.js +1 -1
- package/dist/nodes/document_loaders/DocumentGithubLoader/DocumentGithubLoader.node.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/actions/assistant/update.operation.js +12 -13
- package/dist/nodes/vendors/OpenAi/actions/assistant/update.operation.js.map +1 -1
- package/dist/types/credentials.json +15 -15
- package/dist/types/nodes.json +78 -78
- package/dist/utils/descriptions.js +1 -1
- package/dist/utils/descriptions.js.map +1 -1
- package/dist/utils/output_parsers/N8nStructuredOutputParser.js +3 -1
- package/dist/utils/output_parsers/N8nStructuredOutputParser.js.map +1 -1
- package/package.json +23 -24
|
@@ -45,6 +45,13 @@
|
|
|
45
45
|
"lmOpenHuggingFaceInference"
|
|
46
46
|
]
|
|
47
47
|
},
|
|
48
|
+
"motorheadApi": {
|
|
49
|
+
"className": "MotorheadApi",
|
|
50
|
+
"sourcePath": "dist/credentials/MotorheadApi.credentials.js",
|
|
51
|
+
"supportedNodes": [
|
|
52
|
+
"memoryMotorhead"
|
|
53
|
+
]
|
|
54
|
+
},
|
|
48
55
|
"mistralCloudApi": {
|
|
49
56
|
"className": "MistralCloudApi",
|
|
50
57
|
"sourcePath": "dist/credentials/MistralCloudApi.credentials.js",
|
|
@@ -53,13 +60,6 @@
|
|
|
53
60
|
"lmChatMistralCloud"
|
|
54
61
|
]
|
|
55
62
|
},
|
|
56
|
-
"motorheadApi": {
|
|
57
|
-
"className": "MotorheadApi",
|
|
58
|
-
"sourcePath": "dist/credentials/MotorheadApi.credentials.js",
|
|
59
|
-
"supportedNodes": [
|
|
60
|
-
"memoryMotorhead"
|
|
61
|
-
]
|
|
62
|
-
},
|
|
63
63
|
"ollamaApi": {
|
|
64
64
|
"className": "OllamaApi",
|
|
65
65
|
"sourcePath": "dist/credentials/OllamaApi.credentials.js",
|
package/dist/known/nodes.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"className": "
|
|
4
|
-
"sourcePath": "dist/nodes/
|
|
2
|
+
"openAi": {
|
|
3
|
+
"className": "OpenAi",
|
|
4
|
+
"sourcePath": "dist/nodes/vendors/OpenAi/OpenAi.node.js"
|
|
5
5
|
},
|
|
6
6
|
"agent": {
|
|
7
7
|
"className": "Agent",
|
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
"className": "OpenAiAssistant",
|
|
12
12
|
"sourcePath": "dist/nodes/agents/OpenAiAssistant/OpenAiAssistant.node.js"
|
|
13
13
|
},
|
|
14
|
+
"chainSummarization": {
|
|
15
|
+
"className": "ChainSummarization",
|
|
16
|
+
"sourcePath": "dist/nodes/chains/ChainSummarization/ChainSummarization.node.js"
|
|
17
|
+
},
|
|
14
18
|
"chainLlm": {
|
|
15
19
|
"className": "ChainLlm",
|
|
16
20
|
"sourcePath": "dist/nodes/chains/ChainLLM/ChainLlm.node.js"
|
|
@@ -19,30 +23,30 @@
|
|
|
19
23
|
"className": "ChainRetrievalQa",
|
|
20
24
|
"sourcePath": "dist/nodes/chains/ChainRetrievalQA/ChainRetrievalQa.node.js"
|
|
21
25
|
},
|
|
22
|
-
"
|
|
23
|
-
"className": "
|
|
24
|
-
"sourcePath": "dist/nodes/chains/
|
|
26
|
+
"sentimentAnalysis": {
|
|
27
|
+
"className": "SentimentAnalysis",
|
|
28
|
+
"sourcePath": "dist/nodes/chains/SentimentAnalysis/SentimentAnalysis.node.js"
|
|
25
29
|
},
|
|
26
30
|
"informationExtractor": {
|
|
27
31
|
"className": "InformationExtractor",
|
|
28
32
|
"sourcePath": "dist/nodes/chains/InformationExtractor/InformationExtractor.node.js"
|
|
29
33
|
},
|
|
30
|
-
"sentimentAnalysis": {
|
|
31
|
-
"className": "SentimentAnalysis",
|
|
32
|
-
"sourcePath": "dist/nodes/chains/SentimentAnalysis/SentimentAnalysis.node.js"
|
|
33
|
-
},
|
|
34
34
|
"textClassifier": {
|
|
35
35
|
"className": "TextClassifier",
|
|
36
36
|
"sourcePath": "dist/nodes/chains/TextClassifier/TextClassifier.node.js"
|
|
37
37
|
},
|
|
38
|
-
"
|
|
39
|
-
"className": "
|
|
40
|
-
"sourcePath": "dist/nodes/
|
|
38
|
+
"code": {
|
|
39
|
+
"className": "Code",
|
|
40
|
+
"sourcePath": "dist/nodes/code/Code.node.js"
|
|
41
41
|
},
|
|
42
42
|
"documentDefaultDataLoader": {
|
|
43
43
|
"className": "DocumentDefaultDataLoader",
|
|
44
44
|
"sourcePath": "dist/nodes/document_loaders/DocumentDefaultDataLoader/DocumentDefaultDataLoader.node.js"
|
|
45
45
|
},
|
|
46
|
+
"documentBinaryInputLoader": {
|
|
47
|
+
"className": "DocumentBinaryInputLoader",
|
|
48
|
+
"sourcePath": "dist/nodes/document_loaders/DocumentBinaryInputLoader/DocumentBinaryInputLoader.node.js"
|
|
49
|
+
},
|
|
46
50
|
"documentGithubLoader": {
|
|
47
51
|
"className": "DocumentGithubLoader",
|
|
48
52
|
"sourcePath": "dist/nodes/document_loaders/DocumentGithubLoader/DocumentGithubLoader.node.js"
|
|
@@ -51,6 +55,10 @@
|
|
|
51
55
|
"className": "DocumentJsonInputLoader",
|
|
52
56
|
"sourcePath": "dist/nodes/document_loaders/DocumentJSONInputLoader/DocumentJsonInputLoader.node.js"
|
|
53
57
|
},
|
|
58
|
+
"embeddingsCohere": {
|
|
59
|
+
"className": "EmbeddingsCohere",
|
|
60
|
+
"sourcePath": "dist/nodes/embeddings/EmbeddingsCohere/EmbeddingsCohere.node.js"
|
|
61
|
+
},
|
|
54
62
|
"embeddingsAwsBedrock": {
|
|
55
63
|
"className": "EmbeddingsAwsBedrock",
|
|
56
64
|
"sourcePath": "dist/nodes/embeddings/EmbeddingsAwsBedrock/EmbeddingsAwsBedrock.node.js"
|
|
@@ -59,10 +67,6 @@
|
|
|
59
67
|
"className": "EmbeddingsAzureOpenAi",
|
|
60
68
|
"sourcePath": "dist/nodes/embeddings/EmbeddingsAzureOpenAi/EmbeddingsAzureOpenAi.node.js"
|
|
61
69
|
},
|
|
62
|
-
"embeddingsCohere": {
|
|
63
|
-
"className": "EmbeddingsCohere",
|
|
64
|
-
"sourcePath": "dist/nodes/embeddings/EmbeddingsCohere/EmbeddingsCohere.node.js"
|
|
65
|
-
},
|
|
66
70
|
"embeddingsGoogleGemini": {
|
|
67
71
|
"className": "EmbeddingsGoogleGemini",
|
|
68
72
|
"sourcePath": "dist/nodes/embeddings/EmbeddingsGoogleGemini/EmbeddingsGoogleGemini.node.js"
|
|
@@ -75,50 +79,26 @@
|
|
|
75
79
|
"className": "EmbeddingsMistralCloud",
|
|
76
80
|
"sourcePath": "dist/nodes/embeddings/EmbeddingsMistralCloud/EmbeddingsMistralCloud.node.js"
|
|
77
81
|
},
|
|
78
|
-
"embeddingsOllama": {
|
|
79
|
-
"className": "EmbeddingsOllama",
|
|
80
|
-
"sourcePath": "dist/nodes/embeddings/EmbeddingsOllama/EmbeddingsOllama.node.js"
|
|
81
|
-
},
|
|
82
82
|
"embeddingsOpenAi": {
|
|
83
83
|
"className": "EmbeddingsOpenAi",
|
|
84
84
|
"sourcePath": "dist/nodes/embeddings/EmbeddingsOpenAI/EmbeddingsOpenAi.node.js"
|
|
85
85
|
},
|
|
86
|
+
"embeddingsOllama": {
|
|
87
|
+
"className": "EmbeddingsOllama",
|
|
88
|
+
"sourcePath": "dist/nodes/embeddings/EmbeddingsOllama/EmbeddingsOllama.node.js"
|
|
89
|
+
},
|
|
86
90
|
"lmChatAnthropic": {
|
|
87
91
|
"className": "LmChatAnthropic",
|
|
88
92
|
"sourcePath": "dist/nodes/llms/LMChatAnthropic/LmChatAnthropic.node.js"
|
|
89
93
|
},
|
|
90
|
-
"
|
|
91
|
-
"className": "
|
|
92
|
-
"sourcePath": "dist/nodes/llms/
|
|
93
|
-
},
|
|
94
|
-
"lmChatOpenAi": {
|
|
95
|
-
"className": "LmChatOpenAi",
|
|
96
|
-
"sourcePath": "dist/nodes/llms/LMChatOpenAi/LmChatOpenAi.node.js"
|
|
97
|
-
},
|
|
98
|
-
"lmCohere": {
|
|
99
|
-
"className": "LmCohere",
|
|
100
|
-
"sourcePath": "dist/nodes/llms/LMCohere/LmCohere.node.js"
|
|
101
|
-
},
|
|
102
|
-
"lmOllama": {
|
|
103
|
-
"className": "LmOllama",
|
|
104
|
-
"sourcePath": "dist/nodes/llms/LMOllama/LmOllama.node.js"
|
|
105
|
-
},
|
|
106
|
-
"lmOpenAi": {
|
|
107
|
-
"className": "LmOpenAi",
|
|
108
|
-
"sourcePath": "dist/nodes/llms/LMOpenAi/LmOpenAi.node.js"
|
|
109
|
-
},
|
|
110
|
-
"lmOpenHuggingFaceInference": {
|
|
111
|
-
"className": "LmOpenHuggingFaceInference",
|
|
112
|
-
"sourcePath": "dist/nodes/llms/LMOpenHuggingFaceInference/LmOpenHuggingFaceInference.node.js"
|
|
94
|
+
"lmChatAzureOpenAi": {
|
|
95
|
+
"className": "LmChatAzureOpenAi",
|
|
96
|
+
"sourcePath": "dist/nodes/llms/LmChatAzureOpenAi/LmChatAzureOpenAi.node.js"
|
|
113
97
|
},
|
|
114
98
|
"lmChatAwsBedrock": {
|
|
115
99
|
"className": "LmChatAwsBedrock",
|
|
116
100
|
"sourcePath": "dist/nodes/llms/LmChatAwsBedrock/LmChatAwsBedrock.node.js"
|
|
117
101
|
},
|
|
118
|
-
"lmChatAzureOpenAi": {
|
|
119
|
-
"className": "LmChatAzureOpenAi",
|
|
120
|
-
"sourcePath": "dist/nodes/llms/LmChatAzureOpenAi/LmChatAzureOpenAi.node.js"
|
|
121
|
-
},
|
|
122
102
|
"lmChatGoogleGemini": {
|
|
123
103
|
"className": "LmChatGoogleGemini",
|
|
124
104
|
"sourcePath": "dist/nodes/llms/LmChatGoogleGemini/LmChatGoogleGemini.node.js"
|
|
@@ -135,18 +115,34 @@
|
|
|
135
115
|
"className": "LmChatMistralCloud",
|
|
136
116
|
"sourcePath": "dist/nodes/llms/LmChatMistralCloud/LmChatMistralCloud.node.js"
|
|
137
117
|
},
|
|
118
|
+
"lmChatOllama": {
|
|
119
|
+
"className": "LmChatOllama",
|
|
120
|
+
"sourcePath": "dist/nodes/llms/LMChatOllama/LmChatOllama.node.js"
|
|
121
|
+
},
|
|
122
|
+
"lmChatOpenAi": {
|
|
123
|
+
"className": "LmChatOpenAi",
|
|
124
|
+
"sourcePath": "dist/nodes/llms/LMChatOpenAi/LmChatOpenAi.node.js"
|
|
125
|
+
},
|
|
126
|
+
"lmOpenAi": {
|
|
127
|
+
"className": "LmOpenAi",
|
|
128
|
+
"sourcePath": "dist/nodes/llms/LMOpenAi/LmOpenAi.node.js"
|
|
129
|
+
},
|
|
130
|
+
"lmCohere": {
|
|
131
|
+
"className": "LmCohere",
|
|
132
|
+
"sourcePath": "dist/nodes/llms/LMCohere/LmCohere.node.js"
|
|
133
|
+
},
|
|
134
|
+
"lmOllama": {
|
|
135
|
+
"className": "LmOllama",
|
|
136
|
+
"sourcePath": "dist/nodes/llms/LMOllama/LmOllama.node.js"
|
|
137
|
+
},
|
|
138
|
+
"lmOpenHuggingFaceInference": {
|
|
139
|
+
"className": "LmOpenHuggingFaceInference",
|
|
140
|
+
"sourcePath": "dist/nodes/llms/LMOpenHuggingFaceInference/LmOpenHuggingFaceInference.node.js"
|
|
141
|
+
},
|
|
138
142
|
"memoryBufferWindow": {
|
|
139
143
|
"className": "MemoryBufferWindow",
|
|
140
144
|
"sourcePath": "dist/nodes/memory/MemoryBufferWindow/MemoryBufferWindow.node.js"
|
|
141
145
|
},
|
|
142
|
-
"memoryChatRetriever": {
|
|
143
|
-
"className": "MemoryChatRetriever",
|
|
144
|
-
"sourcePath": "dist/nodes/memory/MemoryChatRetriever/MemoryChatRetriever.node.js"
|
|
145
|
-
},
|
|
146
|
-
"memoryManager": {
|
|
147
|
-
"className": "MemoryManager",
|
|
148
|
-
"sourcePath": "dist/nodes/memory/MemoryManager/MemoryManager.node.js"
|
|
149
|
-
},
|
|
150
146
|
"memoryMotorhead": {
|
|
151
147
|
"className": "MemoryMotorhead",
|
|
152
148
|
"sourcePath": "dist/nodes/memory/MemoryMotorhead/MemoryMotorhead.node.js"
|
|
@@ -159,6 +155,14 @@
|
|
|
159
155
|
"className": "MemoryRedisChat",
|
|
160
156
|
"sourcePath": "dist/nodes/memory/MemoryRedisChat/MemoryRedisChat.node.js"
|
|
161
157
|
},
|
|
158
|
+
"memoryManager": {
|
|
159
|
+
"className": "MemoryManager",
|
|
160
|
+
"sourcePath": "dist/nodes/memory/MemoryManager/MemoryManager.node.js"
|
|
161
|
+
},
|
|
162
|
+
"memoryChatRetriever": {
|
|
163
|
+
"className": "MemoryChatRetriever",
|
|
164
|
+
"sourcePath": "dist/nodes/memory/MemoryChatRetriever/MemoryChatRetriever.node.js"
|
|
165
|
+
},
|
|
162
166
|
"memoryXata": {
|
|
163
167
|
"className": "MemoryXata",
|
|
164
168
|
"sourcePath": "dist/nodes/memory/MemoryXata/MemoryXata.node.js"
|
|
@@ -183,14 +187,14 @@
|
|
|
183
187
|
"className": "RetrieverContextualCompression",
|
|
184
188
|
"sourcePath": "dist/nodes/retrievers/RetrieverContextualCompression/RetrieverContextualCompression.node.js"
|
|
185
189
|
},
|
|
186
|
-
"retrieverMultiQuery": {
|
|
187
|
-
"className": "RetrieverMultiQuery",
|
|
188
|
-
"sourcePath": "dist/nodes/retrievers/RetrieverMultiQuery/RetrieverMultiQuery.node.js"
|
|
189
|
-
},
|
|
190
190
|
"retrieverVectorStore": {
|
|
191
191
|
"className": "RetrieverVectorStore",
|
|
192
192
|
"sourcePath": "dist/nodes/retrievers/RetrieverVectorStore/RetrieverVectorStore.node.js"
|
|
193
193
|
},
|
|
194
|
+
"retrieverMultiQuery": {
|
|
195
|
+
"className": "RetrieverMultiQuery",
|
|
196
|
+
"sourcePath": "dist/nodes/retrievers/RetrieverMultiQuery/RetrieverMultiQuery.node.js"
|
|
197
|
+
},
|
|
194
198
|
"retrieverWorkflow": {
|
|
195
199
|
"className": "RetrieverWorkflow",
|
|
196
200
|
"sourcePath": "dist/nodes/retrievers/RetrieverWorkflow/RetrieverWorkflow.node.js"
|
|
@@ -239,14 +243,14 @@
|
|
|
239
243
|
"className": "ToolWorkflow",
|
|
240
244
|
"sourcePath": "dist/nodes/tools/ToolWorkflow/ToolWorkflow.node.js"
|
|
241
245
|
},
|
|
242
|
-
"chatTrigger": {
|
|
243
|
-
"className": "ChatTrigger",
|
|
244
|
-
"sourcePath": "dist/nodes/trigger/ChatTrigger/ChatTrigger.node.js"
|
|
245
|
-
},
|
|
246
246
|
"manualChatTrigger": {
|
|
247
247
|
"className": "ManualChatTrigger",
|
|
248
248
|
"sourcePath": "dist/nodes/trigger/ManualChatTrigger/ManualChatTrigger.node.js"
|
|
249
249
|
},
|
|
250
|
+
"chatTrigger": {
|
|
251
|
+
"className": "ChatTrigger",
|
|
252
|
+
"sourcePath": "dist/nodes/trigger/ChatTrigger/ChatTrigger.node.js"
|
|
253
|
+
},
|
|
250
254
|
"vectorStoreInMemory": {
|
|
251
255
|
"className": "VectorStoreInMemory",
|
|
252
256
|
"sourcePath": "dist/nodes/vector_store/VectorStoreInMemory/VectorStoreInMemory.node.js"
|
|
@@ -302,9 +306,5 @@
|
|
|
302
306
|
"vectorStoreZepLoad": {
|
|
303
307
|
"className": "VectorStoreZepLoad",
|
|
304
308
|
"sourcePath": "dist/nodes/vector_store/VectorStoreZepLoad/VectorStoreZepLoad.node.js"
|
|
305
|
-
},
|
|
306
|
-
"openAi": {
|
|
307
|
-
"className": "OpenAi",
|
|
308
|
-
"sourcePath": "dist/nodes/vendors/OpenAi/OpenAi.node.js"
|
|
309
309
|
}
|
|
310
310
|
}
|
|
@@ -17,7 +17,7 @@ function getOutputParserSchema(outputParser) {
|
|
|
17
17
|
return schema;
|
|
18
18
|
}
|
|
19
19
|
async function extractBinaryMessages(ctx) {
|
|
20
|
-
const binaryData = ctx.getInputData(
|
|
20
|
+
const binaryData = ctx.getInputData()?.[0]?.binary ?? {};
|
|
21
21
|
const binaryMessages = await Promise.all(Object.values(binaryData)
|
|
22
22
|
.filter((data) => data.mimeType.startsWith('image/'))
|
|
23
23
|
.map(async (data) => {
|
|
@@ -147,7 +147,7 @@ async function toolsAgentExecute() {
|
|
|
147
147
|
['placeholder', '{chat_history}'],
|
|
148
148
|
['human', '{input}'],
|
|
149
149
|
];
|
|
150
|
-
const hasBinaryData = this.getInputData(
|
|
150
|
+
const hasBinaryData = this.getInputData()?.[0]?.binary !== undefined;
|
|
151
151
|
if (hasBinaryData && passthroughBinaryImages) {
|
|
152
152
|
const binaryMessage = await extractBinaryMessages(this);
|
|
153
153
|
messages.push(binaryMessage);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute.js","sourceRoot":"","sources":["../../../../../../nodes/agents/Agent/agents/ToolsAgent/execute.ts"],"names":[],"mappings":";;AAqGA,8CAkPC;AAtVD,uDAAwD;AAGxD,qDAA6D;AAC7D,yDAA6D;AAE7D,iDAA8D;AAE9D,6CAAyE;AACzE,mCAA8B;AAC9B,+CAAkG;AAGlG,6BAAwB;AAExB,qCAA0C;AAC1C,0DAIsC;AACtC,yFAG6D;AAE7D,SAAS,qBAAqB,CAAC,YAA6B;IAC3D,MAAM,MAAM,GACV,YAAY,CAAC,SAAS,EAAoC,IAAI,OAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAC,CAAC,MAAM,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oBAC9B,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;iBAC/B,CAAC,CAAC;gBACH,SAAS;YACV,CAAC;YAED,MAAM,KAAK,CAAC;QACb,CAAC;IACF,CAAC;IAED,OAAO,CAAC,UAAU,CAAC,CAAC;AACrB,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { z } from 'zod';
|
|
2
2
|
import type { BaseOutputParser } from '@langchain/core/output_parsers';
|
|
3
3
|
import type { DynamicStructuredTool, Tool } from 'langchain/tools';
|
|
4
4
|
import { type IExecuteFunctions, type INode } from 'n8n-workflow';
|
|
5
|
+
type ZodObjectAny = z.ZodObject<any, any, any, any>;
|
|
5
6
|
export declare function extractParsedOutput(ctx: IExecuteFunctions, outputParser: BaseOutputParser<unknown>, output: string): Promise<Record<string, unknown> | undefined>;
|
|
6
7
|
export declare function checkForStructuredTools(tools: Array<Tool | DynamicStructuredTool<ZodObjectAny>>, node: INode, currentAgentType: string): Promise<void>;
|
|
8
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../nodes/agents/Agent/agents/utils.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../nodes/agents/Agent/agents/utils.ts"],"names":[],"mappings":";;AAOA,kDAeC;AAED,0DAmBC;AAxCD,+CAAsF;AAI/E,KAAK,UAAU,mBAAmB,CACxC,GAAsB,EACtB,YAAuC,EACvC,MAAc;IAEd,MAAM,YAAY,GAAG,CAAC,MAAM,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC,CAErD,CAAC;IAEF,IAAI,GAAG,CAAC,OAAO,EAAE,CAAC,WAAW,IAAI,GAAG,EAAE,CAAC;QACtC,OAAO,YAAY,CAAC;IACrB,CAAC;IAGD,OAAO,YAAY,EAAE,MAAM,IAAI,YAAY,CAAC;AAC7C,CAAC;AAEM,KAAK,UAAU,uBAAuB,CAC5C,KAAwD,EACxD,IAAW,EACX,gBAAwB;IAExB,MAAM,sBAAsB,GAAG,KAAK,CAAC,MAAM,CAC1C,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,KAAK,uBAAuB,CAC3D,CAAC;IACF,IAAI,sBAAsB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACvC,MAAM,WAAW,GAAG,CAAC,IAAkC,EAAE,EAAE,CAAC,IAAI,IAAI,CAAC,IAAI,GAAG,CAAC;QAC7E,MAAM,IAAI,iCAAkB,CAC3B,IAAI,EACJ,4CAA4C,gBAAgB,qCAAqC,EACjG;YACC,SAAS,EAAE,CAAC;YACZ,WAAW,EAAE,iCAAiC,sBAAsB,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;SAClG,CACD,CAAC;IACH,CAAC;AACF,CAAC"}
|
|
@@ -85,7 +85,7 @@ class DocumentGithubLoader {
|
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
87
|
async supplyData(itemIndex) {
|
|
88
|
-
|
|
88
|
+
this.logger.debug('Supplying data for Github Document Loader');
|
|
89
89
|
const repository = this.getNodeParameter('repository', itemIndex);
|
|
90
90
|
const branch = this.getNodeParameter('branch', itemIndex);
|
|
91
91
|
const credentials = await this.getCredentials('githubApi');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentGithubLoader.node.js","sourceRoot":"","sources":["../../../../nodes/document_loaders/DocumentGithubLoader/DocumentGithubLoader.node.ts"],"names":[],"mappings":";;;AAQA,6EAAoF;AAEpF,0DAAuD;AACvD,8DAA2E;AAE3E,MAAa,oBAAoB;IAAjC;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,wBAAwB;YACrC,IAAI,EAAE,sBAAsB;YAC5B,IAAI,EAAE,iBAAiB;YACvB,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YAC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,gEAAgE;4BAC7E,OAAO,EAAE,EAAE;yBACX;qBACD;iBACD;aACD;SACD,CAAC;IAsCH,CAAC;IApCA,KAAK,CAAC,UAAU,CAA6B,SAAiB;QAC7D,
|
|
1
|
+
{"version":3,"file":"DocumentGithubLoader.node.js","sourceRoot":"","sources":["../../../../nodes/document_loaders/DocumentGithubLoader/DocumentGithubLoader.node.ts"],"names":[],"mappings":";;;AAQA,6EAAoF;AAEpF,0DAAuD;AACvD,8DAA2E;AAE3E,MAAa,oBAAoB;IAAjC;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,wBAAwB;YACrC,IAAI,EAAE,sBAAsB;YAC5B,IAAI,EAAE,iBAAiB;YACvB,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,wCAAwC;YACrD,QAAQ,EAAE;gBACT,IAAI,EAAE,wBAAwB;aAC9B;YACD,KAAK,EAAE;gBACN,UAAU,EAAE,CAAC,IAAI,CAAC;gBAClB,aAAa,EAAE;oBACd,EAAE,EAAE,CAAC,kBAAkB,CAAC;iBACxB;gBACD,SAAS,EAAE;oBACV,oBAAoB,EAAE;wBACrB;4BACC,GAAG,EAAE,4GAA4G;yBACjH;qBACD;iBACD;aACD;YACD,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,WAAW;oBACjB,QAAQ,EAAE,IAAI;iBACd;aACD;YAED,MAAM,EAAE;gBACP;oBACC,WAAW,EAAE,eAAe;oBAC5B,cAAc,EAAE,CAAC;oBACjB,IAAI,mBAAmC;iBACvC;aACD;YACD,UAAU,EAAE,CAAC,eAAe,CAAC;YAE7B,OAAO,EAAE,eAA+B;YACxC,WAAW,EAAE,CAAC,UAAU,CAAC;YACzB,UAAU,EAAE;gBACX,IAAA,2CAA4B,EAAC,kBAAkC,CAAC;gBAChE;oBACC,WAAW,EAAE,iBAAiB;oBAC9B,IAAI,EAAE,YAAY;oBAClB,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE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,WAAW,EAAE,SAAS,EAAE,EAAE,CAAC;SAC1D,CAAC,CAAC;QACH,MAAM,IAAI,GAAG,IAAI,yBAAgB,CAAC,UAAU,EAAE;YAC7C,MAAM;YACN,WAAW,EAAE,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;YAChE,SAAS;YACT,WAAW,EAAG,WAAW,CAAC,WAAsB,IAAI,EAAE;YACtD,MAAM,EAAE,WAAW,CAAC,MAAgB;SACpC,CAAC,CAAC;QAEH,MAAM,UAAU,GAAG,YAAY;YAC9B,CAAC,CAAC,MAAM,YAAY,CAAC,cAAc,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;YACtD,CAAC,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;QAErB,IAAI,CAAC,aAAa,gBAAgC,KAAK,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;QACvF,OAAO;YACN,QAAQ,EAAE,IAAA,uBAAU,EAAC,UAAU,EAAE,IAAI,CAAC;SACtC,CAAC;IACH,CAAC;CACD;AAtHD,oDAsHC"}
|
|
@@ -99,6 +99,15 @@ const displayOptions = {
|
|
|
99
99
|
},
|
|
100
100
|
};
|
|
101
101
|
exports.description = (0, n8n_workflow_1.updateDisplayOptions)(displayOptions, properties);
|
|
102
|
+
function getFileIds(file_ids) {
|
|
103
|
+
if (Array.isArray(file_ids)) {
|
|
104
|
+
return file_ids;
|
|
105
|
+
}
|
|
106
|
+
if (typeof file_ids === 'string') {
|
|
107
|
+
return file_ids.split(',').map((file_id) => file_id.trim());
|
|
108
|
+
}
|
|
109
|
+
throw new n8n_workflow_1.ApplicationError('Invalid file_ids type');
|
|
110
|
+
}
|
|
102
111
|
async function execute(i) {
|
|
103
112
|
const assistantId = this.getNodeParameter('assistantId', i, '', { extractValue: true });
|
|
104
113
|
const options = this.getNodeParameter('options', i, {});
|
|
@@ -106,24 +115,14 @@ async function execute(i) {
|
|
|
106
115
|
const assistantDescription = options.description;
|
|
107
116
|
const body = {};
|
|
108
117
|
if (file_ids) {
|
|
109
|
-
|
|
110
|
-
if (
|
|
111
|
-
files = files.split(',').map((file_id) => file_id.trim());
|
|
112
|
-
}
|
|
113
|
-
if (file_ids.length > 20) {
|
|
118
|
+
const files = getFileIds(file_ids);
|
|
119
|
+
if (files.length > 20) {
|
|
114
120
|
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'The maximum number of files that can be attached to the assistant is 20', { itemIndex: i });
|
|
115
121
|
}
|
|
116
122
|
body.tool_resources = {
|
|
117
123
|
...(body.tool_resources ?? {}),
|
|
118
124
|
code_interpreter: {
|
|
119
|
-
file_ids,
|
|
120
|
-
},
|
|
121
|
-
file_search: {
|
|
122
|
-
vector_stores: [
|
|
123
|
-
{
|
|
124
|
-
file_ids,
|
|
125
|
-
},
|
|
126
|
-
],
|
|
125
|
+
file_ids: files,
|
|
127
126
|
},
|
|
128
127
|
};
|
|
129
128
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.operation.js","sourceRoot":"","sources":["../../../../../../nodes/vendors/OpenAi/actions/assistant/update.operation.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"update.operation.js","sourceRoot":"","sources":["../../../../../../nodes/vendors/OpenAi/actions/assistant/update.operation.ts"],"names":[],"mappings":";;;AAkIA,0BAkHC;AA9OD,+CAA0F;AAC1F,+CAA6C;AAC7C,kDAAyD;AAEzD,MAAM,UAAU,GAAsB;IACrC,2BAAY;IACZ;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,EAAE;QACX,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,kBAAkB;gBAC/B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AAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,aAAa,CAAC,CAAC;IAC7D,CAAC;IAED,IAAI,iBAAiB,EAAE,CAAC;QACvB,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,UAAU,CAAC,CAAC;IAC1D,CAAC;IAED,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IAEnB,MAAM,QAAQ,GAAG,MAAM,sBAAU,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,eAAe,WAAW,EAAE,EAAE;QAClF,IAAI;QACJ,OAAO,EAAE;YACR,aAAa,EAAE,eAAe;SAC9B;KACD,CAAC,CAAC;IAEH,OAAO;QACN;YACC,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;SACvB;KACD,CAAC;AACH,CAAC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
[
|
|
2
|
-
{"name":"anthropicApi","displayName":"Anthropic","documentationUrl":"anthropic","properties":[{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"required":true,"default":""}],"authenticate":{"type":"generic","properties":{"headers":{"x-api-key":"={{$credentials.apiKey}}"}}},"test":{"request":{"baseURL":"https://api.anthropic.com","url":"/v1/messages","method":"POST","headers":{"anthropic-version":"2023-06-01"},"body":{"model":"claude-3-haiku-20240307","messages":[{"role":"user","content":"Hey"}],"max_tokens":1}}},"supportedNodes":["
|
|
3
|
-
{"name":"azureOpenAiApi","displayName":"Azure Open AI","documentationUrl":"azureopenai","properties":[{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"required":true,"default":""},{"displayName":"Resource Name","name":"resourceName","type":"string","required":true,"default":""},{"displayName":"API Version","name":"apiVersion","type":"string","required":true,"default":"2023-07-01-preview"},{"displayName":"Endpoint","name":"endpoint","type":"string","placeholder":"https://westeurope.api.cognitive.microsoft.com"}],"authenticate":{"type":"generic","properties":{"headers":{"api-key":"={{$credentials.apiKey}}"}}},"supportedNodes":["
|
|
4
|
-
{"name":"cohereApi","displayName":"CohereApi","documentationUrl":"cohere","properties":[{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"required":true,"default":""}],"authenticate":{"type":"generic","properties":{"headers":{"Authorization":"=Bearer {{$credentials.apiKey}}"}}},"test":{"request":{"baseURL":"https://api.cohere.ai","url":"/v1/models?page_size=1"}},"supportedNodes":["
|
|
5
|
-
{"name":"googlePalmApi","displayName":"Google Gemini(PaLM) Api","documentationUrl":"google","properties":[{"displayName":"Host","name":"host","required":true,"type":"string","default":"https://generativelanguage.googleapis.com"},{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"required":true,"default":""}],"authenticate":{"type":"generic","properties":{"qs":{"key":"={{$credentials.apiKey}}"}}},"test":{"request":{"baseURL":"={{$credentials.host}}/v1beta/models"}},"supportedNodes":["
|
|
6
|
-
{"name":"groqApi","displayName":"Groq","documentationUrl":"groq","properties":[{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"required":true,"default":""}],"authenticate":{"type":"generic","properties":{"headers":{"Authorization":"=Bearer {{$credentials.apiKey}}"}}},"test":{"request":{"baseURL":"https://api.groq.com/openai/v1","url":"/models"}},"supportedNodes":["
|
|
7
|
-
{"name":"huggingFaceApi","displayName":"HuggingFaceApi","documentationUrl":"huggingface","properties":[{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"required":true,"default":""}],"authenticate":{"type":"generic","properties":{"headers":{"Authorization":"=Bearer {{$credentials.apiKey}}"}}},"test":{"request":{"baseURL":"https://api-inference.huggingface.co","url":"/models/gpt2"}},"supportedNodes":["
|
|
8
|
-
{"name":"motorheadApi","displayName":"MotorheadApi","documentationUrl":"motorhead","properties":[{"displayName":"Host","name":"host","required":true,"type":"string","default":"https://api.getmetal.io/v1"},{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"required":true,"default":""},{"displayName":"Client ID","name":"clientId","type":"string","default":""}],"authenticate":{"type":"generic","properties":{"headers":{"x-metal-client-id":"={{$credentials.clientId}}","x-metal-api-key":"={{$credentials.apiKey}}"}}},"test":{"request":{"baseURL":"={{$credentials.host}}/keys/current"}},"supportedNodes":["
|
|
9
|
-
{"name":"mistralCloudApi","displayName":"Mistral Cloud API","documentationUrl":"mistral","properties":[{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"required":true,"default":""}],"authenticate":{"type":"generic","properties":{"headers":{"Authorization":"=Bearer {{$credentials.apiKey}}"}}},"test":{"request":{"baseURL":"https://api.mistral.ai/v1","url":"/models","method":"GET"}},"supportedNodes":["
|
|
10
|
-
{"name":"ollamaApi","displayName":"Ollama","documentationUrl":"ollama","properties":[{"displayName":"Base URL","name":"baseUrl","required":true,"type":"string","default":"http://localhost:11434"}],"test":{"request":{"baseURL":"={{ $credentials.baseUrl }}","url":"/","method":"GET"}},"supportedNodes":["
|
|
11
|
-
{"name":"pineconeApi","displayName":"PineconeApi","documentationUrl":"pinecone","properties":[{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"required":true,"default":""}],"authenticate":{"type":"generic","properties":{"headers":{"Api-Key":"={{$credentials.apiKey}}"}}},"test":{"request":{"baseURL":"https://api.pinecone.io/indexes","headers":{"accept":"application/json; charset=utf-8"}}},"supportedNodes":["
|
|
12
|
-
{"name":"qdrantApi","displayName":"QdrantApi","documentationUrl":"https://docs.n8n.io/integrations/builtin/credentials/qdrant/","properties":[{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"required":false,"default":""},{"displayName":"Qdrant URL","name":"qdrantUrl","type":"string","required":true,"default":""}],"authenticate":{"type":"generic","properties":{"headers":{"api-key":"={{$credentials.apiKey}}"}}},"test":{"request":{"baseURL":"={{$credentials.qdrantUrl}}","headers":{"accept":"application/json; charset=utf-8"}}},"supportedNodes":["
|
|
13
|
-
{"name":"serpApi","displayName":"SerpAPI","documentationUrl":"serp","properties":[{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"required":true,"default":""}],"authenticate":{"type":"generic","properties":{"qs":{"api_key":"={{$credentials.apiKey}}"}}},"test":{"request":{"baseURL":"https://serpapi.com","url":"/account.json "}},"supportedNodes":["
|
|
14
|
-
{"name":"wolframAlphaApi","displayName":"WolframAlphaApi","documentationUrl":"wolframalpha","properties":[{"displayName":"App ID","name":"appId","type":"string","typeOptions":{"password":true},"required":true,"default":""}],"authenticate":{"type":"generic","properties":{"qs":{"api_key":"={{$credentials.appId}}"}}},"test":{"request":{"baseURL":"https://api.wolframalpha.com/v1","url":"=/simple","qs":{"i":"How much is 1 1","appid":"={{$credentials.appId}}"}}},"supportedNodes":["
|
|
15
|
-
{"name":"xataApi","displayName":"Xata Api","documentationUrl":"xata","properties":[{"displayName":"Database Endpoint","name":"databaseEndpoint","required":true,"type":"string","default":"","placeholder":"https://{workspace}.{region}.xata.sh/db/{database}"},{"displayName":"Branch","name":"branch","required":true,"type":"string","default":"main"},{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"required":true,"default":""}],"authenticate":{"type":"generic","properties":{"headers":{"Authorization":"=Bearer {{$credentials.apiKey}}"}}},"test":{"request":{"baseURL":"={{$credentials.databaseEndpoint}}:{{$credentials.branch}}"}},"supportedNodes":["
|
|
16
|
-
{"name":"zepApi","displayName":"Zep Api","documentationUrl":"zep","properties":[{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"required":false,"default":""},{"displayName":"Cloud","description":"Whether you are adding credentials for Zep Cloud instead of Zep Open Source","name":"cloud","type":"boolean","default":false},{"displayName":"API URL","name":"apiUrl","required":false,"type":"string","default":"http://localhost:8000","displayOptions":{"show":{"cloud":[false]}}}],"authenticate":{"type":"generic","properties":{"headers":{"Authorization":"={{$credentials.apiKey && !$credentials.cloud ? \"Bearer \" + $credentials.apiKey : \"Api-Key \" + $credentials.apiKey }}"}}},"test":{"request":{"baseURL":"={{!$credentials.cloud ? $credentials.apiUrl : \"https://api.getzep.com\"}}","url":"={{!$credentials.cloud ? \"/api/v1/collection\" : \"/api/v2/collections\"}}"}},"supportedNodes":["
|
|
2
|
+
{"name":"anthropicApi","displayName":"Anthropic","documentationUrl":"anthropic","properties":[{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"required":true,"default":""}],"authenticate":{"type":"generic","properties":{"headers":{"x-api-key":"={{$credentials.apiKey}}"}}},"test":{"request":{"baseURL":"https://api.anthropic.com","url":"/v1/messages","method":"POST","headers":{"anthropic-version":"2023-06-01"},"body":{"model":"claude-3-haiku-20240307","messages":[{"role":"user","content":"Hey"}],"max_tokens":1}}},"supportedNodes":["lmChatAnthropic"],"iconUrl":"icons/@n8n/n8n-nodes-langchain/dist/nodes/llms/LMChatAnthropic/anthropic.svg"},
|
|
3
|
+
{"name":"azureOpenAiApi","displayName":"Azure Open AI","documentationUrl":"azureopenai","properties":[{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"required":true,"default":""},{"displayName":"Resource Name","name":"resourceName","type":"string","required":true,"default":""},{"displayName":"API Version","name":"apiVersion","type":"string","required":true,"default":"2023-07-01-preview"},{"displayName":"Endpoint","name":"endpoint","type":"string","placeholder":"https://westeurope.api.cognitive.microsoft.com"}],"authenticate":{"type":"generic","properties":{"headers":{"api-key":"={{$credentials.apiKey}}"}}},"supportedNodes":["embeddingsAzureOpenAi","lmChatAzureOpenAi"],"iconUrl":"icons/@n8n/n8n-nodes-langchain/dist/nodes/embeddings/EmbeddingsAzureOpenAi/azure.svg"},
|
|
4
|
+
{"name":"cohereApi","displayName":"CohereApi","documentationUrl":"cohere","properties":[{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"required":true,"default":""}],"authenticate":{"type":"generic","properties":{"headers":{"Authorization":"=Bearer {{$credentials.apiKey}}"}}},"test":{"request":{"baseURL":"https://api.cohere.ai","url":"/v1/models?page_size=1"}},"supportedNodes":["embeddingsCohere","lmCohere"],"iconUrl":{"light":"icons/@n8n/n8n-nodes-langchain/dist/nodes/embeddings/EmbeddingsCohere/cohere.svg","dark":"icons/@n8n/n8n-nodes-langchain/dist/nodes/embeddings/EmbeddingsCohere/cohere.dark.svg"}},
|
|
5
|
+
{"name":"googlePalmApi","displayName":"Google Gemini(PaLM) Api","documentationUrl":"google","properties":[{"displayName":"Host","name":"host","required":true,"type":"string","default":"https://generativelanguage.googleapis.com"},{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"required":true,"default":""}],"authenticate":{"type":"generic","properties":{"qs":{"key":"={{$credentials.apiKey}}"}}},"test":{"request":{"baseURL":"={{$credentials.host}}/v1beta/models"}},"supportedNodes":["embeddingsGoogleGemini","lmChatGoogleGemini"],"iconUrl":"icons/@n8n/n8n-nodes-langchain/dist/nodes/embeddings/EmbeddingsGoogleGemini/google.svg"},
|
|
6
|
+
{"name":"groqApi","displayName":"Groq","documentationUrl":"groq","properties":[{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"required":true,"default":""}],"authenticate":{"type":"generic","properties":{"headers":{"Authorization":"=Bearer {{$credentials.apiKey}}"}}},"test":{"request":{"baseURL":"https://api.groq.com/openai/v1","url":"/models"}},"supportedNodes":["lmChatGroq"],"iconUrl":"icons/@n8n/n8n-nodes-langchain/dist/nodes/llms/LmChatGroq/groq.svg"},
|
|
7
|
+
{"name":"huggingFaceApi","displayName":"HuggingFaceApi","documentationUrl":"huggingface","properties":[{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"required":true,"default":""}],"authenticate":{"type":"generic","properties":{"headers":{"Authorization":"=Bearer {{$credentials.apiKey}}"}}},"test":{"request":{"baseURL":"https://api-inference.huggingface.co","url":"/models/gpt2"}},"supportedNodes":["embeddingsHuggingFaceInference","lmOpenHuggingFaceInference"],"iconUrl":"icons/@n8n/n8n-nodes-langchain/dist/nodes/embeddings/EmbeddingsHuggingFaceInference/huggingface.svg"},
|
|
8
|
+
{"name":"motorheadApi","displayName":"MotorheadApi","documentationUrl":"motorhead","properties":[{"displayName":"Host","name":"host","required":true,"type":"string","default":"https://api.getmetal.io/v1"},{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"required":true,"default":""},{"displayName":"Client ID","name":"clientId","type":"string","default":""}],"authenticate":{"type":"generic","properties":{"headers":{"x-metal-client-id":"={{$credentials.clientId}}","x-metal-api-key":"={{$credentials.apiKey}}"}}},"test":{"request":{"baseURL":"={{$credentials.host}}/keys/current"}},"supportedNodes":["memoryMotorhead"],"icon":"fa:file-export"},
|
|
9
|
+
{"name":"mistralCloudApi","displayName":"Mistral Cloud API","documentationUrl":"mistral","properties":[{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"required":true,"default":""}],"authenticate":{"type":"generic","properties":{"headers":{"Authorization":"=Bearer {{$credentials.apiKey}}"}}},"test":{"request":{"baseURL":"https://api.mistral.ai/v1","url":"/models","method":"GET"}},"supportedNodes":["embeddingsMistralCloud","lmChatMistralCloud"],"iconUrl":"icons/@n8n/n8n-nodes-langchain/dist/nodes/embeddings/EmbeddingsMistralCloud/mistral.svg"},
|
|
10
|
+
{"name":"ollamaApi","displayName":"Ollama","documentationUrl":"ollama","properties":[{"displayName":"Base URL","name":"baseUrl","required":true,"type":"string","default":"http://localhost:11434"}],"test":{"request":{"baseURL":"={{ $credentials.baseUrl }}","url":"/","method":"GET"}},"supportedNodes":["embeddingsOllama","lmChatOllama","lmOllama"],"iconUrl":"icons/@n8n/n8n-nodes-langchain/dist/nodes/embeddings/EmbeddingsOllama/ollama.svg"},
|
|
11
|
+
{"name":"pineconeApi","displayName":"PineconeApi","documentationUrl":"pinecone","properties":[{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"required":true,"default":""}],"authenticate":{"type":"generic","properties":{"headers":{"Api-Key":"={{$credentials.apiKey}}"}}},"test":{"request":{"baseURL":"https://api.pinecone.io/indexes","headers":{"accept":"application/json; charset=utf-8"}}},"supportedNodes":["vectorStorePinecone","vectorStorePineconeInsert","vectorStorePineconeLoad"],"iconUrl":"icons/@n8n/n8n-nodes-langchain/dist/nodes/vector_store/VectorStorePinecone/pinecone.svg"},
|
|
12
|
+
{"name":"qdrantApi","displayName":"QdrantApi","documentationUrl":"https://docs.n8n.io/integrations/builtin/credentials/qdrant/","properties":[{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"required":false,"default":""},{"displayName":"Qdrant URL","name":"qdrantUrl","type":"string","required":true,"default":""}],"authenticate":{"type":"generic","properties":{"headers":{"api-key":"={{$credentials.apiKey}}"}}},"test":{"request":{"baseURL":"={{$credentials.qdrantUrl}}","headers":{"accept":"application/json; charset=utf-8"}}},"supportedNodes":["vectorStoreQdrant"],"iconUrl":"icons/@n8n/n8n-nodes-langchain/dist/nodes/vector_store/VectorStoreQdrant/qdrant.svg"},
|
|
13
|
+
{"name":"serpApi","displayName":"SerpAPI","documentationUrl":"serp","properties":[{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"required":true,"default":""}],"authenticate":{"type":"generic","properties":{"qs":{"api_key":"={{$credentials.apiKey}}"}}},"test":{"request":{"baseURL":"https://serpapi.com","url":"/account.json "}},"supportedNodes":["toolSerpApi"],"iconUrl":"icons/@n8n/n8n-nodes-langchain/dist/nodes/tools/ToolSerpApi/serpApi.svg"},
|
|
14
|
+
{"name":"wolframAlphaApi","displayName":"WolframAlphaApi","documentationUrl":"wolframalpha","properties":[{"displayName":"App ID","name":"appId","type":"string","typeOptions":{"password":true},"required":true,"default":""}],"authenticate":{"type":"generic","properties":{"qs":{"api_key":"={{$credentials.appId}}"}}},"test":{"request":{"baseURL":"https://api.wolframalpha.com/v1","url":"=/simple","qs":{"i":"How much is 1 1","appid":"={{$credentials.appId}}"}}},"supportedNodes":["toolWolframAlpha"],"iconUrl":"icons/@n8n/n8n-nodes-langchain/dist/nodes/tools/ToolWolframAlpha/wolfram-alpha.svg"},
|
|
15
|
+
{"name":"xataApi","displayName":"Xata Api","documentationUrl":"xata","properties":[{"displayName":"Database Endpoint","name":"databaseEndpoint","required":true,"type":"string","default":"","placeholder":"https://{workspace}.{region}.xata.sh/db/{database}"},{"displayName":"Branch","name":"branch","required":true,"type":"string","default":"main"},{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"required":true,"default":""}],"authenticate":{"type":"generic","properties":{"headers":{"Authorization":"=Bearer {{$credentials.apiKey}}"}}},"test":{"request":{"baseURL":"={{$credentials.databaseEndpoint}}:{{$credentials.branch}}"}},"supportedNodes":["memoryXata"],"iconUrl":"icons/@n8n/n8n-nodes-langchain/dist/nodes/memory/MemoryXata/xata.svg"},
|
|
16
|
+
{"name":"zepApi","displayName":"Zep Api","documentationUrl":"zep","properties":[{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"required":false,"default":""},{"displayName":"Cloud","description":"Whether you are adding credentials for Zep Cloud instead of Zep Open Source","name":"cloud","type":"boolean","default":false},{"displayName":"API URL","name":"apiUrl","required":false,"type":"string","default":"http://localhost:8000","displayOptions":{"show":{"cloud":[false]}}}],"authenticate":{"type":"generic","properties":{"headers":{"Authorization":"={{$credentials.apiKey && !$credentials.cloud ? \"Bearer \" + $credentials.apiKey : \"Api-Key \" + $credentials.apiKey }}"}}},"test":{"request":{"baseURL":"={{!$credentials.cloud ? $credentials.apiUrl : \"https://api.getzep.com\"}}","url":"={{!$credentials.cloud ? \"/api/v1/collection\" : \"/api/v2/collections\"}}"}},"supportedNodes":["memoryZep","vectorStoreZep","vectorStoreZepInsert","vectorStoreZepLoad"],"iconUrl":"icons/@n8n/n8n-nodes-langchain/dist/nodes/memory/MemoryZep/zep.png"}
|
|
17
17
|
]
|