n8n-nodes-vercel-ai-sdk-universal-temp 0.2.90 → 0.2.92
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DescriptionBuilder = void 0;
|
|
4
|
-
const
|
|
4
|
+
const registry_1 = require("./providers/registry");
|
|
5
5
|
class DescriptionBuilder {
|
|
6
6
|
constructor(nodeType) {
|
|
7
7
|
this.nodeType = nodeType;
|
|
@@ -10,10 +10,25 @@ class DescriptionBuilder {
|
|
|
10
10
|
throw new Error('Method not implemented.');
|
|
11
11
|
}
|
|
12
12
|
addProviderSelector() {
|
|
13
|
-
const supportedProviders = Object.entries(
|
|
14
|
-
.filter(([
|
|
13
|
+
const supportedProviders = Object.entries(registry_1.PROVIDER_REGISTRY)
|
|
14
|
+
.filter(([providerKey, provider]) => {
|
|
15
|
+
if (this.nodeType === 'agent') {
|
|
16
|
+
return providerKey === 'letta';
|
|
17
|
+
}
|
|
18
|
+
if (this.nodeType === 'text')
|
|
19
|
+
return provider.capabilities.text === true;
|
|
20
|
+
if (this.nodeType === 'image')
|
|
21
|
+
return provider.capabilities.image === true;
|
|
22
|
+
if (this.nodeType === 'speech')
|
|
23
|
+
return provider.capabilities.speech === true;
|
|
24
|
+
if (this.nodeType === 'embedding')
|
|
25
|
+
return provider.capabilities.embeddings === true;
|
|
26
|
+
if (this.nodeType === 'transcription')
|
|
27
|
+
return provider.capabilities.transcription === true;
|
|
28
|
+
return false;
|
|
29
|
+
})
|
|
15
30
|
.map(([value, provider]) => ({
|
|
16
|
-
name: provider.
|
|
31
|
+
name: provider.name,
|
|
17
32
|
value,
|
|
18
33
|
description: provider.description,
|
|
19
34
|
}));
|
|
@@ -29,10 +44,25 @@ class DescriptionBuilder {
|
|
|
29
44
|
};
|
|
30
45
|
}
|
|
31
46
|
buildCredentials() {
|
|
32
|
-
|
|
33
|
-
.filter(([
|
|
47
|
+
const supportedProviders = Object.entries(registry_1.PROVIDER_REGISTRY)
|
|
48
|
+
.filter(([providerKey, provider]) => {
|
|
49
|
+
if (this.nodeType === 'agent') {
|
|
50
|
+
return providerKey === 'letta';
|
|
51
|
+
}
|
|
52
|
+
if (this.nodeType === 'text')
|
|
53
|
+
return provider.capabilities.text === true;
|
|
54
|
+
if (this.nodeType === 'image')
|
|
55
|
+
return provider.capabilities.image === true;
|
|
56
|
+
if (this.nodeType === 'speech')
|
|
57
|
+
return provider.capabilities.speech === true;
|
|
58
|
+
if (this.nodeType === 'embedding')
|
|
59
|
+
return provider.capabilities.embeddings === true;
|
|
60
|
+
if (this.nodeType === 'transcription')
|
|
61
|
+
return provider.capabilities.transcription === true;
|
|
62
|
+
return false;
|
|
63
|
+
})
|
|
34
64
|
.map(([providerKey, provider]) => ({
|
|
35
|
-
name: provider.
|
|
65
|
+
name: provider.credentialType,
|
|
36
66
|
required: false,
|
|
37
67
|
displayOptions: {
|
|
38
68
|
show: {
|
|
@@ -40,6 +70,7 @@ class DescriptionBuilder {
|
|
|
40
70
|
},
|
|
41
71
|
},
|
|
42
72
|
}));
|
|
73
|
+
return supportedProviders;
|
|
43
74
|
}
|
|
44
75
|
}
|
|
45
76
|
exports.DescriptionBuilder = DescriptionBuilder;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DescriptionBuilder.js","sourceRoot":"","sources":["../../../nodes/shared/DescriptionBuilder.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"DescriptionBuilder.js","sourceRoot":"","sources":["../../../nodes/shared/DescriptionBuilder.ts"],"names":[],"mappings":";;;AACA,mDAAyD;AAIzD,MAAa,kBAAkB;IAC9B,YAAoB,QAAkB;QAAlB,aAAQ,GAAR,QAAQ,CAAU;IAAG,CAAC;IAE1C,KAAK;QACJ,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;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CAAC;QAEL,OAAO,kBAAkB,CAAC;IAC3B,CAAC;CACD;AA/DD,gDA+DC"}
|
|
@@ -66,7 +66,7 @@ exports.PROVIDER_REGISTRY = {
|
|
|
66
66
|
id: 'deepseek',
|
|
67
67
|
name: 'DeepSeek',
|
|
68
68
|
description: 'DeepSeek models with strong reasoning capabilities and cost-effective pricing',
|
|
69
|
-
credentialType: '
|
|
69
|
+
credentialType: 'deepSeekApi',
|
|
70
70
|
models: {
|
|
71
71
|
text: model_lists_1.DEEPSEEK_MODELS,
|
|
72
72
|
},
|
|
@@ -101,7 +101,7 @@ exports.PROVIDER_REGISTRY = {
|
|
|
101
101
|
id: 'openrouter',
|
|
102
102
|
name: 'OpenRouter',
|
|
103
103
|
description: 'Access multiple models through OpenRouter unified API',
|
|
104
|
-
credentialType: '
|
|
104
|
+
credentialType: 'openRouterApi',
|
|
105
105
|
models: {
|
|
106
106
|
text: model_lists_1.OPENROUTER_MODELS,
|
|
107
107
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-vercel-ai-sdk-universal-temp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.92",
|
|
4
4
|
"description": "Universal AI SDK n8n nodes integration",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"n8n-community-node-package"
|
|
@@ -80,6 +80,7 @@
|
|
|
80
80
|
"@openrouter/ai-sdk-provider": "^1.2.3",
|
|
81
81
|
"ai": "^5.0.93",
|
|
82
82
|
"ajv": "^8.17.1",
|
|
83
|
-
"zod": "^4.1.12"
|
|
83
|
+
"zod": "^4.1.12",
|
|
84
|
+
"n8n-workflow": "^1.117.0"
|
|
84
85
|
}
|
|
85
86
|
}
|