namirasoft-inference 1.5.12 → 1.5.13

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,166 +1,193 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.ModelUpdateCommand = void 0;
13
- const namirasoft_node_cli_1 = require("namirasoft-node-cli");
14
- const namirasoft_core_1 = require("namirasoft-core");
15
- const NamirasoftInferenceServer_1 = require("../NamirasoftInferenceServer");
16
- const namirasoft_account_1 = require("namirasoft-account");
17
- class ModelUpdateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
- constructor(argv) {
19
- super(argv, ["id"], [
20
- {
21
- name: "workspace_id",
22
- short: "",
23
- description: "Provides the value of 'workspace_id' in body",
24
- optional: true,
25
- args: ["workspace_id"],
26
- defaults: [""]
27
- },
28
- {
29
- name: "name",
30
- short: "",
31
- description: "Provides the value of 'name' in body",
32
- optional: false,
33
- args: ["name"],
34
- defaults: [""]
35
- },
36
- {
37
- name: "model_company",
38
- short: "",
39
- description: "Provides the value of 'model_company' in body",
40
- optional: false,
41
- args: ["model_company"],
42
- defaults: [""]
43
- },
44
- {
45
- name: "model_name",
46
- short: "",
47
- description: "Provides the value of 'model_name' in body",
48
- optional: false,
49
- args: ["model_name"],
50
- defaults: [""]
51
- },
52
- {
53
- name: "settings",
54
- short: "",
55
- description: "Provides the value of 'settings' in body",
56
- optional: true,
57
- args: ["settings"],
58
- defaults: [""]
59
- },
60
- {
61
- name: "model_api_key_credential_id",
62
- short: "",
63
- description: "Provides the value of 'model_api_key_credential_id' in body",
64
- optional: true,
65
- args: ["model_api_key_credential_id"],
66
- defaults: [""]
67
- },
68
- {
69
- name: "cost_limit_per_month",
70
- short: "",
71
- description: "Provides the value of 'cost_limit_per_month' in body",
72
- optional: true,
73
- args: ["cost_limit_per_month"],
74
- defaults: [""]
75
- },
76
- {
77
- name: "cost_limit_per_week",
78
- short: "",
79
- description: "Provides the value of 'cost_limit_per_week' in body",
80
- optional: true,
81
- args: ["cost_limit_per_week"],
82
- defaults: [""]
83
- },
84
- {
85
- name: "cost_limit_per_day",
86
- short: "",
87
- description: "Provides the value of 'cost_limit_per_day' in body",
88
- optional: true,
89
- args: ["cost_limit_per_day"],
90
- defaults: [""]
91
- },
92
- {
93
- name: "cost_limit_per_chat",
94
- short: "",
95
- description: "Provides the value of 'cost_limit_per_chat' in body",
96
- optional: true,
97
- args: ["cost_limit_per_chat"],
98
- defaults: [""]
99
- },
100
- {
101
- name: "cost_limit_per_run",
102
- short: "",
103
- description: "Provides the value of 'cost_limit_per_run' in body",
104
- optional: true,
105
- args: ["cost_limit_per_run"],
106
- defaults: [""]
107
- },
108
- {
109
- name: "model_category",
110
- short: "",
111
- description: "Provides the value of 'model_category' in body",
112
- optional: false,
113
- args: ["model_category"],
114
- defaults: [""]
115
- },
116
- {
117
- name: "model_field",
118
- short: "",
119
- description: "Provides the value of 'model_field' in body",
120
- optional: false,
121
- args: ["model_field"],
122
- defaults: [""]
123
- },
124
- {
125
- name: "model_tag",
126
- short: "",
127
- description: "Provides the value of 'model_tag' in body",
128
- optional: false,
129
- args: ["model_tag"],
130
- defaults: [""]
131
- }
132
- ]);
133
- }
134
- exec() {
135
- return __awaiter(this, void 0, void 0, function* () {
136
- let token = this.app.storage.getNSAToken();
137
- if (token == null)
138
- throw new Error("Token is not available. Please login first using:\nns-inference ns-account config \nor \nns-inference ns-account login.");
139
- let storage = new namirasoft_core_1.IStorageMemoryDedicated();
140
- let token_manager = new namirasoft_account_1.TokenManager(storage, () => { });
141
- token_manager.setValue(token, false);
142
- let url = this.app.storage.getItem("ns-inference-server-url");
143
- let server = new NamirasoftInferenceServer_1.NamirasoftInferenceServer(url, token_manager, e => this.app.logger.error(e.message));
144
- let ans = yield server.model.Update(this.arg_values[0], {
145
- workspace_id: this.option_values.workspace_id,
146
- name: this.option_values.name,
147
- model_company: this.option_values.model_company,
148
- model_name: this.option_values.model_name,
149
- settings: this.option_values.settings,
150
- model_api_key_credential_id: this.option_values.model_api_key_credential_id,
151
- cost_limit_per_month: this.option_values.cost_limit_per_month,
152
- cost_limit_per_week: this.option_values.cost_limit_per_week,
153
- cost_limit_per_day: this.option_values.cost_limit_per_day,
154
- cost_limit_per_chat: this.option_values.cost_limit_per_chat,
155
- cost_limit_per_run: this.option_values.cost_limit_per_run,
156
- model_category: this.option_values.model_category,
157
- model_field: this.option_values.model_field,
158
- model_tag: this.option_values.model_tag
159
- });
160
- this.app.logger.success(JSON.stringify(ans));
161
- });
162
- }
163
- }
164
- exports.ModelUpdateCommand = ModelUpdateCommand;
165
- ;
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ModelUpdateCommand = void 0;
13
+ const namirasoft_node_cli_1 = require("namirasoft-node-cli");
14
+ const namirasoft_core_1 = require("namirasoft-core");
15
+ const NamirasoftInferenceServer_1 = require("../NamirasoftInferenceServer");
16
+ const namirasoft_account_1 = require("namirasoft-account");
17
+ class ModelUpdateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
+ constructor(argv) {
19
+ super(argv, ["id"], [
20
+ {
21
+ name: "workspace_id",
22
+ short: "",
23
+ description: "Provides the value of 'workspace_id' in body",
24
+ optional: true,
25
+ args: ["workspace_id"],
26
+ defaults: [""]
27
+ },
28
+ {
29
+ name: "name",
30
+ short: "",
31
+ description: "Provides the value of 'name' in body",
32
+ optional: false,
33
+ args: ["name"],
34
+ defaults: [""]
35
+ },
36
+ {
37
+ name: "model_company",
38
+ short: "",
39
+ description: "Provides the value of 'model_company' in body",
40
+ optional: false,
41
+ args: ["model_company"],
42
+ defaults: [""]
43
+ },
44
+ {
45
+ name: "model_name",
46
+ short: "",
47
+ description: "Provides the value of 'model_name' in body",
48
+ optional: false,
49
+ args: ["model_name"],
50
+ defaults: [""]
51
+ },
52
+ {
53
+ name: "settings",
54
+ short: "",
55
+ description: "Provides the value of 'settings' in body",
56
+ optional: true,
57
+ args: ["settings"],
58
+ defaults: [""]
59
+ },
60
+ {
61
+ name: "model_api_key_credential_id",
62
+ short: "",
63
+ description: "Provides the value of 'model_api_key_credential_id' in body",
64
+ optional: true,
65
+ args: ["model_api_key_credential_id"],
66
+ defaults: [""]
67
+ },
68
+ {
69
+ name: "cost_limit_per_month",
70
+ short: "",
71
+ description: "Provides the value of 'cost_limit_per_month' in body",
72
+ optional: true,
73
+ args: ["cost_limit_per_month"],
74
+ defaults: [""]
75
+ },
76
+ {
77
+ name: "cost_limit_per_week",
78
+ short: "",
79
+ description: "Provides the value of 'cost_limit_per_week' in body",
80
+ optional: true,
81
+ args: ["cost_limit_per_week"],
82
+ defaults: [""]
83
+ },
84
+ {
85
+ name: "cost_limit_per_day",
86
+ short: "",
87
+ description: "Provides the value of 'cost_limit_per_day' in body",
88
+ optional: true,
89
+ args: ["cost_limit_per_day"],
90
+ defaults: [""]
91
+ },
92
+ {
93
+ name: "cost_limit_per_chat",
94
+ short: "",
95
+ description: "Provides the value of 'cost_limit_per_chat' in body",
96
+ optional: true,
97
+ args: ["cost_limit_per_chat"],
98
+ defaults: [""]
99
+ },
100
+ {
101
+ name: "cost_limit_per_run",
102
+ short: "",
103
+ description: "Provides the value of 'cost_limit_per_run' in body",
104
+ optional: true,
105
+ args: ["cost_limit_per_run"],
106
+ defaults: [""]
107
+ },
108
+ {
109
+ name: "json_force",
110
+ short: "",
111
+ description: "Provides the value of 'json_force' in body",
112
+ optional: false,
113
+ args: ["json_force"],
114
+ defaults: [""]
115
+ },
116
+ {
117
+ name: "json_system_prompt",
118
+ short: "",
119
+ description: "Provides the value of 'json_system_prompt' in body",
120
+ optional: false,
121
+ args: ["json_system_prompt"],
122
+ defaults: [""]
123
+ },
124
+ {
125
+ name: "json_correction",
126
+ short: "",
127
+ description: "Provides the value of 'json_correction' in body",
128
+ optional: false,
129
+ args: ["json_correction"],
130
+ defaults: [""]
131
+ },
132
+ {
133
+ name: "model_category",
134
+ short: "",
135
+ description: "Provides the value of 'model_category' in body",
136
+ optional: false,
137
+ args: ["model_category"],
138
+ defaults: [""]
139
+ },
140
+ {
141
+ name: "model_field",
142
+ short: "",
143
+ description: "Provides the value of 'model_field' in body",
144
+ optional: false,
145
+ args: ["model_field"],
146
+ defaults: [""]
147
+ },
148
+ {
149
+ name: "model_tag",
150
+ short: "",
151
+ description: "Provides the value of 'model_tag' in body",
152
+ optional: false,
153
+ args: ["model_tag"],
154
+ defaults: [""]
155
+ }
156
+ ]);
157
+ }
158
+ exec() {
159
+ return __awaiter(this, void 0, void 0, function* () {
160
+ let token = this.app.storage.getNSAToken();
161
+ if (token == null)
162
+ throw new Error("Token is not available. Please login first using:\nns-inference ns-account config \nor \nns-inference ns-account login.");
163
+ let storage = new namirasoft_core_1.IStorageMemoryDedicated();
164
+ let token_manager = new namirasoft_account_1.TokenManager(storage, () => { });
165
+ token_manager.setValue(token, false);
166
+ let url = this.app.storage.getItem("ns-inference-server-url");
167
+ let server = new NamirasoftInferenceServer_1.NamirasoftInferenceServer(url, token_manager, e => this.app.logger.error(e.message));
168
+ let ans = yield server.model.Update(this.arg_values[0], {
169
+ workspace_id: this.option_values.workspace_id,
170
+ name: this.option_values.name,
171
+ model_company: this.option_values.model_company,
172
+ model_name: this.option_values.model_name,
173
+ settings: this.option_values.settings,
174
+ model_api_key_credential_id: this.option_values.model_api_key_credential_id,
175
+ cost_limit_per_month: this.option_values.cost_limit_per_month,
176
+ cost_limit_per_week: this.option_values.cost_limit_per_week,
177
+ cost_limit_per_day: this.option_values.cost_limit_per_day,
178
+ cost_limit_per_chat: this.option_values.cost_limit_per_chat,
179
+ cost_limit_per_run: this.option_values.cost_limit_per_run,
180
+ json_force: this.option_values.json_force,
181
+ json_system_prompt: this.option_values.json_system_prompt,
182
+ json_correction: this.option_values.json_correction,
183
+ model_category: this.option_values.model_category,
184
+ model_field: this.option_values.model_field,
185
+ model_tag: this.option_values.model_tag
186
+ });
187
+ this.app.logger.success(JSON.stringify(ans));
188
+ });
189
+ }
190
+ }
191
+ exports.ModelUpdateCommand = ModelUpdateCommand;
192
+ ;
166
193
  //# sourceMappingURL=ModelUpdateCommand.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ModelUpdateCommand.js","sourceRoot":"","sources":["../../src/command/ModelUpdateCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,4EAAyE;AACzE,2DAAkD;AAElD,MAAa,kBAAmB,SAAQ,sCAAgB;IAEpD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE;YAChB;gBACI,IAAI,EAAE,cAAc;gBACpB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,8CAA8C;gBAC3D,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE,CAAC,cAAc,CAAC;gBACtB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAA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a;gBAC/C,UAAU,EAAE,IAAI,CAAC,aAAa,CAAC,UAAU;gBACzC,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,QAAQ;gBACrC,2BAA2B,EAAE,IAAI,CAAC,aAAa,CAAC,2BAA2B;gBAC3E,oBAAoB,EAAE,IAAI,CAAC,aAAa,CAAC,oBAAoB;gBAC7D,mBAAmB,EAAE,IAAI,CAAC,aAAa,CAAC,mBAAmB;gBAC3D,kBAAkB,EAAE,IAAI,CAAC,aAAa,CAAC,kBAAkB;gBACzD,mBAAmB,EAAE,IAAI,CAAC,aAAa,CAAC,mBAAmB;gBAC3D,kBAAkB,EAAE,IAAI,CAAC,aAAa,CAAC,kBAAkB;gBACzD,UAAU,EAAE,IAAI,CAAC,aAAa,CAAC,UAAU;gBACzC,kBAAkB,EAAE,IAAI,CAAC,aAAa,CAAC,kBAAkB;gBACzD,eAAe,EAAE,IAAI,CAAC,aAAa,CAAC,eAAe;gBACnD,cAAc,EAAE,IAAI,CAAC,aAAa,CAAC,cAAc;gBACjD,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,WAAW;gBAC3C,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC,SAAS;aAC1C,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AA9KD,gDA8KC;AAAA,CAAC"}
@@ -1,38 +1,38 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.UsageSummaryCommand = void 0;
13
- const namirasoft_node_cli_1 = require("namirasoft-node-cli");
14
- const namirasoft_core_1 = require("namirasoft-core");
15
- const NamirasoftInferenceServer_1 = require("../NamirasoftInferenceServer");
16
- const namirasoft_account_1 = require("namirasoft-account");
17
- class UsageSummaryCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
- constructor(argv) {
19
- super(argv, ["model_id", "started_at", "ended_at"], []);
20
- }
21
- exec() {
22
- return __awaiter(this, void 0, void 0, function* () {
23
- let token = this.app.storage.getNSAToken();
24
- if (token == null)
25
- throw new Error("Token is not available. Please login first using:\nns-inference ns-account config \nor \nns-inference ns-account login.");
26
- let storage = new namirasoft_core_1.IStorageMemoryDedicated();
27
- let token_manager = new namirasoft_account_1.TokenManager(storage, () => { });
28
- token_manager.setValue(token, false);
29
- let url = this.app.storage.getItem("ns-inference-server-url");
30
- let server = new NamirasoftInferenceServer_1.NamirasoftInferenceServer(url, token_manager, e => this.app.logger.error(e.message));
31
- let ans = yield server.usage.Summary(this.arg_values[0], this.arg_values[1], this.arg_values[2]);
32
- this.app.logger.success(JSON.stringify(ans));
33
- });
34
- }
35
- }
36
- exports.UsageSummaryCommand = UsageSummaryCommand;
37
- ;
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.UsageSummaryCommand = void 0;
13
+ const namirasoft_node_cli_1 = require("namirasoft-node-cli");
14
+ const namirasoft_core_1 = require("namirasoft-core");
15
+ const NamirasoftInferenceServer_1 = require("../NamirasoftInferenceServer");
16
+ const namirasoft_account_1 = require("namirasoft-account");
17
+ class UsageSummaryCommand extends namirasoft_node_cli_1.BaseFinalCommand {
18
+ constructor(argv) {
19
+ super(argv, ["inferencer_type", "inferencer_id", "started_at", "ended_at"], []);
20
+ }
21
+ exec() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ let token = this.app.storage.getNSAToken();
24
+ if (token == null)
25
+ throw new Error("Token is not available. Please login first using:\nns-inference ns-account config \nor \nns-inference ns-account login.");
26
+ let storage = new namirasoft_core_1.IStorageMemoryDedicated();
27
+ let token_manager = new namirasoft_account_1.TokenManager(storage, () => { });
28
+ token_manager.setValue(token, false);
29
+ let url = this.app.storage.getItem("ns-inference-server-url");
30
+ let server = new NamirasoftInferenceServer_1.NamirasoftInferenceServer(url, token_manager, e => this.app.logger.error(e.message));
31
+ let ans = yield server.usage.Summary(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3]);
32
+ this.app.logger.success(JSON.stringify(ans));
33
+ });
34
+ }
35
+ }
36
+ exports.UsageSummaryCommand = UsageSummaryCommand;
37
+ ;
38
38
  //# sourceMappingURL=UsageSummaryCommand.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UsageSummaryCommand.js","sourceRoot":"","sources":["../../src/command/UsageSummaryCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,4EAAyE;AACzE,2DAAkD;AAElD,MAAa,mBAAoB,SAAQ,sCAAgB;IAErD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,UAAU,EAAE,YAAY,EAAE,UAAU,CAAC,EAAE,EAAE,CAAC,CAAC;IAC5D,CAAC;IACc,IAAI;;YAEf,IAAI,KAAK,GAAG,IAAI,CAAC,GAAG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import { NamirasoftInferenceServer } from "../NamirasoftInferenceServer";
5
- export declare class ModelMetaTable extends NSBaseMetaTable<NamirasoftInferenceServer, ModelRow> {
6
- columns: {
7
- id: BaseMetaColumn;
8
- user_id: BaseMetaColumn;
9
- workspace_id: BaseMetaColumn;
10
- name: BaseMetaColumn;
11
- model_company: BaseMetaColumn;
12
- model_name: BaseMetaColumn;
13
- settings: BaseMetaColumn;
14
- model_api_key_credential_id: BaseMetaColumn;
15
- cost_limit_per_month: BaseMetaColumn;
16
- cost_limit_per_week: BaseMetaColumn;
17
- cost_limit_per_day: BaseMetaColumn;
18
- cost_limit_per_chat: BaseMetaColumn;
19
- cost_limit_per_run: BaseMetaColumn;
20
- total_token: BaseMetaColumn;
21
- total_token_input: BaseMetaColumn;
22
- total_token_output: BaseMetaColumn;
23
- total_paid: BaseMetaColumn;
24
- total_paid_input: BaseMetaColumn;
25
- total_paid_output: BaseMetaColumn;
26
- total_cost: BaseMetaColumn;
27
- total_cost_input: BaseMetaColumn;
28
- total_cost_output: BaseMetaColumn;
29
- total_monthly_started_at: BaseMetaColumn;
30
- total_monthly_token: BaseMetaColumn;
31
- total_monthly_token_input: BaseMetaColumn;
32
- total_monthly_token_output: BaseMetaColumn;
33
- total_monthly_paid: BaseMetaColumn;
34
- total_monthly_paid_input: BaseMetaColumn;
35
- total_monthly_paid_output: BaseMetaColumn;
36
- total_monthly_cost: BaseMetaColumn;
37
- total_monthly_cost_input: BaseMetaColumn;
38
- total_monthly_cost_output: BaseMetaColumn;
39
- total_weekly_started_at: BaseMetaColumn;
40
- total_weekly_token: BaseMetaColumn;
41
- total_weekly_token_input: BaseMetaColumn;
42
- total_weekly_token_output: BaseMetaColumn;
43
- total_weekly_paid: BaseMetaColumn;
44
- total_weekly_paid_input: BaseMetaColumn;
45
- total_weekly_paid_output: BaseMetaColumn;
46
- total_weekly_cost: BaseMetaColumn;
47
- total_weekly_cost_input: BaseMetaColumn;
48
- total_weekly_cost_output: BaseMetaColumn;
49
- total_daily_started_at: BaseMetaColumn;
50
- total_daily_token: BaseMetaColumn;
51
- total_daily_token_input: BaseMetaColumn;
52
- total_daily_token_output: BaseMetaColumn;
53
- total_daily_paid: BaseMetaColumn;
54
- total_daily_paid_input: BaseMetaColumn;
55
- total_daily_paid_output: BaseMetaColumn;
56
- total_daily_cost: BaseMetaColumn;
57
- total_daily_cost_input: BaseMetaColumn;
58
- total_daily_cost_output: BaseMetaColumn;
59
- created_at: BaseMetaColumn;
60
- updated_at: BaseMetaColumn;
61
- };
62
- constructor(database: NSBaseMetaDatabase<NamirasoftInferenceServer>);
63
- }
1
+ import { BaseMetaColumn } from "namirasoft-core";
2
+ import { ModelRow } from "../row/ModelRow";
3
+ import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
4
+ import { NamirasoftInferenceServer } from "../NamirasoftInferenceServer";
5
+ export declare class ModelMetaTable extends NSBaseMetaTable<NamirasoftInferenceServer, ModelRow> {
6
+ columns: {
7
+ id: BaseMetaColumn;
8
+ user_id: BaseMetaColumn;
9
+ workspace_id: BaseMetaColumn;
10
+ name: BaseMetaColumn;
11
+ model_company: BaseMetaColumn;
12
+ model_name: BaseMetaColumn;
13
+ settings: BaseMetaColumn;
14
+ model_api_key_credential_id: BaseMetaColumn;
15
+ cost_limit_per_month: BaseMetaColumn;
16
+ cost_limit_per_week: BaseMetaColumn;
17
+ cost_limit_per_day: BaseMetaColumn;
18
+ cost_limit_per_chat: BaseMetaColumn;
19
+ cost_limit_per_run: BaseMetaColumn;
20
+ json_force: BaseMetaColumn;
21
+ json_system_prompt: BaseMetaColumn;
22
+ json_correction: BaseMetaColumn;
23
+ total_token: BaseMetaColumn;
24
+ total_token_input: BaseMetaColumn;
25
+ total_token_output: BaseMetaColumn;
26
+ total_paid: BaseMetaColumn;
27
+ total_paid_input: BaseMetaColumn;
28
+ total_paid_output: BaseMetaColumn;
29
+ total_cost: BaseMetaColumn;
30
+ total_cost_input: BaseMetaColumn;
31
+ total_cost_output: BaseMetaColumn;
32
+ total_monthly_started_at: BaseMetaColumn;
33
+ total_monthly_token: BaseMetaColumn;
34
+ total_monthly_token_input: BaseMetaColumn;
35
+ total_monthly_token_output: BaseMetaColumn;
36
+ total_monthly_paid: BaseMetaColumn;
37
+ total_monthly_paid_input: BaseMetaColumn;
38
+ total_monthly_paid_output: BaseMetaColumn;
39
+ total_monthly_cost: BaseMetaColumn;
40
+ total_monthly_cost_input: BaseMetaColumn;
41
+ total_monthly_cost_output: BaseMetaColumn;
42
+ total_weekly_started_at: BaseMetaColumn;
43
+ total_weekly_token: BaseMetaColumn;
44
+ total_weekly_token_input: BaseMetaColumn;
45
+ total_weekly_token_output: BaseMetaColumn;
46
+ total_weekly_paid: BaseMetaColumn;
47
+ total_weekly_paid_input: BaseMetaColumn;
48
+ total_weekly_paid_output: BaseMetaColumn;
49
+ total_weekly_cost: BaseMetaColumn;
50
+ total_weekly_cost_input: BaseMetaColumn;
51
+ total_weekly_cost_output: BaseMetaColumn;
52
+ total_daily_started_at: BaseMetaColumn;
53
+ total_daily_token: BaseMetaColumn;
54
+ total_daily_token_input: BaseMetaColumn;
55
+ total_daily_token_output: BaseMetaColumn;
56
+ total_daily_paid: BaseMetaColumn;
57
+ total_daily_paid_input: BaseMetaColumn;
58
+ total_daily_paid_output: BaseMetaColumn;
59
+ total_daily_cost: BaseMetaColumn;
60
+ total_daily_cost_input: BaseMetaColumn;
61
+ total_daily_cost_output: BaseMetaColumn;
62
+ created_at: BaseMetaColumn;
63
+ updated_at: BaseMetaColumn;
64
+ };
65
+ constructor(database: NSBaseMetaDatabase<NamirasoftInferenceServer>);
66
+ }