ksyun-sdk-node 1.5.33 → 1.5.35
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/service/Aicp/v20240612/index.js +257 -59
- package/dist/service/Aicp/v20251114/index.js +306 -0
- package/dist/service/Aicp/v20251212/index.js +1 -0
- package/package.json +1 -1
- package/src/service/Aicp/v20240612/index.js +257 -59
- package/src/service/Aicp/v20251114/index.js +298 -0
- package/src/service/Aicp/v20251212/index.js +1 -0
|
@@ -332,6 +332,102 @@ module.exports = class Client extends BaseClient {
|
|
|
332
332
|
Filter: "Filter"
|
|
333
333
|
}
|
|
334
334
|
},
|
|
335
|
+
CreateInference: {
|
|
336
|
+
url: "/",
|
|
337
|
+
method: "POST",
|
|
338
|
+
config: {
|
|
339
|
+
query: {
|
|
340
|
+
Version: "2024-06-12",
|
|
341
|
+
Action: "CreateInference"
|
|
342
|
+
},
|
|
343
|
+
headers: {
|
|
344
|
+
"Content-Type": "application/json"
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
paramsType: {
|
|
348
|
+
InferenceName: "String",
|
|
349
|
+
Description: "String",
|
|
350
|
+
ResourcePoolId: "String",
|
|
351
|
+
QueueName: "String",
|
|
352
|
+
Replicas: "Int",
|
|
353
|
+
AccessType: "String",
|
|
354
|
+
DeploymentType: "String",
|
|
355
|
+
Engine: "String",
|
|
356
|
+
ModelName: "String",
|
|
357
|
+
CmdOptions: "Array",
|
|
358
|
+
ModelStorageEnabled: "Boolean",
|
|
359
|
+
ModelStoragePath: "String",
|
|
360
|
+
EntryPoint: "String",
|
|
361
|
+
ImageSource: "String",
|
|
362
|
+
ImageId: "String",
|
|
363
|
+
ImageRegistryId: "String",
|
|
364
|
+
ImageRepoId: "String",
|
|
365
|
+
ImageTagId: "String",
|
|
366
|
+
SubnetId: "String",
|
|
367
|
+
Port: "Int",
|
|
368
|
+
Env: "Array",
|
|
369
|
+
GPUType: "String",
|
|
370
|
+
GPUNum: "String",
|
|
371
|
+
CPUNum: "Int",
|
|
372
|
+
Memory: "Int",
|
|
373
|
+
AutoScaleEnable: "Boolean",
|
|
374
|
+
AutoScaleStrategy: "Object",
|
|
375
|
+
RunOnCPU: "Boolean",
|
|
376
|
+
Distributed: "Boolean",
|
|
377
|
+
NodeNum: "Boolean",
|
|
378
|
+
StorageConfigs: "Array"
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
GetInferenceModels: {
|
|
382
|
+
url: "/",
|
|
383
|
+
method: "GET",
|
|
384
|
+
config: {
|
|
385
|
+
query: {
|
|
386
|
+
Version: "2024-06-12",
|
|
387
|
+
Action: "GetInferenceModels"
|
|
388
|
+
},
|
|
389
|
+
headers: {
|
|
390
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
paramsType: {}
|
|
394
|
+
},
|
|
395
|
+
GetInferencePods: {
|
|
396
|
+
url: "/",
|
|
397
|
+
method: "GET",
|
|
398
|
+
config: {
|
|
399
|
+
query: {
|
|
400
|
+
Version: "2024-06-12",
|
|
401
|
+
Action: "GetInferencePods"
|
|
402
|
+
},
|
|
403
|
+
headers: {
|
|
404
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
paramsType: {
|
|
408
|
+
InferenceId: "String",
|
|
409
|
+
State: "String"
|
|
410
|
+
}
|
|
411
|
+
},
|
|
412
|
+
GetInferenceLogs: {
|
|
413
|
+
url: "/",
|
|
414
|
+
method: "GET",
|
|
415
|
+
config: {
|
|
416
|
+
query: {
|
|
417
|
+
Version: "2024-06-12",
|
|
418
|
+
Action: "GetInferenceLogs"
|
|
419
|
+
},
|
|
420
|
+
headers: {
|
|
421
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
paramsType: {
|
|
425
|
+
InferenceId: "String",
|
|
426
|
+
PodName: "String",
|
|
427
|
+
SinceSeconds: "Int",
|
|
428
|
+
TailLines: "Int"
|
|
429
|
+
}
|
|
430
|
+
},
|
|
335
431
|
StopNotebook: {
|
|
336
432
|
url: "/",
|
|
337
433
|
method: "GET",
|
|
@@ -399,6 +495,22 @@ module.exports = class Client extends BaseClient {
|
|
|
399
495
|
TailLines: "String"
|
|
400
496
|
}
|
|
401
497
|
},
|
|
498
|
+
GetInferenceAutoScaleStrategy: {
|
|
499
|
+
url: "/",
|
|
500
|
+
method: "GET",
|
|
501
|
+
config: {
|
|
502
|
+
query: {
|
|
503
|
+
Version: "2024-06-12",
|
|
504
|
+
Action: "GetInferenceAutoScaleStrategy"
|
|
505
|
+
},
|
|
506
|
+
headers: {
|
|
507
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
508
|
+
}
|
|
509
|
+
},
|
|
510
|
+
paramsType: {
|
|
511
|
+
InferenceId: "String"
|
|
512
|
+
}
|
|
513
|
+
},
|
|
402
514
|
StopNotebookSavingImage: {
|
|
403
515
|
url: "/",
|
|
404
516
|
method: "GET",
|
|
@@ -806,46 +918,6 @@ module.exports = class Client extends BaseClient {
|
|
|
806
918
|
ModelIds: "Array"
|
|
807
919
|
}
|
|
808
920
|
},
|
|
809
|
-
CreateTrainJob: {
|
|
810
|
-
url: "/",
|
|
811
|
-
method: "POST",
|
|
812
|
-
config: {
|
|
813
|
-
query: {
|
|
814
|
-
Version: "2024-06-12",
|
|
815
|
-
Action: "CreateTrainJob"
|
|
816
|
-
},
|
|
817
|
-
headers: {
|
|
818
|
-
"Content-Type": "application/json"
|
|
819
|
-
}
|
|
820
|
-
},
|
|
821
|
-
paramsType: {
|
|
822
|
-
TrainJobName: "String",
|
|
823
|
-
Description: "String",
|
|
824
|
-
ResourcePoolId: "String",
|
|
825
|
-
QueueName: "String",
|
|
826
|
-
Priority: "String",
|
|
827
|
-
Command: "String",
|
|
828
|
-
Framework: "String",
|
|
829
|
-
ImageSource: "String",
|
|
830
|
-
FrameworkReplicas: "Object",
|
|
831
|
-
RestartPolicy: "String",
|
|
832
|
-
Envs: "Array",
|
|
833
|
-
SupportTensorboard: "Boolean",
|
|
834
|
-
ImageId: "String",
|
|
835
|
-
ImageRegistryId: "String",
|
|
836
|
-
ImageRepoId: "String",
|
|
837
|
-
ImageTagId: "String",
|
|
838
|
-
GPUType: "String",
|
|
839
|
-
GPUNumber: "Int",
|
|
840
|
-
CPUNum: "Int",
|
|
841
|
-
Memory: "Int",
|
|
842
|
-
StorageConfigs: "Array",
|
|
843
|
-
AccessType: "String",
|
|
844
|
-
MaxRuntime: "Int",
|
|
845
|
-
SelfHealing: "Boolean",
|
|
846
|
-
RunOnCPU: "Boolean"
|
|
847
|
-
}
|
|
848
|
-
},
|
|
849
921
|
DescribeTrainJobEvents: {
|
|
850
922
|
url: "/",
|
|
851
923
|
method: "GET",
|
|
@@ -879,25 +951,6 @@ module.exports = class Client extends BaseClient {
|
|
|
879
951
|
TrainJobId: "String"
|
|
880
952
|
}
|
|
881
953
|
},
|
|
882
|
-
DescribeTrainJob: {
|
|
883
|
-
url: "/",
|
|
884
|
-
method: "GET",
|
|
885
|
-
config: {
|
|
886
|
-
query: {
|
|
887
|
-
Version: "2024-06-12",
|
|
888
|
-
Action: "DescribeTrainJob"
|
|
889
|
-
},
|
|
890
|
-
headers: {
|
|
891
|
-
"Content-Type": "application/x-www-form-urlencoded"
|
|
892
|
-
}
|
|
893
|
-
},
|
|
894
|
-
paramsType: {
|
|
895
|
-
TrainJobId: "Filter",
|
|
896
|
-
Filter: "Filter",
|
|
897
|
-
Marker: "Int",
|
|
898
|
-
MaxResults: "Int"
|
|
899
|
-
}
|
|
900
|
-
},
|
|
901
954
|
StartTrainJob: {
|
|
902
955
|
url: "/",
|
|
903
956
|
method: "GET",
|
|
@@ -986,6 +1039,151 @@ module.exports = class Client extends BaseClient {
|
|
|
986
1039
|
Filter: "Filter"
|
|
987
1040
|
}
|
|
988
1041
|
},
|
|
1042
|
+
DescribeInferences: {
|
|
1043
|
+
url: "/",
|
|
1044
|
+
method: "GET",
|
|
1045
|
+
config: {
|
|
1046
|
+
query: {
|
|
1047
|
+
Version: "2024-06-12",
|
|
1048
|
+
Action: "DescribeInferences"
|
|
1049
|
+
},
|
|
1050
|
+
headers: {
|
|
1051
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
1052
|
+
}
|
|
1053
|
+
},
|
|
1054
|
+
paramsType: {
|
|
1055
|
+
InferenceId: "Filter",
|
|
1056
|
+
Filter: "Filter",
|
|
1057
|
+
PageSize: "Int",
|
|
1058
|
+
Page: "Int"
|
|
1059
|
+
}
|
|
1060
|
+
},
|
|
1061
|
+
SetInferenceAutoScaleStrategy: {
|
|
1062
|
+
url: "/",
|
|
1063
|
+
method: "POST",
|
|
1064
|
+
config: {
|
|
1065
|
+
query: {
|
|
1066
|
+
Version: "2024-06-12",
|
|
1067
|
+
Action: "SetInferenceAutoScaleStrategy"
|
|
1068
|
+
},
|
|
1069
|
+
headers: {
|
|
1070
|
+
"Content-Type": "application/json"
|
|
1071
|
+
}
|
|
1072
|
+
},
|
|
1073
|
+
paramsType: {
|
|
1074
|
+
InferenceId: "String",
|
|
1075
|
+
AutoScaleEnable: "Boolean",
|
|
1076
|
+
AutoScaleStrategy: "Object"
|
|
1077
|
+
}
|
|
1078
|
+
},
|
|
1079
|
+
DeleteInference: {
|
|
1080
|
+
url: "/",
|
|
1081
|
+
method: "GET",
|
|
1082
|
+
config: {
|
|
1083
|
+
query: {
|
|
1084
|
+
Version: "2024-06-12",
|
|
1085
|
+
Action: "DeleteInference"
|
|
1086
|
+
},
|
|
1087
|
+
headers: {
|
|
1088
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
1089
|
+
}
|
|
1090
|
+
},
|
|
1091
|
+
paramsType: {
|
|
1092
|
+
InferenceId: "String"
|
|
1093
|
+
}
|
|
1094
|
+
},
|
|
1095
|
+
StopInference: {
|
|
1096
|
+
url: "/",
|
|
1097
|
+
method: "GET",
|
|
1098
|
+
config: {
|
|
1099
|
+
query: {
|
|
1100
|
+
Version: "2024-06-12",
|
|
1101
|
+
Action: "StopInference"
|
|
1102
|
+
},
|
|
1103
|
+
headers: {
|
|
1104
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
1105
|
+
}
|
|
1106
|
+
},
|
|
1107
|
+
paramsType: {
|
|
1108
|
+
InferenceId: "String"
|
|
1109
|
+
}
|
|
1110
|
+
},
|
|
1111
|
+
GetInferenceDetail: {
|
|
1112
|
+
url: "/",
|
|
1113
|
+
method: "GET",
|
|
1114
|
+
config: {
|
|
1115
|
+
query: {
|
|
1116
|
+
Version: "2024-06-12",
|
|
1117
|
+
Action: "GetInferenceDetail"
|
|
1118
|
+
},
|
|
1119
|
+
headers: {
|
|
1120
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
1121
|
+
}
|
|
1122
|
+
},
|
|
1123
|
+
paramsType: {
|
|
1124
|
+
InferenceId: "String"
|
|
1125
|
+
}
|
|
1126
|
+
},
|
|
1127
|
+
StartInference: {
|
|
1128
|
+
url: "/",
|
|
1129
|
+
method: "GET",
|
|
1130
|
+
config: {
|
|
1131
|
+
query: {
|
|
1132
|
+
Version: "2024-06-12",
|
|
1133
|
+
Action: "StartInference"
|
|
1134
|
+
},
|
|
1135
|
+
headers: {
|
|
1136
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
1137
|
+
}
|
|
1138
|
+
},
|
|
1139
|
+
paramsType: {
|
|
1140
|
+
InferenceId: "String"
|
|
1141
|
+
}
|
|
1142
|
+
},
|
|
1143
|
+
ModifyInference: {
|
|
1144
|
+
url: "/",
|
|
1145
|
+
method: "POST",
|
|
1146
|
+
config: {
|
|
1147
|
+
query: {
|
|
1148
|
+
Version: "2024-06-12",
|
|
1149
|
+
Action: "ModifyInference"
|
|
1150
|
+
},
|
|
1151
|
+
headers: {
|
|
1152
|
+
"Content-Type": "application/json"
|
|
1153
|
+
}
|
|
1154
|
+
},
|
|
1155
|
+
paramsType: {
|
|
1156
|
+
InferenceId: "String",
|
|
1157
|
+
InferenceName: "String",
|
|
1158
|
+
Description: "String",
|
|
1159
|
+
EntryPoint: "String",
|
|
1160
|
+
ImageSource: "String",
|
|
1161
|
+
ImageId: "String",
|
|
1162
|
+
ImageRegistryId: "String",
|
|
1163
|
+
ImageRepoId: "String",
|
|
1164
|
+
ImageTagId: "String",
|
|
1165
|
+
Env: "Array",
|
|
1166
|
+
CmdOptions: "Array",
|
|
1167
|
+
HostNetworkEnabled: "Boolean"
|
|
1168
|
+
}
|
|
1169
|
+
},
|
|
1170
|
+
SetInferenceReplicas: {
|
|
1171
|
+
url: "/",
|
|
1172
|
+
method: "POST",
|
|
1173
|
+
config: {
|
|
1174
|
+
query: {
|
|
1175
|
+
Version: "2024-06-12",
|
|
1176
|
+
Action: "SetInferenceReplicas"
|
|
1177
|
+
},
|
|
1178
|
+
headers: {
|
|
1179
|
+
"Content-Type": "application/json"
|
|
1180
|
+
}
|
|
1181
|
+
},
|
|
1182
|
+
paramsType: {
|
|
1183
|
+
InferenceId: "String",
|
|
1184
|
+
Replicas: "Int"
|
|
1185
|
+
}
|
|
1186
|
+
},
|
|
989
1187
|
DescribeResourcePools: {
|
|
990
1188
|
url: "/",
|
|
991
1189
|
method: "GET",
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
4
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
5
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6
|
+
const BaseClient = require("../../../base/BaseClient.js");
|
|
7
|
+
module.exports = class Client extends BaseClient {
|
|
8
|
+
constructor(...args) {
|
|
9
|
+
super(...args);
|
|
10
|
+
_defineProperty(this, "_baseConfig", {
|
|
11
|
+
protocol: "http://",
|
|
12
|
+
endpoint: "aicp.api.ksyun.com",
|
|
13
|
+
config: {
|
|
14
|
+
timeout: 60,
|
|
15
|
+
//设置timeout
|
|
16
|
+
headers: {
|
|
17
|
+
Accept: "application/json"
|
|
18
|
+
},
|
|
19
|
+
credentials: {
|
|
20
|
+
region: "cn-shanghai-3",
|
|
21
|
+
service: "aicp"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
_defineProperty(this, "_apiList", {
|
|
26
|
+
DescribeKnowledgeBaseModels: {
|
|
27
|
+
url: "/",
|
|
28
|
+
method: "POST",
|
|
29
|
+
config: {
|
|
30
|
+
query: {
|
|
31
|
+
Version: "2025-11-14",
|
|
32
|
+
Action: "DescribeKnowledgeBaseModels"
|
|
33
|
+
},
|
|
34
|
+
headers: {
|
|
35
|
+
"Content-Type": "application/json"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
paramsType: {
|
|
39
|
+
ModelType: "String"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
ActivateKnowledgeBaseService: {
|
|
43
|
+
url: "/",
|
|
44
|
+
method: "POST",
|
|
45
|
+
config: {
|
|
46
|
+
query: {
|
|
47
|
+
Version: "2025-11-14",
|
|
48
|
+
Action: "ActivateKnowledgeBaseService"
|
|
49
|
+
},
|
|
50
|
+
headers: {
|
|
51
|
+
"Content-Type": "application/json"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
paramsType: {}
|
|
55
|
+
},
|
|
56
|
+
RetrieveKnowledge: {
|
|
57
|
+
url: "/",
|
|
58
|
+
method: "POST",
|
|
59
|
+
config: {
|
|
60
|
+
query: {
|
|
61
|
+
Version: "2025-11-14",
|
|
62
|
+
Action: "RetrieveKnowledge"
|
|
63
|
+
},
|
|
64
|
+
headers: {
|
|
65
|
+
"Content-Type": "application/json"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
paramsType: {
|
|
69
|
+
DatasetId: "String",
|
|
70
|
+
Query: "String",
|
|
71
|
+
RetrievalModel: "Object"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
DescribeChunk: {
|
|
75
|
+
url: "/",
|
|
76
|
+
method: "POST",
|
|
77
|
+
config: {
|
|
78
|
+
query: {
|
|
79
|
+
Version: "2025-11-14",
|
|
80
|
+
Action: "DescribeChunk"
|
|
81
|
+
},
|
|
82
|
+
headers: {
|
|
83
|
+
"Content-Type": "application/json"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
paramsType: {
|
|
87
|
+
DatasetId: "String",
|
|
88
|
+
DocumentId: "String"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
BatchDisplayStatus: {
|
|
92
|
+
url: "/",
|
|
93
|
+
method: "POST",
|
|
94
|
+
config: {
|
|
95
|
+
query: {
|
|
96
|
+
Version: "2025-11-14",
|
|
97
|
+
Action: "BatchDisplayStatus"
|
|
98
|
+
},
|
|
99
|
+
headers: {
|
|
100
|
+
"Content-Type": "application/json"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
paramsType: {
|
|
104
|
+
DatasetId: "String",
|
|
105
|
+
DocumentIds: "Array"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
DisplayStatus: {
|
|
109
|
+
url: "/",
|
|
110
|
+
method: "POST",
|
|
111
|
+
config: {
|
|
112
|
+
query: {
|
|
113
|
+
Version: "2025-11-14",
|
|
114
|
+
Action: "DisplayStatus"
|
|
115
|
+
},
|
|
116
|
+
headers: {
|
|
117
|
+
"Content-Type": "application/json"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
paramsType: {
|
|
121
|
+
DatasetId: "String",
|
|
122
|
+
DocumentId: "String"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
IndexingStatus: {
|
|
126
|
+
url: "/",
|
|
127
|
+
method: "POST",
|
|
128
|
+
config: {
|
|
129
|
+
query: {
|
|
130
|
+
Version: "2025-11-14",
|
|
131
|
+
Action: "IndexingStatus"
|
|
132
|
+
},
|
|
133
|
+
headers: {
|
|
134
|
+
"Content-Type": "application/json"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
paramsType: {
|
|
138
|
+
DatasetId: "String",
|
|
139
|
+
Batch: "String"
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
DeleteDocument: {
|
|
143
|
+
url: "/",
|
|
144
|
+
method: "POST",
|
|
145
|
+
config: {
|
|
146
|
+
query: {
|
|
147
|
+
Version: "2025-11-14",
|
|
148
|
+
Action: "DeleteDocument"
|
|
149
|
+
},
|
|
150
|
+
headers: {
|
|
151
|
+
"Content-Type": "application/json"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
paramsType: {
|
|
155
|
+
DatasetId: "String",
|
|
156
|
+
DocumentId: "String"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
DescribeDocument: {
|
|
160
|
+
url: "/",
|
|
161
|
+
method: "POST",
|
|
162
|
+
config: {
|
|
163
|
+
query: {
|
|
164
|
+
Version: "2025-11-14",
|
|
165
|
+
Action: "DescribeDocument"
|
|
166
|
+
},
|
|
167
|
+
headers: {
|
|
168
|
+
"Content-Type": "application/json"
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
paramsType: {
|
|
172
|
+
DatasetId: "String",
|
|
173
|
+
DocumentId: "String",
|
|
174
|
+
Metadata: "String"
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
DescribeDocuments: {
|
|
178
|
+
url: "/",
|
|
179
|
+
method: "POST",
|
|
180
|
+
config: {
|
|
181
|
+
query: {
|
|
182
|
+
Version: "2025-11-14",
|
|
183
|
+
Action: "DescribeDocuments"
|
|
184
|
+
},
|
|
185
|
+
headers: {
|
|
186
|
+
"Content-Type": "application/json"
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
paramsType: {
|
|
190
|
+
DatasetId: "String",
|
|
191
|
+
Keyword: "String",
|
|
192
|
+
Page: "Int",
|
|
193
|
+
Limit: "Int"
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
ImportDocuments: {
|
|
197
|
+
url: "/",
|
|
198
|
+
method: "POST",
|
|
199
|
+
config: {
|
|
200
|
+
query: {
|
|
201
|
+
Version: "2025-11-14",
|
|
202
|
+
Action: "ImportDocuments"
|
|
203
|
+
},
|
|
204
|
+
headers: {
|
|
205
|
+
"Content-Type": "application/json"
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
paramsType: {
|
|
209
|
+
DatasetId: "String",
|
|
210
|
+
Data: "Object",
|
|
211
|
+
AddType: "String",
|
|
212
|
+
Ks3Path: "Array"
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
DeleteKnowledgeBase: {
|
|
216
|
+
url: "/",
|
|
217
|
+
method: "POST",
|
|
218
|
+
config: {
|
|
219
|
+
query: {
|
|
220
|
+
Version: "2025-11-14",
|
|
221
|
+
Action: "DeleteKnowledgeBase"
|
|
222
|
+
},
|
|
223
|
+
headers: {
|
|
224
|
+
"Content-Type": "application/json"
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
paramsType: {
|
|
228
|
+
DatasetId: "String"
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
ModifyKnowledgeBase: {
|
|
232
|
+
url: "/",
|
|
233
|
+
method: "POST",
|
|
234
|
+
config: {
|
|
235
|
+
query: {
|
|
236
|
+
Version: "2025-11-14",
|
|
237
|
+
Action: "ModifyKnowledgeBase"
|
|
238
|
+
},
|
|
239
|
+
headers: {
|
|
240
|
+
"Content-Type": "application/json"
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
paramsType: {
|
|
244
|
+
DatasetId: "String",
|
|
245
|
+
Name: "String",
|
|
246
|
+
IndexingTechnique: "String",
|
|
247
|
+
EmbeddingModelProvider: "String",
|
|
248
|
+
EmbeddingModel: "String",
|
|
249
|
+
RetrievalModel: "Object"
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
DescribeKnowledgeBase: {
|
|
253
|
+
url: "/",
|
|
254
|
+
method: "POST",
|
|
255
|
+
config: {
|
|
256
|
+
query: {
|
|
257
|
+
Version: "2025-11-14",
|
|
258
|
+
Action: "DescribeKnowledgeBase"
|
|
259
|
+
},
|
|
260
|
+
headers: {
|
|
261
|
+
"Content-Type": "application/json"
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
paramsType: {
|
|
265
|
+
DatasetId: "String"
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
DescribeKnowledgeBases: {
|
|
269
|
+
url: "/",
|
|
270
|
+
method: "POST",
|
|
271
|
+
config: {
|
|
272
|
+
query: {
|
|
273
|
+
Version: "2025-11-14",
|
|
274
|
+
Action: "DescribeKnowledgeBases"
|
|
275
|
+
},
|
|
276
|
+
headers: {
|
|
277
|
+
"Content-Type": "application/json"
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
paramsType: {
|
|
281
|
+
Page: "Int",
|
|
282
|
+
Limit: "Int",
|
|
283
|
+
Keyword: "String"
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
CreateKnowledgeBase: {
|
|
287
|
+
url: "/",
|
|
288
|
+
method: "POST",
|
|
289
|
+
config: {
|
|
290
|
+
query: {
|
|
291
|
+
Version: "2025-11-14",
|
|
292
|
+
Action: "CreateKnowledgeBase"
|
|
293
|
+
},
|
|
294
|
+
headers: {
|
|
295
|
+
"Content-Type": "application/json"
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
paramsType: {
|
|
299
|
+
Name: "String",
|
|
300
|
+
IndexingTechnique: "String",
|
|
301
|
+
RetrievalModel: "Object"
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
};
|
package/package.json
CHANGED
|
@@ -325,6 +325,102 @@ module.exports = class Client extends BaseClient {
|
|
|
325
325
|
Filter: "Filter",
|
|
326
326
|
},
|
|
327
327
|
},
|
|
328
|
+
CreateInference: {
|
|
329
|
+
url: "/",
|
|
330
|
+
method: "POST",
|
|
331
|
+
config: {
|
|
332
|
+
query: {
|
|
333
|
+
Version: "2024-06-12",
|
|
334
|
+
Action: "CreateInference",
|
|
335
|
+
},
|
|
336
|
+
headers: {
|
|
337
|
+
"Content-Type": "application/json",
|
|
338
|
+
},
|
|
339
|
+
},
|
|
340
|
+
paramsType: {
|
|
341
|
+
InferenceName: "String",
|
|
342
|
+
Description: "String",
|
|
343
|
+
ResourcePoolId: "String",
|
|
344
|
+
QueueName: "String",
|
|
345
|
+
Replicas: "Int",
|
|
346
|
+
AccessType: "String",
|
|
347
|
+
DeploymentType: "String",
|
|
348
|
+
Engine: "String",
|
|
349
|
+
ModelName: "String",
|
|
350
|
+
CmdOptions: "Array",
|
|
351
|
+
ModelStorageEnabled: "Boolean",
|
|
352
|
+
ModelStoragePath: "String",
|
|
353
|
+
EntryPoint: "String",
|
|
354
|
+
ImageSource: "String",
|
|
355
|
+
ImageId: "String",
|
|
356
|
+
ImageRegistryId: "String",
|
|
357
|
+
ImageRepoId: "String",
|
|
358
|
+
ImageTagId: "String",
|
|
359
|
+
SubnetId: "String",
|
|
360
|
+
Port: "Int",
|
|
361
|
+
Env: "Array",
|
|
362
|
+
GPUType: "String",
|
|
363
|
+
GPUNum: "String",
|
|
364
|
+
CPUNum: "Int",
|
|
365
|
+
Memory: "Int",
|
|
366
|
+
AutoScaleEnable: "Boolean",
|
|
367
|
+
AutoScaleStrategy: "Object",
|
|
368
|
+
RunOnCPU: "Boolean",
|
|
369
|
+
Distributed: "Boolean",
|
|
370
|
+
NodeNum: "Boolean",
|
|
371
|
+
StorageConfigs: "Array",
|
|
372
|
+
},
|
|
373
|
+
},
|
|
374
|
+
GetInferenceModels: {
|
|
375
|
+
url: "/",
|
|
376
|
+
method: "GET",
|
|
377
|
+
config: {
|
|
378
|
+
query: {
|
|
379
|
+
Version: "2024-06-12",
|
|
380
|
+
Action: "GetInferenceModels",
|
|
381
|
+
},
|
|
382
|
+
headers: {
|
|
383
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
384
|
+
},
|
|
385
|
+
},
|
|
386
|
+
paramsType: {},
|
|
387
|
+
},
|
|
388
|
+
GetInferencePods: {
|
|
389
|
+
url: "/",
|
|
390
|
+
method: "GET",
|
|
391
|
+
config: {
|
|
392
|
+
query: {
|
|
393
|
+
Version: "2024-06-12",
|
|
394
|
+
Action: "GetInferencePods",
|
|
395
|
+
},
|
|
396
|
+
headers: {
|
|
397
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
398
|
+
},
|
|
399
|
+
},
|
|
400
|
+
paramsType: {
|
|
401
|
+
InferenceId: "String",
|
|
402
|
+
State: "String",
|
|
403
|
+
},
|
|
404
|
+
},
|
|
405
|
+
GetInferenceLogs: {
|
|
406
|
+
url: "/",
|
|
407
|
+
method: "GET",
|
|
408
|
+
config: {
|
|
409
|
+
query: {
|
|
410
|
+
Version: "2024-06-12",
|
|
411
|
+
Action: "GetInferenceLogs",
|
|
412
|
+
},
|
|
413
|
+
headers: {
|
|
414
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
415
|
+
},
|
|
416
|
+
},
|
|
417
|
+
paramsType: {
|
|
418
|
+
InferenceId: "String",
|
|
419
|
+
PodName: "String",
|
|
420
|
+
SinceSeconds: "Int",
|
|
421
|
+
TailLines: "Int",
|
|
422
|
+
},
|
|
423
|
+
},
|
|
328
424
|
StopNotebook: {
|
|
329
425
|
url: "/",
|
|
330
426
|
method: "GET",
|
|
@@ -392,6 +488,22 @@ module.exports = class Client extends BaseClient {
|
|
|
392
488
|
TailLines: "String",
|
|
393
489
|
},
|
|
394
490
|
},
|
|
491
|
+
GetInferenceAutoScaleStrategy: {
|
|
492
|
+
url: "/",
|
|
493
|
+
method: "GET",
|
|
494
|
+
config: {
|
|
495
|
+
query: {
|
|
496
|
+
Version: "2024-06-12",
|
|
497
|
+
Action: "GetInferenceAutoScaleStrategy",
|
|
498
|
+
},
|
|
499
|
+
headers: {
|
|
500
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
501
|
+
},
|
|
502
|
+
},
|
|
503
|
+
paramsType: {
|
|
504
|
+
InferenceId: "String",
|
|
505
|
+
},
|
|
506
|
+
},
|
|
395
507
|
StopNotebookSavingImage: {
|
|
396
508
|
url: "/",
|
|
397
509
|
method: "GET",
|
|
@@ -799,46 +911,6 @@ module.exports = class Client extends BaseClient {
|
|
|
799
911
|
ModelIds: "Array",
|
|
800
912
|
},
|
|
801
913
|
},
|
|
802
|
-
CreateTrainJob: {
|
|
803
|
-
url: "/",
|
|
804
|
-
method: "POST",
|
|
805
|
-
config: {
|
|
806
|
-
query: {
|
|
807
|
-
Version: "2024-06-12",
|
|
808
|
-
Action: "CreateTrainJob",
|
|
809
|
-
},
|
|
810
|
-
headers: {
|
|
811
|
-
"Content-Type": "application/json",
|
|
812
|
-
},
|
|
813
|
-
},
|
|
814
|
-
paramsType: {
|
|
815
|
-
TrainJobName: "String",
|
|
816
|
-
Description: "String",
|
|
817
|
-
ResourcePoolId: "String",
|
|
818
|
-
QueueName: "String",
|
|
819
|
-
Priority: "String",
|
|
820
|
-
Command: "String",
|
|
821
|
-
Framework: "String",
|
|
822
|
-
ImageSource: "String",
|
|
823
|
-
FrameworkReplicas: "Object",
|
|
824
|
-
RestartPolicy: "String",
|
|
825
|
-
Envs: "Array",
|
|
826
|
-
SupportTensorboard: "Boolean",
|
|
827
|
-
ImageId: "String",
|
|
828
|
-
ImageRegistryId: "String",
|
|
829
|
-
ImageRepoId: "String",
|
|
830
|
-
ImageTagId: "String",
|
|
831
|
-
GPUType: "String",
|
|
832
|
-
GPUNumber: "Int",
|
|
833
|
-
CPUNum: "Int",
|
|
834
|
-
Memory: "Int",
|
|
835
|
-
StorageConfigs: "Array",
|
|
836
|
-
AccessType: "String",
|
|
837
|
-
MaxRuntime: "Int",
|
|
838
|
-
SelfHealing: "Boolean",
|
|
839
|
-
RunOnCPU: "Boolean",
|
|
840
|
-
},
|
|
841
|
-
},
|
|
842
914
|
DescribeTrainJobEvents: {
|
|
843
915
|
url: "/",
|
|
844
916
|
method: "GET",
|
|
@@ -872,25 +944,6 @@ module.exports = class Client extends BaseClient {
|
|
|
872
944
|
TrainJobId: "String",
|
|
873
945
|
},
|
|
874
946
|
},
|
|
875
|
-
DescribeTrainJob: {
|
|
876
|
-
url: "/",
|
|
877
|
-
method: "GET",
|
|
878
|
-
config: {
|
|
879
|
-
query: {
|
|
880
|
-
Version: "2024-06-12",
|
|
881
|
-
Action: "DescribeTrainJob",
|
|
882
|
-
},
|
|
883
|
-
headers: {
|
|
884
|
-
"Content-Type": "application/x-www-form-urlencoded",
|
|
885
|
-
},
|
|
886
|
-
},
|
|
887
|
-
paramsType: {
|
|
888
|
-
TrainJobId: "Filter",
|
|
889
|
-
Filter: "Filter",
|
|
890
|
-
Marker: "Int",
|
|
891
|
-
MaxResults: "Int",
|
|
892
|
-
},
|
|
893
|
-
},
|
|
894
947
|
StartTrainJob: {
|
|
895
948
|
url: "/",
|
|
896
949
|
method: "GET",
|
|
@@ -979,6 +1032,151 @@ module.exports = class Client extends BaseClient {
|
|
|
979
1032
|
Filter: "Filter",
|
|
980
1033
|
},
|
|
981
1034
|
},
|
|
1035
|
+
DescribeInferences: {
|
|
1036
|
+
url: "/",
|
|
1037
|
+
method: "GET",
|
|
1038
|
+
config: {
|
|
1039
|
+
query: {
|
|
1040
|
+
Version: "2024-06-12",
|
|
1041
|
+
Action: "DescribeInferences",
|
|
1042
|
+
},
|
|
1043
|
+
headers: {
|
|
1044
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
1045
|
+
},
|
|
1046
|
+
},
|
|
1047
|
+
paramsType: {
|
|
1048
|
+
InferenceId: "Filter",
|
|
1049
|
+
Filter: "Filter",
|
|
1050
|
+
PageSize: "Int",
|
|
1051
|
+
Page: "Int",
|
|
1052
|
+
},
|
|
1053
|
+
},
|
|
1054
|
+
SetInferenceAutoScaleStrategy: {
|
|
1055
|
+
url: "/",
|
|
1056
|
+
method: "POST",
|
|
1057
|
+
config: {
|
|
1058
|
+
query: {
|
|
1059
|
+
Version: "2024-06-12",
|
|
1060
|
+
Action: "SetInferenceAutoScaleStrategy",
|
|
1061
|
+
},
|
|
1062
|
+
headers: {
|
|
1063
|
+
"Content-Type": "application/json",
|
|
1064
|
+
},
|
|
1065
|
+
},
|
|
1066
|
+
paramsType: {
|
|
1067
|
+
InferenceId: "String",
|
|
1068
|
+
AutoScaleEnable: "Boolean",
|
|
1069
|
+
AutoScaleStrategy: "Object",
|
|
1070
|
+
},
|
|
1071
|
+
},
|
|
1072
|
+
DeleteInference: {
|
|
1073
|
+
url: "/",
|
|
1074
|
+
method: "GET",
|
|
1075
|
+
config: {
|
|
1076
|
+
query: {
|
|
1077
|
+
Version: "2024-06-12",
|
|
1078
|
+
Action: "DeleteInference",
|
|
1079
|
+
},
|
|
1080
|
+
headers: {
|
|
1081
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
1082
|
+
},
|
|
1083
|
+
},
|
|
1084
|
+
paramsType: {
|
|
1085
|
+
InferenceId: "String",
|
|
1086
|
+
},
|
|
1087
|
+
},
|
|
1088
|
+
StopInference: {
|
|
1089
|
+
url: "/",
|
|
1090
|
+
method: "GET",
|
|
1091
|
+
config: {
|
|
1092
|
+
query: {
|
|
1093
|
+
Version: "2024-06-12",
|
|
1094
|
+
Action: "StopInference",
|
|
1095
|
+
},
|
|
1096
|
+
headers: {
|
|
1097
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
1098
|
+
},
|
|
1099
|
+
},
|
|
1100
|
+
paramsType: {
|
|
1101
|
+
InferenceId: "String",
|
|
1102
|
+
},
|
|
1103
|
+
},
|
|
1104
|
+
GetInferenceDetail: {
|
|
1105
|
+
url: "/",
|
|
1106
|
+
method: "GET",
|
|
1107
|
+
config: {
|
|
1108
|
+
query: {
|
|
1109
|
+
Version: "2024-06-12",
|
|
1110
|
+
Action: "GetInferenceDetail",
|
|
1111
|
+
},
|
|
1112
|
+
headers: {
|
|
1113
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
1114
|
+
},
|
|
1115
|
+
},
|
|
1116
|
+
paramsType: {
|
|
1117
|
+
InferenceId: "String",
|
|
1118
|
+
},
|
|
1119
|
+
},
|
|
1120
|
+
StartInference: {
|
|
1121
|
+
url: "/",
|
|
1122
|
+
method: "GET",
|
|
1123
|
+
config: {
|
|
1124
|
+
query: {
|
|
1125
|
+
Version: "2024-06-12",
|
|
1126
|
+
Action: "StartInference",
|
|
1127
|
+
},
|
|
1128
|
+
headers: {
|
|
1129
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
1130
|
+
},
|
|
1131
|
+
},
|
|
1132
|
+
paramsType: {
|
|
1133
|
+
InferenceId: "String",
|
|
1134
|
+
},
|
|
1135
|
+
},
|
|
1136
|
+
ModifyInference: {
|
|
1137
|
+
url: "/",
|
|
1138
|
+
method: "POST",
|
|
1139
|
+
config: {
|
|
1140
|
+
query: {
|
|
1141
|
+
Version: "2024-06-12",
|
|
1142
|
+
Action: "ModifyInference",
|
|
1143
|
+
},
|
|
1144
|
+
headers: {
|
|
1145
|
+
"Content-Type": "application/json",
|
|
1146
|
+
},
|
|
1147
|
+
},
|
|
1148
|
+
paramsType: {
|
|
1149
|
+
InferenceId: "String",
|
|
1150
|
+
InferenceName: "String",
|
|
1151
|
+
Description: "String",
|
|
1152
|
+
EntryPoint: "String",
|
|
1153
|
+
ImageSource: "String",
|
|
1154
|
+
ImageId: "String",
|
|
1155
|
+
ImageRegistryId: "String",
|
|
1156
|
+
ImageRepoId: "String",
|
|
1157
|
+
ImageTagId: "String",
|
|
1158
|
+
Env: "Array",
|
|
1159
|
+
CmdOptions: "Array",
|
|
1160
|
+
HostNetworkEnabled: "Boolean",
|
|
1161
|
+
},
|
|
1162
|
+
},
|
|
1163
|
+
SetInferenceReplicas: {
|
|
1164
|
+
url: "/",
|
|
1165
|
+
method: "POST",
|
|
1166
|
+
config: {
|
|
1167
|
+
query: {
|
|
1168
|
+
Version: "2024-06-12",
|
|
1169
|
+
Action: "SetInferenceReplicas",
|
|
1170
|
+
},
|
|
1171
|
+
headers: {
|
|
1172
|
+
"Content-Type": "application/json",
|
|
1173
|
+
},
|
|
1174
|
+
},
|
|
1175
|
+
paramsType: {
|
|
1176
|
+
InferenceId: "String",
|
|
1177
|
+
Replicas: "Int",
|
|
1178
|
+
},
|
|
1179
|
+
},
|
|
982
1180
|
DescribeResourcePools: {
|
|
983
1181
|
url: "/",
|
|
984
1182
|
method: "GET",
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
const BaseClient = require("../../../base/BaseClient.js");
|
|
2
|
+
|
|
3
|
+
module.exports = class Client extends BaseClient {
|
|
4
|
+
_baseConfig = {
|
|
5
|
+
protocol: "http://",
|
|
6
|
+
endpoint: "aicp.api.ksyun.com",
|
|
7
|
+
config: {
|
|
8
|
+
timeout: 60, //设置timeout
|
|
9
|
+
headers: {
|
|
10
|
+
Accept: "application/json",
|
|
11
|
+
},
|
|
12
|
+
credentials: {
|
|
13
|
+
region: "cn-shanghai-3",
|
|
14
|
+
service: "aicp",
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
_apiList = {
|
|
19
|
+
DescribeKnowledgeBaseModels: {
|
|
20
|
+
url: "/",
|
|
21
|
+
method: "POST",
|
|
22
|
+
config: {
|
|
23
|
+
query: {
|
|
24
|
+
Version: "2025-11-14",
|
|
25
|
+
Action: "DescribeKnowledgeBaseModels",
|
|
26
|
+
},
|
|
27
|
+
headers: {
|
|
28
|
+
"Content-Type": "application/json",
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
paramsType: {
|
|
32
|
+
ModelType: "String",
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
ActivateKnowledgeBaseService: {
|
|
36
|
+
url: "/",
|
|
37
|
+
method: "POST",
|
|
38
|
+
config: {
|
|
39
|
+
query: {
|
|
40
|
+
Version: "2025-11-14",
|
|
41
|
+
Action: "ActivateKnowledgeBaseService",
|
|
42
|
+
},
|
|
43
|
+
headers: {
|
|
44
|
+
"Content-Type": "application/json",
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
paramsType: {},
|
|
48
|
+
},
|
|
49
|
+
RetrieveKnowledge: {
|
|
50
|
+
url: "/",
|
|
51
|
+
method: "POST",
|
|
52
|
+
config: {
|
|
53
|
+
query: {
|
|
54
|
+
Version: "2025-11-14",
|
|
55
|
+
Action: "RetrieveKnowledge",
|
|
56
|
+
},
|
|
57
|
+
headers: {
|
|
58
|
+
"Content-Type": "application/json",
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
paramsType: {
|
|
62
|
+
DatasetId: "String",
|
|
63
|
+
Query: "String",
|
|
64
|
+
RetrievalModel: "Object",
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
DescribeChunk: {
|
|
68
|
+
url: "/",
|
|
69
|
+
method: "POST",
|
|
70
|
+
config: {
|
|
71
|
+
query: {
|
|
72
|
+
Version: "2025-11-14",
|
|
73
|
+
Action: "DescribeChunk",
|
|
74
|
+
},
|
|
75
|
+
headers: {
|
|
76
|
+
"Content-Type": "application/json",
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
paramsType: {
|
|
80
|
+
DatasetId: "String",
|
|
81
|
+
DocumentId: "String",
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
BatchDisplayStatus: {
|
|
85
|
+
url: "/",
|
|
86
|
+
method: "POST",
|
|
87
|
+
config: {
|
|
88
|
+
query: {
|
|
89
|
+
Version: "2025-11-14",
|
|
90
|
+
Action: "BatchDisplayStatus",
|
|
91
|
+
},
|
|
92
|
+
headers: {
|
|
93
|
+
"Content-Type": "application/json",
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
paramsType: {
|
|
97
|
+
DatasetId: "String",
|
|
98
|
+
DocumentIds: "Array",
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
DisplayStatus: {
|
|
102
|
+
url: "/",
|
|
103
|
+
method: "POST",
|
|
104
|
+
config: {
|
|
105
|
+
query: {
|
|
106
|
+
Version: "2025-11-14",
|
|
107
|
+
Action: "DisplayStatus",
|
|
108
|
+
},
|
|
109
|
+
headers: {
|
|
110
|
+
"Content-Type": "application/json",
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
paramsType: {
|
|
114
|
+
DatasetId: "String",
|
|
115
|
+
DocumentId: "String",
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
IndexingStatus: {
|
|
119
|
+
url: "/",
|
|
120
|
+
method: "POST",
|
|
121
|
+
config: {
|
|
122
|
+
query: {
|
|
123
|
+
Version: "2025-11-14",
|
|
124
|
+
Action: "IndexingStatus",
|
|
125
|
+
},
|
|
126
|
+
headers: {
|
|
127
|
+
"Content-Type": "application/json",
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
paramsType: {
|
|
131
|
+
DatasetId: "String",
|
|
132
|
+
Batch: "String",
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
DeleteDocument: {
|
|
136
|
+
url: "/",
|
|
137
|
+
method: "POST",
|
|
138
|
+
config: {
|
|
139
|
+
query: {
|
|
140
|
+
Version: "2025-11-14",
|
|
141
|
+
Action: "DeleteDocument",
|
|
142
|
+
},
|
|
143
|
+
headers: {
|
|
144
|
+
"Content-Type": "application/json",
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
paramsType: {
|
|
148
|
+
DatasetId: "String",
|
|
149
|
+
DocumentId: "String",
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
DescribeDocument: {
|
|
153
|
+
url: "/",
|
|
154
|
+
method: "POST",
|
|
155
|
+
config: {
|
|
156
|
+
query: {
|
|
157
|
+
Version: "2025-11-14",
|
|
158
|
+
Action: "DescribeDocument",
|
|
159
|
+
},
|
|
160
|
+
headers: {
|
|
161
|
+
"Content-Type": "application/json",
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
paramsType: {
|
|
165
|
+
DatasetId: "String",
|
|
166
|
+
DocumentId: "String",
|
|
167
|
+
Metadata: "String",
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
DescribeDocuments: {
|
|
171
|
+
url: "/",
|
|
172
|
+
method: "POST",
|
|
173
|
+
config: {
|
|
174
|
+
query: {
|
|
175
|
+
Version: "2025-11-14",
|
|
176
|
+
Action: "DescribeDocuments",
|
|
177
|
+
},
|
|
178
|
+
headers: {
|
|
179
|
+
"Content-Type": "application/json",
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
paramsType: {
|
|
183
|
+
DatasetId: "String",
|
|
184
|
+
Keyword: "String",
|
|
185
|
+
Page: "Int",
|
|
186
|
+
Limit: "Int",
|
|
187
|
+
},
|
|
188
|
+
},
|
|
189
|
+
ImportDocuments: {
|
|
190
|
+
url: "/",
|
|
191
|
+
method: "POST",
|
|
192
|
+
config: {
|
|
193
|
+
query: {
|
|
194
|
+
Version: "2025-11-14",
|
|
195
|
+
Action: "ImportDocuments",
|
|
196
|
+
},
|
|
197
|
+
headers: {
|
|
198
|
+
"Content-Type": "application/json",
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
paramsType: {
|
|
202
|
+
DatasetId: "String",
|
|
203
|
+
Data: "Object",
|
|
204
|
+
AddType: "String",
|
|
205
|
+
Ks3Path: "Array",
|
|
206
|
+
},
|
|
207
|
+
},
|
|
208
|
+
DeleteKnowledgeBase: {
|
|
209
|
+
url: "/",
|
|
210
|
+
method: "POST",
|
|
211
|
+
config: {
|
|
212
|
+
query: {
|
|
213
|
+
Version: "2025-11-14",
|
|
214
|
+
Action: "DeleteKnowledgeBase",
|
|
215
|
+
},
|
|
216
|
+
headers: {
|
|
217
|
+
"Content-Type": "application/json",
|
|
218
|
+
},
|
|
219
|
+
},
|
|
220
|
+
paramsType: {
|
|
221
|
+
DatasetId: "String",
|
|
222
|
+
},
|
|
223
|
+
},
|
|
224
|
+
ModifyKnowledgeBase: {
|
|
225
|
+
url: "/",
|
|
226
|
+
method: "POST",
|
|
227
|
+
config: {
|
|
228
|
+
query: {
|
|
229
|
+
Version: "2025-11-14",
|
|
230
|
+
Action: "ModifyKnowledgeBase",
|
|
231
|
+
},
|
|
232
|
+
headers: {
|
|
233
|
+
"Content-Type": "application/json",
|
|
234
|
+
},
|
|
235
|
+
},
|
|
236
|
+
paramsType: {
|
|
237
|
+
DatasetId: "String",
|
|
238
|
+
Name: "String",
|
|
239
|
+
IndexingTechnique: "String",
|
|
240
|
+
EmbeddingModelProvider: "String",
|
|
241
|
+
EmbeddingModel: "String",
|
|
242
|
+
RetrievalModel: "Object",
|
|
243
|
+
},
|
|
244
|
+
},
|
|
245
|
+
DescribeKnowledgeBase: {
|
|
246
|
+
url: "/",
|
|
247
|
+
method: "POST",
|
|
248
|
+
config: {
|
|
249
|
+
query: {
|
|
250
|
+
Version: "2025-11-14",
|
|
251
|
+
Action: "DescribeKnowledgeBase",
|
|
252
|
+
},
|
|
253
|
+
headers: {
|
|
254
|
+
"Content-Type": "application/json",
|
|
255
|
+
},
|
|
256
|
+
},
|
|
257
|
+
paramsType: {
|
|
258
|
+
DatasetId: "String",
|
|
259
|
+
},
|
|
260
|
+
},
|
|
261
|
+
DescribeKnowledgeBases: {
|
|
262
|
+
url: "/",
|
|
263
|
+
method: "POST",
|
|
264
|
+
config: {
|
|
265
|
+
query: {
|
|
266
|
+
Version: "2025-11-14",
|
|
267
|
+
Action: "DescribeKnowledgeBases",
|
|
268
|
+
},
|
|
269
|
+
headers: {
|
|
270
|
+
"Content-Type": "application/json",
|
|
271
|
+
},
|
|
272
|
+
},
|
|
273
|
+
paramsType: {
|
|
274
|
+
Page: "Int",
|
|
275
|
+
Limit: "Int",
|
|
276
|
+
Keyword: "String",
|
|
277
|
+
},
|
|
278
|
+
},
|
|
279
|
+
CreateKnowledgeBase: {
|
|
280
|
+
url: "/",
|
|
281
|
+
method: "POST",
|
|
282
|
+
config: {
|
|
283
|
+
query: {
|
|
284
|
+
Version: "2025-11-14",
|
|
285
|
+
Action: "CreateKnowledgeBase",
|
|
286
|
+
},
|
|
287
|
+
headers: {
|
|
288
|
+
"Content-Type": "application/json",
|
|
289
|
+
},
|
|
290
|
+
},
|
|
291
|
+
paramsType: {
|
|
292
|
+
Name: "String",
|
|
293
|
+
IndexingTechnique: "String",
|
|
294
|
+
RetrievalModel: "Object",
|
|
295
|
+
},
|
|
296
|
+
},
|
|
297
|
+
};
|
|
298
|
+
};
|