Skip to content

Commit e9ef193

Browse files
feat(Jina AI Node): Add Jina AI node (#15094)
1 parent 4824798 commit e9ef193

13 files changed

+1333
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
import type {
2+
IAuthenticateGeneric,
3+
ICredentialTestRequest,
4+
ICredentialType,
5+
INodeProperties,
6+
} from 'n8n-workflow';
7+
8+
export class JinaAiApi implements ICredentialType {
9+
name = 'jinaAiApi';
10+
11+
displayName = 'Jina AI API';
12+
13+
documentationUrl = 'jinaAi';
14+
15+
properties: INodeProperties[] = [
16+
{
17+
displayName: 'API Key',
18+
name: 'apiKey',
19+
type: 'string',
20+
typeOptions: { password: true },
21+
default: '',
22+
},
23+
];
24+
25+
authenticate: IAuthenticateGeneric = {
26+
type: 'generic',
27+
properties: {
28+
headers: {
29+
Authorization: '=Bearer {{ $credentials?.apiKey }}',
30+
},
31+
},
32+
};
33+
34+
test: ICredentialTestRequest = {
35+
request: {
36+
method: 'GET',
37+
url: 'https://embeddings-dashboard-api.jina.ai/api/v1/api_key/fe_user',
38+
qs: {
39+
api_key: '={{$credentials.apiKey}}',
40+
},
41+
},
42+
};
43+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"node": "n8n-nodes-base.jinaAi",
3+
"nodeVersion": "1.0",
4+
"codexVersion": "1.0",
5+
"categories": ["Miscellaneous"],
6+
"resources": {
7+
"credentialDocumentation": [
8+
{
9+
"url": "https://docs.n8n.io/integrations/builtin/credentials/jinaai/"
10+
}
11+
],
12+
"primaryDocumentation": [
13+
{
14+
"url": "https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.jinaai/"
15+
}
16+
]
17+
}
18+
}

0 commit comments

Comments
 (0)