namirasoft-inference 1.4.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/NamirasoftInferenceServer.d.ts +23 -0
- package/dist/NamirasoftInferenceServer.js +30 -0
- package/dist/NamirasoftInferenceServer.js.map +1 -0
- package/dist/NamirasoftInferenceServerBase.d.ts +5 -0
- package/dist/NamirasoftInferenceServerBase.js +11 -0
- package/dist/NamirasoftInferenceServerBase.js.map +1 -0
- package/dist/NamirasoftInferenceServerHealth.d.ts +8 -0
- package/dist/NamirasoftInferenceServerHealth.js +35 -0
- package/dist/NamirasoftInferenceServerHealth.js.map +1 -0
- package/dist/NamirasoftInferenceServerHealthz.d.ts +7 -0
- package/dist/NamirasoftInferenceServerHealthz.js +28 -0
- package/dist/NamirasoftInferenceServerHealthz.js.map +1 -0
- package/dist/NamirasoftInferenceServerMetrics.d.ts +7 -0
- package/dist/NamirasoftInferenceServerMetrics.js +28 -0
- package/dist/NamirasoftInferenceServerMetrics.js.map +1 -0
- package/dist/NamirasoftInferenceServerModel.d.ts +25 -0
- package/dist/NamirasoftInferenceServerModel.js +72 -0
- package/dist/NamirasoftInferenceServerModel.js.map +1 -0
- package/dist/NamirasoftInferenceServerModelCategory.d.ts +17 -0
- package/dist/NamirasoftInferenceServerModelCategory.js +56 -0
- package/dist/NamirasoftInferenceServerModelCategory.js.map +1 -0
- package/dist/NamirasoftInferenceServerModelField.d.ts +18 -0
- package/dist/NamirasoftInferenceServerModelField.js +64 -0
- package/dist/NamirasoftInferenceServerModelField.js.map +1 -0
- package/dist/NamirasoftInferenceServerModelTag.d.ts +18 -0
- package/dist/NamirasoftInferenceServerModelTag.js +64 -0
- package/dist/NamirasoftInferenceServerModelTag.js.map +1 -0
- package/dist/NamirasoftInferenceServerUsage.d.ts +8 -0
- package/dist/NamirasoftInferenceServerUsage.js +29 -0
- package/dist/NamirasoftInferenceServerUsage.js.map +1 -0
- package/dist/NamirasoftInferenceServerValue.d.ts +7 -0
- package/dist/NamirasoftInferenceServerValue.js +29 -0
- package/dist/NamirasoftInferenceServerValue.js.map +1 -0
- package/dist/command/HealthCommand.d.ts +4 -0
- package/dist/command/HealthCommand.js +17 -0
- package/dist/command/HealthCommand.js.map +1 -0
- package/dist/command/HealthLivenessCommand.d.ts +5 -0
- package/dist/command/HealthLivenessCommand.js +38 -0
- package/dist/command/HealthLivenessCommand.js.map +1 -0
- package/dist/command/HealthReadinessCommand.d.ts +5 -0
- package/dist/command/HealthReadinessCommand.js +38 -0
- package/dist/command/HealthReadinessCommand.js.map +1 -0
- package/dist/command/HealthzCommand.d.ts +4 -0
- package/dist/command/HealthzCommand.js +15 -0
- package/dist/command/HealthzCommand.js.map +1 -0
- package/dist/command/HealthzGetCommand.d.ts +5 -0
- package/dist/command/HealthzGetCommand.js +38 -0
- package/dist/command/HealthzGetCommand.js.map +1 -0
- package/dist/command/MetricsCommand.d.ts +4 -0
- package/dist/command/MetricsCommand.js +15 -0
- package/dist/command/MetricsCommand.js.map +1 -0
- package/dist/command/MetricsGetCommand.d.ts +5 -0
- package/dist/command/MetricsGetCommand.js +38 -0
- package/dist/command/MetricsGetCommand.js.map +1 -0
- package/dist/command/ModelAskCommand.d.ts +5 -0
- package/dist/command/ModelAskCommand.js +76 -0
- package/dist/command/ModelAskCommand.js.map +1 -0
- package/dist/command/ModelCategoryCommand.d.ts +4 -0
- package/dist/command/ModelCategoryCommand.js +21 -0
- package/dist/command/ModelCategoryCommand.js.map +1 -0
- package/dist/command/ModelCategoryCreateCommand.d.ts +5 -0
- package/dist/command/ModelCategoryCreateCommand.js +49 -0
- package/dist/command/ModelCategoryCreateCommand.js.map +1 -0
- package/dist/command/ModelCategoryDeleteCommand.d.ts +5 -0
- package/dist/command/ModelCategoryDeleteCommand.js +38 -0
- package/dist/command/ModelCategoryDeleteCommand.js.map +1 -0
- package/dist/command/ModelCategoryGetCommand.d.ts +5 -0
- package/dist/command/ModelCategoryGetCommand.js +38 -0
- package/dist/command/ModelCategoryGetCommand.js.map +1 -0
- package/dist/command/ModelCategoryListCommand.d.ts +5 -0
- package/dist/command/ModelCategoryListCommand.js +38 -0
- package/dist/command/ModelCategoryListCommand.js.map +1 -0
- package/dist/command/ModelCommand.d.ts +4 -0
- package/dist/command/ModelCommand.js +25 -0
- package/dist/command/ModelCommand.js.map +1 -0
- package/dist/command/ModelCreateCommand.d.ts +5 -0
- package/dist/command/ModelCreateCommand.js +157 -0
- package/dist/command/ModelCreateCommand.js.map +1 -0
- package/dist/command/ModelDeleteCommand.d.ts +5 -0
- package/dist/command/ModelDeleteCommand.js +38 -0
- package/dist/command/ModelDeleteCommand.js.map +1 -0
- package/dist/command/ModelFieldCommand.d.ts +4 -0
- package/dist/command/ModelFieldCommand.js +23 -0
- package/dist/command/ModelFieldCommand.js.map +1 -0
- package/dist/command/ModelFieldCreateCommand.d.ts +5 -0
- package/dist/command/ModelFieldCreateCommand.js +58 -0
- package/dist/command/ModelFieldCreateCommand.js.map +1 -0
- package/dist/command/ModelFieldDeleteCommand.d.ts +5 -0
- package/dist/command/ModelFieldDeleteCommand.js +38 -0
- package/dist/command/ModelFieldDeleteCommand.js.map +1 -0
- package/dist/command/ModelFieldGetCommand.d.ts +5 -0
- package/dist/command/ModelFieldGetCommand.js +38 -0
- package/dist/command/ModelFieldGetCommand.js.map +1 -0
- package/dist/command/ModelFieldListCommand.d.ts +5 -0
- package/dist/command/ModelFieldListCommand.js +38 -0
- package/dist/command/ModelFieldListCommand.js.map +1 -0
- package/dist/command/ModelFieldUpdateCommand.d.ts +5 -0
- package/dist/command/ModelFieldUpdateCommand.js +58 -0
- package/dist/command/ModelFieldUpdateCommand.js.map +1 -0
- package/dist/command/ModelGetCommand.d.ts +5 -0
- package/dist/command/ModelGetCommand.js +38 -0
- package/dist/command/ModelGetCommand.js.map +1 -0
- package/dist/command/ModelListCommand.d.ts +5 -0
- package/dist/command/ModelListCommand.js +38 -0
- package/dist/command/ModelListCommand.js.map +1 -0
- package/dist/command/ModelTagCommand.d.ts +4 -0
- package/dist/command/ModelTagCommand.js +23 -0
- package/dist/command/ModelTagCommand.js.map +1 -0
- package/dist/command/ModelTagCreateCommand.d.ts +5 -0
- package/dist/command/ModelTagCreateCommand.js +58 -0
- package/dist/command/ModelTagCreateCommand.js.map +1 -0
- package/dist/command/ModelTagDeleteCommand.d.ts +5 -0
- package/dist/command/ModelTagDeleteCommand.js +38 -0
- package/dist/command/ModelTagDeleteCommand.js.map +1 -0
- package/dist/command/ModelTagGetCommand.d.ts +5 -0
- package/dist/command/ModelTagGetCommand.js +38 -0
- package/dist/command/ModelTagGetCommand.js.map +1 -0
- package/dist/command/ModelTagListCommand.d.ts +5 -0
- package/dist/command/ModelTagListCommand.js +38 -0
- package/dist/command/ModelTagListCommand.js.map +1 -0
- package/dist/command/ModelTagUpdateCommand.d.ts +5 -0
- package/dist/command/ModelTagUpdateCommand.js +58 -0
- package/dist/command/ModelTagUpdateCommand.js.map +1 -0
- package/dist/command/ModelUpdateCommand.d.ts +5 -0
- package/dist/command/ModelUpdateCommand.js +157 -0
- package/dist/command/ModelUpdateCommand.js.map +1 -0
- package/dist/command/UsageCommand.d.ts +4 -0
- package/dist/command/UsageCommand.js +15 -0
- package/dist/command/UsageCommand.js.map +1 -0
- package/dist/command/UsageSummaryCommand.d.ts +5 -0
- package/dist/command/UsageSummaryCommand.js +38 -0
- package/dist/command/UsageSummaryCommand.js.map +1 -0
- package/dist/command/ValueCommand.d.ts +4 -0
- package/dist/command/ValueCommand.js +15 -0
- package/dist/command/ValueCommand.js.map +1 -0
- package/dist/command/ValueListCommand.d.ts +5 -0
- package/dist/command/ValueListCommand.js +38 -0
- package/dist/command/ValueListCommand.js.map +1 -0
- package/dist/command/cli.d.ts +2 -0
- package/dist/command/cli.js +30 -0
- package/dist/command/cli.js.map +1 -0
- package/dist/enum/InteractionStatus.d.ts +5 -0
- package/dist/enum/InteractionStatus.js +10 -0
- package/dist/enum/InteractionStatus.js.map +1 -0
- package/dist/enum/ModelModelCompany.d.ts +6 -0
- package/dist/enum/ModelModelCompany.js +11 -0
- package/dist/enum/ModelModelCompany.js.map +1 -0
- package/dist/enum/ModelModelName.d.ts +11 -0
- package/dist/enum/ModelModelName.js +16 -0
- package/dist/enum/ModelModelName.js.map +1 -0
- package/dist/index.d.ts +64 -0
- package/dist/index.js +81 -0
- package/dist/index.js.map +1 -0
- package/dist/meta/ModelCategoryMetaTable.d.ts +15 -0
- package/dist/meta/ModelCategoryMetaTable.js +39 -0
- package/dist/meta/ModelCategoryMetaTable.js.map +1 -0
- package/dist/meta/ModelFieldMetaTable.d.ts +16 -0
- package/dist/meta/ModelFieldMetaTable.js +39 -0
- package/dist/meta/ModelFieldMetaTable.js.map +1 -0
- package/dist/meta/ModelMetaTable.d.ts +62 -0
- package/dist/meta/ModelMetaTable.js +85 -0
- package/dist/meta/ModelMetaTable.js.map +1 -0
- package/dist/meta/ModelTagMetaTable.d.ts +16 -0
- package/dist/meta/ModelTagMetaTable.js +39 -0
- package/dist/meta/ModelTagMetaTable.js.map +1 -0
- package/dist/meta/NamirasoftInferenceMetaDatabase.d.ts +19 -0
- package/dist/meta/NamirasoftInferenceMetaDatabase.js +33 -0
- package/dist/meta/NamirasoftInferenceMetaDatabase.js.map +1 -0
- package/dist/row/EntityCategoryInputRow.d.ts +3 -0
- package/dist/row/EntityCategoryInputRow.js +3 -0
- package/dist/row/EntityCategoryInputRow.js.map +1 -0
- package/dist/row/EntityFieldInputRow.d.ts +4 -0
- package/dist/row/EntityFieldInputRow.js +3 -0
- package/dist/row/EntityFieldInputRow.js.map +1 -0
- package/dist/row/EntityTagInputRow.d.ts +4 -0
- package/dist/row/EntityTagInputRow.js +3 -0
- package/dist/row/EntityTagInputRow.js.map +1 -0
- package/dist/row/InteractionRow.d.ts +22 -0
- package/dist/row/InteractionRow.js +3 -0
- package/dist/row/InteractionRow.js.map +1 -0
- package/dist/row/ModelCategoryRow.d.ts +8 -0
- package/dist/row/ModelCategoryRow.js +3 -0
- package/dist/row/ModelCategoryRow.js.map +1 -0
- package/dist/row/ModelFieldRow.d.ts +9 -0
- package/dist/row/ModelFieldRow.js +3 -0
- package/dist/row/ModelFieldRow.js.map +1 -0
- package/dist/row/ModelInputRow.d.ts +20 -0
- package/dist/row/ModelInputRow.js +3 -0
- package/dist/row/ModelInputRow.js.map +1 -0
- package/dist/row/ModelRow.d.ts +57 -0
- package/dist/row/ModelRow.js +3 -0
- package/dist/row/ModelRow.js.map +1 -0
- package/dist/row/ModelTagRow.d.ts +9 -0
- package/dist/row/ModelTagRow.js +3 -0
- package/dist/row/ModelTagRow.js.map +1 -0
- package/dist/row/UsageSummaryResponseRow.d.ts +9 -0
- package/dist/row/UsageSummaryResponseRow.js +3 -0
- package/dist/row/UsageSummaryResponseRow.js.map +1 -0
- package/logo.png +0 -0
- package/package.json +28 -0
- package/src/NamirasoftInferenceServer.ts +57 -0
- package/src/NamirasoftInferenceServerBase.ts +30 -0
- package/src/NamirasoftInferenceServerHealth.ts +43 -0
- package/src/NamirasoftInferenceServerHealthz.ts +37 -0
- package/src/NamirasoftInferenceServerMetrics.ts +37 -0
- package/src/NamirasoftInferenceServerModel.ts +79 -0
- package/src/NamirasoftInferenceServerModelCategory.ts +64 -0
- package/src/NamirasoftInferenceServerModelField.ts +71 -0
- package/src/NamirasoftInferenceServerModelTag.ts +71 -0
- package/src/NamirasoftInferenceServerUsage.ts +39 -0
- package/src/NamirasoftInferenceServerValue.ts +38 -0
- package/src/command/HealthCommand.ts +34 -0
- package/src/command/HealthLivenessCommand.ts +45 -0
- package/src/command/HealthReadinessCommand.ts +45 -0
- package/src/command/HealthzCommand.ts +32 -0
- package/src/command/HealthzGetCommand.ts +45 -0
- package/src/command/MetricsCommand.ts +32 -0
- package/src/command/MetricsGetCommand.ts +45 -0
- package/src/command/ModelAskCommand.ts +83 -0
- package/src/command/ModelCategoryCommand.ts +38 -0
- package/src/command/ModelCategoryCreateCommand.ts +56 -0
- package/src/command/ModelCategoryDeleteCommand.ts +45 -0
- package/src/command/ModelCategoryGetCommand.ts +45 -0
- package/src/command/ModelCategoryListCommand.ts +45 -0
- package/src/command/ModelCommand.ts +42 -0
- package/src/command/ModelCreateCommand.ts +164 -0
- package/src/command/ModelDeleteCommand.ts +45 -0
- package/src/command/ModelFieldCommand.ts +40 -0
- package/src/command/ModelFieldCreateCommand.ts +65 -0
- package/src/command/ModelFieldDeleteCommand.ts +45 -0
- package/src/command/ModelFieldGetCommand.ts +45 -0
- package/src/command/ModelFieldListCommand.ts +45 -0
- package/src/command/ModelFieldUpdateCommand.ts +65 -0
- package/src/command/ModelGetCommand.ts +45 -0
- package/src/command/ModelListCommand.ts +45 -0
- package/src/command/ModelTagCommand.ts +40 -0
- package/src/command/ModelTagCreateCommand.ts +65 -0
- package/src/command/ModelTagDeleteCommand.ts +45 -0
- package/src/command/ModelTagGetCommand.ts +45 -0
- package/src/command/ModelTagListCommand.ts +45 -0
- package/src/command/ModelTagUpdateCommand.ts +65 -0
- package/src/command/ModelUpdateCommand.ts +164 -0
- package/src/command/UsageCommand.ts +32 -0
- package/src/command/UsageSummaryCommand.ts +45 -0
- package/src/command/ValueCommand.ts +32 -0
- package/src/command/ValueListCommand.ts +45 -0
- package/src/command/cli.ts +49 -0
- package/src/enum/InteractionStatus.ts +26 -0
- package/src/enum/ModelModelCompany.ts +27 -0
- package/src/enum/ModelModelName.ts +32 -0
- package/src/index.ts +84 -0
- package/src/meta/ModelCategoryMetaTable.ts +60 -0
- package/src/meta/ModelFieldMetaTable.ts +61 -0
- package/src/meta/ModelMetaTable.ts +153 -0
- package/src/meta/ModelTagMetaTable.ts +61 -0
- package/src/meta/NamirasoftInferenceMetaDatabase.ts +60 -0
- package/src/row/EntityCategoryInputRow.ts +24 -0
- package/src/row/EntityFieldInputRow.ts +25 -0
- package/src/row/EntityTagInputRow.ts +25 -0
- package/src/row/InteractionRow.ts +44 -0
- package/src/row/ModelCategoryRow.ts +29 -0
- package/src/row/ModelFieldRow.ts +30 -0
- package/src/row/ModelInputRow.ts +42 -0
- package/src/row/ModelRow.ts +79 -0
- package/src/row/ModelTagRow.ts +30 -0
- package/src/row/UsageSummaryResponseRow.ts +30 -0
- package/tsconfig.json +45 -0
|
@@ -0,0 +1,85 @@
|
|
|
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.ModelMetaTable = void 0;
|
|
13
|
+
const namirasoft_core_1 = require("namirasoft-core");
|
|
14
|
+
const namirasoft_site_1 = require("namirasoft-site");
|
|
15
|
+
class ModelMetaTable extends namirasoft_site_1.NSBaseMetaTable {
|
|
16
|
+
constructor(database) {
|
|
17
|
+
super(database, "model", "Model", new namirasoft_core_1.BaseUUID("chat-mdl"));
|
|
18
|
+
this.columns = {
|
|
19
|
+
id: new namirasoft_core_1.BaseMetaColumn(this, "id", "ID", "String", true),
|
|
20
|
+
user_id: new namirasoft_core_1.BaseMetaColumn(this, "user_id", "User ID", "String", true),
|
|
21
|
+
workspace_id: new namirasoft_core_1.BaseMetaColumn(this, "workspace_id", "Workspace ID", "String", true),
|
|
22
|
+
name: new namirasoft_core_1.BaseMetaColumn(this, "name", "Name", "String", true),
|
|
23
|
+
model_company: new namirasoft_core_1.BaseMetaColumn(this, "model_company", "Model Company", "Enum", true),
|
|
24
|
+
model_name: new namirasoft_core_1.BaseMetaColumn(this, "model_name", "Model Name", "Enum", true),
|
|
25
|
+
model_api_key_credential_id: new namirasoft_core_1.BaseMetaColumn(this, "model_api_key_credential_id", "Model API Key Credential ID", "String", false),
|
|
26
|
+
cost_limit_per_month: new namirasoft_core_1.BaseMetaColumn(this, "cost_limit_per_month", "Cost Limit Per Month", "Float", false),
|
|
27
|
+
cost_limit_per_week: new namirasoft_core_1.BaseMetaColumn(this, "cost_limit_per_week", "Cost Limit Per Week", "Float", false),
|
|
28
|
+
cost_limit_per_day: new namirasoft_core_1.BaseMetaColumn(this, "cost_limit_per_day", "Cost Limit Per Day", "Float", false),
|
|
29
|
+
cost_limit_per_chat: new namirasoft_core_1.BaseMetaColumn(this, "cost_limit_per_chat", "Cost Limit Per Chat", "Float", false),
|
|
30
|
+
cost_limit_per_run: new namirasoft_core_1.BaseMetaColumn(this, "cost_limit_per_run", "Cost Limit Per Run", "Float", false),
|
|
31
|
+
total_token: new namirasoft_core_1.BaseMetaColumn(this, "total_token", "Total Token", "Integer", true),
|
|
32
|
+
total_token_input: new namirasoft_core_1.BaseMetaColumn(this, "total_token_input", "Total Token Input", "Integer", true),
|
|
33
|
+
total_token_output: new namirasoft_core_1.BaseMetaColumn(this, "total_token_output", "Total Token Output", "Integer", true),
|
|
34
|
+
total_paid: new namirasoft_core_1.BaseMetaColumn(this, "total_paid", "Total Paid", "Integer", true),
|
|
35
|
+
total_paid_input: new namirasoft_core_1.BaseMetaColumn(this, "total_paid_input", "Total Paid Input", "Integer", true),
|
|
36
|
+
total_paid_output: new namirasoft_core_1.BaseMetaColumn(this, "total_paid_output", "Total Paid Output", "Integer", true),
|
|
37
|
+
total_cost: new namirasoft_core_1.BaseMetaColumn(this, "total_cost", "Total Cost", "Integer", true),
|
|
38
|
+
total_cost_input: new namirasoft_core_1.BaseMetaColumn(this, "total_cost_input", "Total Cost Input", "Integer", true),
|
|
39
|
+
total_cost_output: new namirasoft_core_1.BaseMetaColumn(this, "total_cost_output", "Total Cost Output", "Integer", true),
|
|
40
|
+
total_monthly_started_at: new namirasoft_core_1.BaseMetaColumn(this, "total_monthly_started_at", "Total Monthly Started At", "DateTime", true),
|
|
41
|
+
total_monthly_token: new namirasoft_core_1.BaseMetaColumn(this, "total_monthly_token", "Total Monthly Token", "Integer", true),
|
|
42
|
+
total_monthly_token_input: new namirasoft_core_1.BaseMetaColumn(this, "total_monthly_token_input", "Total Monthly Token Input", "Integer", true),
|
|
43
|
+
total_monthly_token_output: new namirasoft_core_1.BaseMetaColumn(this, "total_monthly_token_output", "Total Monthly Token Output", "Integer", true),
|
|
44
|
+
total_monthly_paid: new namirasoft_core_1.BaseMetaColumn(this, "total_monthly_paid", "Total Monthly Paid", "Integer", true),
|
|
45
|
+
total_monthly_paid_input: new namirasoft_core_1.BaseMetaColumn(this, "total_monthly_paid_input", "Total Monthly Paid Input", "Integer", true),
|
|
46
|
+
total_monthly_paid_output: new namirasoft_core_1.BaseMetaColumn(this, "total_monthly_paid_output", "Total Monthly Paid Output", "Integer", true),
|
|
47
|
+
total_monthly_cost: new namirasoft_core_1.BaseMetaColumn(this, "total_monthly_cost", "Total Monthly Cost", "Integer", true),
|
|
48
|
+
total_monthly_cost_input: new namirasoft_core_1.BaseMetaColumn(this, "total_monthly_cost_input", "Total Monthly Cost Input", "Integer", true),
|
|
49
|
+
total_monthly_cost_output: new namirasoft_core_1.BaseMetaColumn(this, "total_monthly_cost_output", "Total Monthly Cost Output", "Integer", true),
|
|
50
|
+
total_weekly_started_at: new namirasoft_core_1.BaseMetaColumn(this, "total_weekly_started_at", "Total Weekly Started At", "DateTime", true),
|
|
51
|
+
total_weekly_token: new namirasoft_core_1.BaseMetaColumn(this, "total_weekly_token", "Total Weekly Token", "Integer", true),
|
|
52
|
+
total_weekly_token_input: new namirasoft_core_1.BaseMetaColumn(this, "total_weekly_token_input", "Total Weekly Token Input", "Integer", true),
|
|
53
|
+
total_weekly_token_output: new namirasoft_core_1.BaseMetaColumn(this, "total_weekly_token_output", "Total Weekly Token Output", "Integer", true),
|
|
54
|
+
total_weekly_paid: new namirasoft_core_1.BaseMetaColumn(this, "total_weekly_paid", "Total Weekly Paid", "Integer", true),
|
|
55
|
+
total_weekly_paid_input: new namirasoft_core_1.BaseMetaColumn(this, "total_weekly_paid_input", "Total Weekly Paid Input", "Integer", true),
|
|
56
|
+
total_weekly_paid_output: new namirasoft_core_1.BaseMetaColumn(this, "total_weekly_paid_output", "Total Weekly Paid Output", "Integer", true),
|
|
57
|
+
total_weekly_cost: new namirasoft_core_1.BaseMetaColumn(this, "total_weekly_cost", "Total Weekly Cost", "Integer", true),
|
|
58
|
+
total_weekly_cost_input: new namirasoft_core_1.BaseMetaColumn(this, "total_weekly_cost_input", "Total Weekly Cost Input", "Integer", true),
|
|
59
|
+
total_weekly_cost_output: new namirasoft_core_1.BaseMetaColumn(this, "total_weekly_cost_output", "Total Weekly Cost Output", "Integer", true),
|
|
60
|
+
total_daily_started_at: new namirasoft_core_1.BaseMetaColumn(this, "total_daily_started_at", "Total Daily Started At", "DateTime", true),
|
|
61
|
+
total_daily_token: new namirasoft_core_1.BaseMetaColumn(this, "total_daily_token", "Total Daily Token", "Integer", true),
|
|
62
|
+
total_daily_token_input: new namirasoft_core_1.BaseMetaColumn(this, "total_daily_token_input", "Total Daily Token Input", "Integer", true),
|
|
63
|
+
total_daily_token_output: new namirasoft_core_1.BaseMetaColumn(this, "total_daily_token_output", "Total Daily Token Output", "Integer", true),
|
|
64
|
+
total_daily_paid: new namirasoft_core_1.BaseMetaColumn(this, "total_daily_paid", "Total Daily Paid", "Integer", true),
|
|
65
|
+
total_daily_paid_input: new namirasoft_core_1.BaseMetaColumn(this, "total_daily_paid_input", "Total Daily Paid Input", "Integer", true),
|
|
66
|
+
total_daily_paid_output: new namirasoft_core_1.BaseMetaColumn(this, "total_daily_paid_output", "Total Daily Paid Output", "Integer", true),
|
|
67
|
+
total_daily_cost: new namirasoft_core_1.BaseMetaColumn(this, "total_daily_cost", "Total Daily Cost", "Integer", true),
|
|
68
|
+
total_daily_cost_input: new namirasoft_core_1.BaseMetaColumn(this, "total_daily_cost_input", "Total Daily Cost Input", "Integer", true),
|
|
69
|
+
total_daily_cost_output: new namirasoft_core_1.BaseMetaColumn(this, "total_daily_cost_output", "Total Daily Cost Output", "Integer", true),
|
|
70
|
+
created_at: new namirasoft_core_1.BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
71
|
+
updated_at: new namirasoft_core_1.BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
72
|
+
};
|
|
73
|
+
this.back_end.get = (id) => __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
let server = this.database.getServer();
|
|
75
|
+
return yield server.model.Get(id);
|
|
76
|
+
});
|
|
77
|
+
this.back_end.list = (filters, page, size, sorts) => __awaiter(this, void 0, void 0, function* () {
|
|
78
|
+
let server = this.database.getServer();
|
|
79
|
+
return yield server.model.List(filters, page, size, sorts);
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
exports.ModelMetaTable = ModelMetaTable;
|
|
84
|
+
;
|
|
85
|
+
//# sourceMappingURL=ModelMetaTable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModelMetaTable.js","sourceRoot":"","sources":["../../src/meta/ModelMetaTable.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAA2D;AAG3D,qDAAsE;AAGtE,MAAa,cAAe,SAAQ,iCAAoD;IAyDpF,YAAY,QAAuD;QAE/D,KAAK,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,0BAAQ,CAAC,UAAU,CAAC,CAAC,CAAC;QAC5D,IAAI,CAAC,OAAO,GAAG;YACX,EAAE,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC;YACxD,OAAO,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAA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BAAsB,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,SAAS,EAAE,IAAI,CAAC;YACrH,uBAAuB,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,SAAS,EAAE,IAAI,CAAC;YACxH,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;YAClF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;SACrF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAO,EAAU,EAAE,EAAE;YAErC,IAAI,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,CAAC;YACvC,OAAO,MAAM,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QACtC,CAAC,CAAA,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,IAAI,GAAG,CAAO,OAA4B,EAAE,IAAqB,EAAE,IAAqB,EAAE,KAAiB,EAAE,EAAE;YAEzH,IAAI,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,CAAC;YACvC,OAAO,MAAM,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;QAC/D,CAAC,CAAA,CAAC;IACN,CAAC;CACJ;AA9HD,wCA8HC;AAAA,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseMetaColumn } from "namirasoft-core";
|
|
2
|
+
import { ModelTagRow } from "../row/ModelTagRow";
|
|
3
|
+
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
4
|
+
import { NamirasoftInferenceServer } from "../NamirasoftInferenceServer";
|
|
5
|
+
export declare class ModelTagMetaTable extends NSBaseMetaTable<NamirasoftInferenceServer, ModelTagRow> {
|
|
6
|
+
columns: {
|
|
7
|
+
id: BaseMetaColumn;
|
|
8
|
+
user_id: BaseMetaColumn;
|
|
9
|
+
entity_id: BaseMetaColumn;
|
|
10
|
+
name: BaseMetaColumn;
|
|
11
|
+
value: BaseMetaColumn;
|
|
12
|
+
created_at: BaseMetaColumn;
|
|
13
|
+
updated_at: BaseMetaColumn;
|
|
14
|
+
};
|
|
15
|
+
constructor(database: NSBaseMetaDatabase<NamirasoftInferenceServer>);
|
|
16
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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.ModelTagMetaTable = void 0;
|
|
13
|
+
const namirasoft_core_1 = require("namirasoft-core");
|
|
14
|
+
const namirasoft_site_1 = require("namirasoft-site");
|
|
15
|
+
class ModelTagMetaTable extends namirasoft_site_1.NSBaseMetaTable {
|
|
16
|
+
constructor(database) {
|
|
17
|
+
super(database, "model_tag", "Model Tag", new namirasoft_core_1.BaseUUID(""));
|
|
18
|
+
this.columns = {
|
|
19
|
+
id: new namirasoft_core_1.BaseMetaColumn(this, "id", "ID", "Integer", true),
|
|
20
|
+
user_id: new namirasoft_core_1.BaseMetaColumn(this, "user_id", "User ID", "String", true),
|
|
21
|
+
entity_id: new namirasoft_core_1.BaseMetaColumn(this, "entity_id", "Entity ID", "String", true),
|
|
22
|
+
name: new namirasoft_core_1.BaseMetaColumn(this, "name", "Name", "String", true),
|
|
23
|
+
value: new namirasoft_core_1.BaseMetaColumn(this, "value", "Value", "String", false),
|
|
24
|
+
created_at: new namirasoft_core_1.BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
25
|
+
updated_at: new namirasoft_core_1.BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
26
|
+
};
|
|
27
|
+
this.back_end.get = (id) => __awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
let server = this.database.getServer();
|
|
29
|
+
return yield server.model_tag.Get(id);
|
|
30
|
+
});
|
|
31
|
+
this.back_end.list = (filters, page, size, sorts) => __awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
let server = this.database.getServer();
|
|
33
|
+
return yield server.model_tag.List(filters, page, size, sorts);
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.ModelTagMetaTable = ModelTagMetaTable;
|
|
38
|
+
;
|
|
39
|
+
//# sourceMappingURL=ModelTagMetaTable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModelTagMetaTable.js","sourceRoot":"","sources":["../../src/meta/ModelTagMetaTable.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAA2D;AAG3D,qDAAsE;AAGtE,MAAa,iBAAkB,SAAQ,iCAAuD;IAW1F,YAAY,QAAuD;QAE/D,KAAK,CAAC,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,IAAI,0BAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;QAC5D,IAAI,CAAC,OAAO,GAAG;YACX,EAAE,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC;YACzD,OAAO,EAAE,IAAI,gCAAc,CAAC,I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
2
|
+
import { ModelFieldMetaTable } from "./ModelFieldMetaTable";
|
|
3
|
+
import { ModelMetaTable } from "./ModelMetaTable";
|
|
4
|
+
import { ModelTagMetaTable } from "./ModelTagMetaTable";
|
|
5
|
+
import { NSBaseMetaDatabase } from "namirasoft-site";
|
|
6
|
+
import { NamirasoftInferenceServer } from "../NamirasoftInferenceServer";
|
|
7
|
+
import { TokenManager } from "namirasoft-account";
|
|
8
|
+
export declare class NamirasoftInferenceMetaDatabase extends NSBaseMetaDatabase<NamirasoftInferenceServer> {
|
|
9
|
+
private token_manager?;
|
|
10
|
+
private onError?;
|
|
11
|
+
tables: {
|
|
12
|
+
model_category: ModelCategoryMetaTable;
|
|
13
|
+
model_field: ModelFieldMetaTable;
|
|
14
|
+
model_tag: ModelTagMetaTable;
|
|
15
|
+
model: ModelMetaTable;
|
|
16
|
+
};
|
|
17
|
+
constructor(token_manager?: TokenManager, onError?: (error: Error) => void);
|
|
18
|
+
getServer(): NamirasoftInferenceServer;
|
|
19
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NamirasoftInferenceMetaDatabase = void 0;
|
|
4
|
+
const namirasoft_core_1 = require("namirasoft-core");
|
|
5
|
+
const ModelCategoryMetaTable_1 = require("./ModelCategoryMetaTable");
|
|
6
|
+
const ModelFieldMetaTable_1 = require("./ModelFieldMetaTable");
|
|
7
|
+
const ModelMetaTable_1 = require("./ModelMetaTable");
|
|
8
|
+
const ModelTagMetaTable_1 = require("./ModelTagMetaTable");
|
|
9
|
+
const namirasoft_site_1 = require("namirasoft-site");
|
|
10
|
+
const NamirasoftInferenceServer_1 = require("../NamirasoftInferenceServer");
|
|
11
|
+
class NamirasoftInferenceMetaDatabase extends namirasoft_site_1.NSBaseMetaDatabase {
|
|
12
|
+
constructor(token_manager, onError) {
|
|
13
|
+
super({ id: "prd-610fc648e3de41cb", name: "Namirasoft Inference", headline: "Your Models. Your Questions. One Unified Inference API.", description: "Namirasoft Inference is a flexible LLM inference service that lets you register and configure your own models, then query them through a single consistent interface. Define the providers and models you trust, send your prompts, and get fast, reliable responses - without rewriting your integration every time your stack evolves.", logo: "https://static.namirasoft.com/image/namirasoft/inference/logo/base.png", link: "" });
|
|
14
|
+
this.token_manager = token_manager;
|
|
15
|
+
this.onError = onError;
|
|
16
|
+
this.tables = {
|
|
17
|
+
model_category: new ModelCategoryMetaTable_1.ModelCategoryMetaTable(this),
|
|
18
|
+
model_field: new ModelFieldMetaTable_1.ModelFieldMetaTable(this),
|
|
19
|
+
model_tag: new ModelTagMetaTable_1.ModelTagMetaTable(this),
|
|
20
|
+
model: new ModelMetaTable_1.ModelMetaTable(this),
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
getServer() {
|
|
24
|
+
if (!this.token_manager || !this.onError)
|
|
25
|
+
throw new Error("Arguments of NamirasoftInferenceMetaDatabase (token_manager, onError) are required for server operations.");
|
|
26
|
+
let NAME = namirasoft_site_1.NSBaseMetaDatabase.getServerBaseURL(this.product.name);
|
|
27
|
+
let BASE_URL = new namirasoft_core_1.EnvService(NAME, true).getString();
|
|
28
|
+
return new NamirasoftInferenceServer_1.NamirasoftInferenceServer(BASE_URL, this.token_manager, this.onError);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.NamirasoftInferenceMetaDatabase = NamirasoftInferenceMetaDatabase;
|
|
32
|
+
;
|
|
33
|
+
//# sourceMappingURL=NamirasoftInferenceMetaDatabase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NamirasoftInferenceMetaDatabase.js","sourceRoot":"","sources":["../../src/meta/NamirasoftInferenceMetaDatabase.ts"],"names":[],"mappings":";;;AAoBA,qDAA6C;AAC7C,qEAAkE;AAClE,+DAA4D;AAC5D,qDAAkD;AAClD,2DAAwD;AACxD,qDAAqD;AACrD,4EAAyE;AAGzE,MAAa,+BAAgC,SAAQ,oCAA6C;IAU9F,YAAY,aAA4B,EAAE,OAAgC;QAEtE,KAAK,CAAC,EAAE,EAAE,EAAE,sBAAsB,EAAE,IAAI,EAAE,sBAAsB,EAAE,QAAQ,EAAE,yDAAyD,EAAE,WAAW,EAAE,0UAA0U,EAAE,IAAI,EAAE,wEAAwE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;QAC5jB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG;YACV,cAAc,EAAE,IAAI,+CAAsB,CAAC,IAAI,CAAC;YAChD,WAAW,EAAE,IAAI,yCAAmB,CAAC,IAAI,CAAC;YAC1C,SAAS,EAAE,IAAI,qCAAiB,CAAC,IAAI,CAAC;YACtC,KAAK,EAAE,IAAI,+BAAc,CAAC,IAAI,CAAC;SAClC,CAAC;IACN,CAAC;IACQ,SAAS;QAEd,IAAI,CAAC,IAAI,CAAC,aAAa,IAAI,CAAC,IAAI,CAAC,OAAO;YACpC,MAAM,IAAI,KAAK,CAAC,2GAA2G,CAAC,CAAA;QAChI,IAAI,IAAI,GAAG,oCAAkB,CAAC,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAClE,IAAI,QAAQ,GAAG,IAAI,4BAAU,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,SAAS,EAAE,CAAC;QACtD,OAAO,IAAI,qDAAyB,CAAC,QAAQ,EAAE,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IACrF,CAAC;CACJ;AA9BD,0EA8BC;AAAA,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EntityCategoryInputRow.js","sourceRoot":"","sources":["../../src/row/EntityCategoryInputRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EntityFieldInputRow.js","sourceRoot":"","sources":["../../src/row/EntityFieldInputRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EntityTagInputRow.js","sourceRoot":"","sources":["../../src/row/EntityTagInputRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { InteractionStatus } from "../enum/InteractionStatus";
|
|
2
|
+
export type InteractionRow = {
|
|
3
|
+
id: string;
|
|
4
|
+
user_id: string;
|
|
5
|
+
workspace_id: string;
|
|
6
|
+
chat_id: string;
|
|
7
|
+
run_id: (string | null);
|
|
8
|
+
model_id: string;
|
|
9
|
+
message_user: string;
|
|
10
|
+
message_ai: string;
|
|
11
|
+
message_error: (string | null);
|
|
12
|
+
status: InteractionStatus;
|
|
13
|
+
total_token: number;
|
|
14
|
+
total_token_input: number;
|
|
15
|
+
total_token_output: number;
|
|
16
|
+
total_cost: number;
|
|
17
|
+
total_cost_input: number;
|
|
18
|
+
total_cost_output: number;
|
|
19
|
+
duration: number;
|
|
20
|
+
created_at: Date;
|
|
21
|
+
updated_at: Date;
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InteractionRow.js","sourceRoot":"","sources":["../../src/row/InteractionRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModelCategoryRow.js","sourceRoot":"","sources":["../../src/row/ModelCategoryRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModelFieldRow.js","sourceRoot":"","sources":["../../src/row/ModelFieldRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EntityCategoryInputRow } from "./EntityCategoryInputRow";
|
|
2
|
+
import { EntityFieldInputRow } from "./EntityFieldInputRow";
|
|
3
|
+
import { EntityTagInputRow } from "./EntityTagInputRow";
|
|
4
|
+
import { ModelModelCompany } from "../enum/ModelModelCompany";
|
|
5
|
+
import { ModelModelName } from "../enum/ModelModelName";
|
|
6
|
+
export type ModelInputRow = {
|
|
7
|
+
workspace_id: (string | null);
|
|
8
|
+
name: string;
|
|
9
|
+
model_company: ModelModelCompany;
|
|
10
|
+
model_name: ModelModelName;
|
|
11
|
+
model_api_key_credential_id: (string | null);
|
|
12
|
+
cost_limit_per_month: (number | null);
|
|
13
|
+
cost_limit_per_week: (number | null);
|
|
14
|
+
cost_limit_per_day: (number | null);
|
|
15
|
+
cost_limit_per_chat: (number | null);
|
|
16
|
+
cost_limit_per_run: (number | null);
|
|
17
|
+
model_category: (EntityCategoryInputRow | null)[];
|
|
18
|
+
model_field: (EntityFieldInputRow | null)[];
|
|
19
|
+
model_tag: (EntityTagInputRow | null)[];
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModelInputRow.js","sourceRoot":"","sources":["../../src/row/ModelInputRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { ModelModelCompany } from "../enum/ModelModelCompany";
|
|
2
|
+
import { ModelModelName } from "../enum/ModelModelName";
|
|
3
|
+
export type ModelRow = {
|
|
4
|
+
id: string;
|
|
5
|
+
user_id: string;
|
|
6
|
+
workspace_id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
model_company: ModelModelCompany;
|
|
9
|
+
model_name: ModelModelName;
|
|
10
|
+
model_api_key_credential_id: (string | null);
|
|
11
|
+
cost_limit_per_month: (number | null);
|
|
12
|
+
cost_limit_per_week: (number | null);
|
|
13
|
+
cost_limit_per_day: (number | null);
|
|
14
|
+
cost_limit_per_chat: (number | null);
|
|
15
|
+
cost_limit_per_run: (number | null);
|
|
16
|
+
total_token: number;
|
|
17
|
+
total_token_input: number;
|
|
18
|
+
total_token_output: number;
|
|
19
|
+
total_paid: number;
|
|
20
|
+
total_paid_input: number;
|
|
21
|
+
total_paid_output: number;
|
|
22
|
+
total_cost: number;
|
|
23
|
+
total_cost_input: number;
|
|
24
|
+
total_cost_output: number;
|
|
25
|
+
total_monthly_started_at: Date;
|
|
26
|
+
total_monthly_token: number;
|
|
27
|
+
total_monthly_token_input: number;
|
|
28
|
+
total_monthly_token_output: number;
|
|
29
|
+
total_monthly_paid: number;
|
|
30
|
+
total_monthly_paid_input: number;
|
|
31
|
+
total_monthly_paid_output: number;
|
|
32
|
+
total_monthly_cost: number;
|
|
33
|
+
total_monthly_cost_input: number;
|
|
34
|
+
total_monthly_cost_output: number;
|
|
35
|
+
total_weekly_started_at: Date;
|
|
36
|
+
total_weekly_token: number;
|
|
37
|
+
total_weekly_token_input: number;
|
|
38
|
+
total_weekly_token_output: number;
|
|
39
|
+
total_weekly_paid: number;
|
|
40
|
+
total_weekly_paid_input: number;
|
|
41
|
+
total_weekly_paid_output: number;
|
|
42
|
+
total_weekly_cost: number;
|
|
43
|
+
total_weekly_cost_input: number;
|
|
44
|
+
total_weekly_cost_output: number;
|
|
45
|
+
total_daily_started_at: Date;
|
|
46
|
+
total_daily_token: number;
|
|
47
|
+
total_daily_token_input: number;
|
|
48
|
+
total_daily_token_output: number;
|
|
49
|
+
total_daily_paid: number;
|
|
50
|
+
total_daily_paid_input: number;
|
|
51
|
+
total_daily_paid_output: number;
|
|
52
|
+
total_daily_cost: number;
|
|
53
|
+
total_daily_cost_input: number;
|
|
54
|
+
total_daily_cost_output: number;
|
|
55
|
+
created_at: Date;
|
|
56
|
+
updated_at: Date;
|
|
57
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModelRow.js","sourceRoot":"","sources":["../../src/row/ModelRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModelTagRow.js","sourceRoot":"","sources":["../../src/row/ModelTagRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UsageSummaryResponseRow.js","sourceRoot":"","sources":["../../src/row/UsageSummaryResponseRow.ts"],"names":[],"mappings":""}
|
package/logo.png
ADDED
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "namirasoft-inference",
|
|
3
|
+
"title": "Namirasoft Inference NPM Package",
|
|
4
|
+
"description": "Namira Software Corporation Inference NPM Package",
|
|
5
|
+
"icon": "logo.png",
|
|
6
|
+
"logo": "https://static.namirasoft.com/image/namirasoft/inference/logo/base.png",
|
|
7
|
+
"language": "ts",
|
|
8
|
+
"framework": "npm",
|
|
9
|
+
"application": "package",
|
|
10
|
+
"private": false,
|
|
11
|
+
"version": "1.4.0",
|
|
12
|
+
"author": "Amir Abolhasani",
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"main": "./dist/index.js",
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": ""
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"namirasoft-core": "^1.4.114",
|
|
21
|
+
"namirasoft-site": "^1.4.45",
|
|
22
|
+
"namirasoft-node-cli": "^1.4.13",
|
|
23
|
+
"namirasoft-account": "^1.4.108"
|
|
24
|
+
},
|
|
25
|
+
"bin": {
|
|
26
|
+
"ns-inference": "./dist/command/cli.js"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { NSABaseServer } from "namirasoft-account";
|
|
22
|
+
import { NamirasoftInferenceServerHealth } from "./NamirasoftInferenceServerHealth";
|
|
23
|
+
import { NamirasoftInferenceServerHealthz } from "./NamirasoftInferenceServerHealthz";
|
|
24
|
+
import { NamirasoftInferenceServerMetrics } from "./NamirasoftInferenceServerMetrics";
|
|
25
|
+
import { NamirasoftInferenceServerModel } from "./NamirasoftInferenceServerModel";
|
|
26
|
+
import { NamirasoftInferenceServerModelCategory } from "./NamirasoftInferenceServerModelCategory";
|
|
27
|
+
import { NamirasoftInferenceServerModelField } from "./NamirasoftInferenceServerModelField";
|
|
28
|
+
import { NamirasoftInferenceServerModelTag } from "./NamirasoftInferenceServerModelTag";
|
|
29
|
+
import { NamirasoftInferenceServerUsage } from "./NamirasoftInferenceServerUsage";
|
|
30
|
+
import { NamirasoftInferenceServerValue } from "./NamirasoftInferenceServerValue";
|
|
31
|
+
import { TokenManager } from "namirasoft-account";
|
|
32
|
+
|
|
33
|
+
export class NamirasoftInferenceServer extends NSABaseServer
|
|
34
|
+
{
|
|
35
|
+
healthz: NamirasoftInferenceServerHealthz;
|
|
36
|
+
health: NamirasoftInferenceServerHealth;
|
|
37
|
+
metrics: NamirasoftInferenceServerMetrics;
|
|
38
|
+
value: NamirasoftInferenceServerValue;
|
|
39
|
+
model_category: NamirasoftInferenceServerModelCategory;
|
|
40
|
+
model_field: NamirasoftInferenceServerModelField;
|
|
41
|
+
model_tag: NamirasoftInferenceServerModelTag;
|
|
42
|
+
model: NamirasoftInferenceServerModel;
|
|
43
|
+
usage: NamirasoftInferenceServerUsage;
|
|
44
|
+
constructor(base_url: string, token_manager: TokenManager, onError: (error: Error) => void)
|
|
45
|
+
{
|
|
46
|
+
super(base_url, `1.4.0`, token_manager, onError);
|
|
47
|
+
this.healthz = new NamirasoftInferenceServerHealthz(this);
|
|
48
|
+
this.health = new NamirasoftInferenceServerHealth(this);
|
|
49
|
+
this.metrics = new NamirasoftInferenceServerMetrics(this);
|
|
50
|
+
this.value = new NamirasoftInferenceServerValue(this);
|
|
51
|
+
this.model_category = new NamirasoftInferenceServerModelCategory(this);
|
|
52
|
+
this.model_field = new NamirasoftInferenceServerModelField(this);
|
|
53
|
+
this.model_tag = new NamirasoftInferenceServerModelTag(this);
|
|
54
|
+
this.model = new NamirasoftInferenceServerModel(this);
|
|
55
|
+
this.usage = new NamirasoftInferenceServerUsage(this);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { NamirasoftInferenceServer } from "./NamirasoftInferenceServer";
|
|
22
|
+
|
|
23
|
+
export class NamirasoftInferenceServerBase
|
|
24
|
+
{
|
|
25
|
+
public server: NamirasoftInferenceServer;
|
|
26
|
+
constructor(server: NamirasoftInferenceServer)
|
|
27
|
+
{
|
|
28
|
+
this.server = server;
|
|
29
|
+
}
|
|
30
|
+
};
|