@izzai/n8n-nodes-izzone 0.0.17 → 0.0.21
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/README.md
CHANGED
@@ -8,8 +8,8 @@ To set up the development environment for the izz.ONE n8n nodes, follow these st
|
|
8
8
|
|
9
9
|
1. **Clone the Repository**: Clone the repository to your local machine using Git.
|
10
10
|
```bash
|
11
|
-
git clone
|
12
|
-
cd n8n-izzone
|
11
|
+
git clone git@github.com:izzai/account.git
|
12
|
+
cd account/apps/n8n-nodes-izzone
|
13
13
|
```
|
14
14
|
2. **Install Dependencies**: Use npm or yarn to install the required dependencies.
|
15
15
|
```bash
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.IzzOne = void 0;
|
4
|
+
const constants_1 = require("../constants");
|
4
5
|
class IzzOne {
|
5
6
|
name = 'IzzOneApi';
|
6
7
|
displayName = 'izz.ONE API';
|
@@ -34,6 +35,15 @@ class IzzOne {
|
|
34
35
|
placeholder: 'Enter your instance ID',
|
35
36
|
description: 'The unique identifier for your izz.ONE instance',
|
36
37
|
},
|
38
|
+
{
|
39
|
+
displayName: 'API Base URL',
|
40
|
+
name: 'baseUrl',
|
41
|
+
type: 'string',
|
42
|
+
default: constants_1.BASE_URL,
|
43
|
+
placeholder: constants_1.BASE_URL,
|
44
|
+
description: `The base URL for the izz.ONE API. Default is ${constants_1.BASE_URL}.`,
|
45
|
+
hint: 'You can change this if you are using an enterprise version of izz.ONE',
|
46
|
+
},
|
37
47
|
];
|
38
48
|
}
|
39
49
|
exports.IzzOne = IzzOne;
|
@@ -182,7 +182,7 @@ class IzzOne {
|
|
182
182
|
body: requestBody,
|
183
183
|
url: new URL(
|
184
184
|
// /v1/chat or /v1/chat/stream
|
185
|
-
['/v1/chat', streaming && 'stream'].filter(Boolean).join('/'), constants_1.BASE_URL).href,
|
185
|
+
['/v1/chat', streaming && 'stream'].filter(Boolean).join('/'), (credentials.baseUrl || constants_1.BASE_URL)).href,
|
186
186
|
json: true,
|
187
187
|
};
|
188
188
|
responseData = await this.helpers.httpRequest(requestOptions);
|
package/dist/utils/methods.js
CHANGED
@@ -8,7 +8,7 @@ const generic_1 = require("./generic");
|
|
8
8
|
async function getLlms() {
|
9
9
|
const credentials = await this.getCredentials('IzzOneApi');
|
10
10
|
const path = '/v1/model/available-models';
|
11
|
-
const url = new URL(path, constants_1.BASE_URL);
|
11
|
+
const url = new URL(path, (credentials.baseUrl || constants_1.BASE_URL));
|
12
12
|
url.searchParams.append('limit', Number.MAX_SAFE_INTEGER.toString());
|
13
13
|
const response = await this.helpers.httpRequest({
|
14
14
|
method: 'GET',
|
@@ -29,7 +29,7 @@ async function getLlms() {
|
|
29
29
|
async function getAgents() {
|
30
30
|
const credentials = await this.getCredentials('IzzOneApi');
|
31
31
|
const path = '/v1/agent';
|
32
|
-
const url = new URL(path, constants_1.BASE_URL);
|
32
|
+
const url = new URL(path, (credentials.baseUrl || constants_1.BASE_URL));
|
33
33
|
url.searchParams.append('limit', Number.MAX_SAFE_INTEGER.toString());
|
34
34
|
const response = await this.helpers.httpRequest({
|
35
35
|
method: 'GET',
|
@@ -50,7 +50,7 @@ async function getAgents() {
|
|
50
50
|
async function getDatasources() {
|
51
51
|
const credentials = await this.getCredentials('IzzOneApi');
|
52
52
|
const path = '/v1/datasource';
|
53
|
-
const url = new URL(path, constants_1.BASE_URL);
|
53
|
+
const url = new URL(path, (credentials.baseUrl || constants_1.BASE_URL));
|
54
54
|
url.searchParams.append('limit', Number.MAX_SAFE_INTEGER.toString());
|
55
55
|
const response = await this.helpers.httpRequest({
|
56
56
|
method: 'GET',
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@izzai/n8n-nodes-izzone",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.21",
|
4
4
|
"description": "n8n custom node for izz.ONE",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|
@@ -8,7 +8,7 @@
|
|
8
8
|
"homepage": "https://www.izz.ai/",
|
9
9
|
"repository": {
|
10
10
|
"type": "git",
|
11
|
-
"url": "https://github.com
|
11
|
+
"url": "https://github.com/izzai/account"
|
12
12
|
},
|
13
13
|
"scripts": {
|
14
14
|
"lint": "eslint src",
|
@@ -49,7 +49,7 @@
|
|
49
49
|
"name": "Adarsh Mohan",
|
50
50
|
"email": "adarsh@izz.ai"
|
51
51
|
},
|
52
|
-
"license": "
|
52
|
+
"license": "CHECK LICENSE.md",
|
53
53
|
"files": [
|
54
54
|
"dist",
|
55
55
|
"LICENSE.md"
|