tencentcloud-sdk-nodejs-tokenhub 4.1.266 → 4.1.268
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/es/services/tokenhub/v20260322/tokenhub_client.js +15 -0
- package/package.json +1 -1
- package/tencentcloud/services/tokenhub/v20260322/tokenhub_client.d.ts +36 -1
- package/tencentcloud/services/tokenhub/v20260322/tokenhub_client.js +45 -0
- package/tencentcloud/services/tokenhub/v20260322/tokenhub_models.d.ts +264 -0
|
@@ -3,6 +3,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
3
3
|
constructor(clientConfig) {
|
|
4
4
|
super("tokenhub.tencentcloudapi.com", "2026-03-22", clientConfig);
|
|
5
5
|
}
|
|
6
|
+
async DescribeModelEndpointList(req, cb) {
|
|
7
|
+
return this.request("DescribeModelEndpointList", req, cb);
|
|
8
|
+
}
|
|
6
9
|
async RenewTokenPlanTeamOrder(req, cb) {
|
|
7
10
|
return this.request("RenewTokenPlanTeamOrder", req, cb);
|
|
8
11
|
}
|
|
@@ -36,6 +39,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
36
39
|
async ModifyApiKeyInfo(req, cb) {
|
|
37
40
|
return this.request("ModifyApiKeyInfo", req, cb);
|
|
38
41
|
}
|
|
42
|
+
async CreateEndpoint(req, cb) {
|
|
43
|
+
return this.request("CreateEndpoint", req, cb);
|
|
44
|
+
}
|
|
39
45
|
async DescribeGlossaryEntries(req, cb) {
|
|
40
46
|
return this.request("DescribeGlossaryEntries", req, cb);
|
|
41
47
|
}
|
|
@@ -60,9 +66,15 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
60
66
|
async DeleteGlossary(req, cb) {
|
|
61
67
|
return this.request("DeleteGlossary", req, cb);
|
|
62
68
|
}
|
|
69
|
+
async DescribeEndpoint(req, cb) {
|
|
70
|
+
return this.request("DescribeEndpoint", req, cb);
|
|
71
|
+
}
|
|
63
72
|
async ModifyTokenPlanApiKeySecret(req, cb) {
|
|
64
73
|
return this.request("ModifyTokenPlanApiKeySecret", req, cb);
|
|
65
74
|
}
|
|
75
|
+
async DeleteEndpoint(req, cb) {
|
|
76
|
+
return this.request("DeleteEndpoint", req, cb);
|
|
77
|
+
}
|
|
66
78
|
async DescribeTokenPlan(req, cb) {
|
|
67
79
|
return this.request("DescribeTokenPlan", req, cb);
|
|
68
80
|
}
|
|
@@ -81,6 +93,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
81
93
|
async DeleteTokenPlanApiKey(req, cb) {
|
|
82
94
|
return this.request("DeleteTokenPlanApiKey", req, cb);
|
|
83
95
|
}
|
|
96
|
+
async ModifyEndpoint(req, cb) {
|
|
97
|
+
return this.request("ModifyEndpoint", req, cb);
|
|
98
|
+
}
|
|
84
99
|
async DeleteApiKey(req, cb) {
|
|
85
100
|
return this.request("DeleteApiKey", req, cb);
|
|
86
101
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
-
import { DescribeTokenPlanApiKeyListResponse, DeleteGlossaryResponse, DeleteGlossaryEntriesResponse, RenewTokenPlanTeamOrderResponse, DescribeTokenPlanListResponse, DeleteGlossaryEntriesRequest, CreateGlossaryEntriesResponse, CreateTokenPlanApiKeysResponse, DescribeModelListResponse, CreateTokenPlanTeamOrderAndBuyRequest, DeleteTokenPlanApiKeyResponse, ModifyGlossaryEntriesResponse, DescribeTokenPlanResponse, DescribeModelListRequest, DescribeTokenPlanApiKeySecretResponse, ModifyTokenPlanApiKeySecretResponse, DescribeApiKeyListResponse, ModifyApiKeyInfoResponse, DeleteGlossaryRequest, DescribeGlossaryEntriesRequest, DescribeTokenPlanApiKeyRequest, DeleteApiKeyResponse, DescribeTokenPlanApiKeyListRequest, DescribeGlossariesRequest, DescribeTokenPlanApiKeyUsageDetailRequest, DescribeGlossaryEntriesResponse, DeleteApiKeyRequest, UpgradeTokenPlanTeamOrderResponse, DescribeUsageRankListResponse, DescribeApiKeyResponse, DescribeTokenPlanApiKeySecretRequest, ModifyApiKeyStatusRequest, DescribeTokenPlanRequest, ModifyTokenPlanApiKeyResponse, DescribeApiKeyListRequest, UpgradeTokenPlanTeamOrderRequest, DescribeTokenPlanApiKeyUsageDetailResponse, ModifyApiKeyInfoRequest, DescribeApiKeyRequest, DescribeUsageRankListRequest, CreateGlossaryEntriesRequest, DescribeGlossariesResponse, CreateApiKeyResponse, CreateTokenPlanApiKeysRequest, DeleteTokenPlanApiKeyRequest, DescribeTokenPlanApiKeyResponse, DescribeTokenPlanListRequest, ModifyTokenPlanApiKeyRequest, CreateGlossaryRequest, CreateGlossaryResponse, ModifyGlossaryEntriesRequest, RenewTokenPlanTeamOrderRequest, ModifyApiKeyStatusResponse, CreateTokenPlanTeamOrderAndBuyResponse, ModifyTokenPlanApiKeySecretRequest, CreateApiKeyRequest } from "./tokenhub_models";
|
|
2
|
+
import { DescribeTokenPlanApiKeyListResponse, DeleteGlossaryResponse, DeleteGlossaryEntriesResponse, RenewTokenPlanTeamOrderResponse, DescribeTokenPlanListResponse, DescribeModelEndpointListResponse, DeleteGlossaryEntriesRequest, CreateGlossaryEntriesResponse, CreateTokenPlanApiKeysResponse, DescribeModelListResponse, DeleteEndpointResponse, CreateTokenPlanTeamOrderAndBuyRequest, CreateEndpointRequest, DeleteTokenPlanApiKeyResponse, ModifyGlossaryEntriesResponse, DescribeTokenPlanResponse, DescribeModelListRequest, DescribeTokenPlanApiKeySecretResponse, ModifyTokenPlanApiKeySecretResponse, DescribeApiKeyListResponse, ModifyApiKeyInfoResponse, DeleteGlossaryRequest, DescribeGlossaryEntriesRequest, DescribeTokenPlanApiKeyRequest, DeleteApiKeyResponse, CreateEndpointResponse, DescribeTokenPlanApiKeyListRequest, DescribeGlossariesRequest, DescribeTokenPlanApiKeyUsageDetailRequest, DescribeGlossaryEntriesResponse, DeleteApiKeyRequest, UpgradeTokenPlanTeamOrderResponse, DescribeUsageRankListResponse, DescribeApiKeyResponse, DescribeTokenPlanApiKeySecretRequest, ModifyApiKeyStatusRequest, DescribeTokenPlanRequest, ModifyTokenPlanApiKeyResponse, DescribeApiKeyListRequest, ModifyEndpointRequest, UpgradeTokenPlanTeamOrderRequest, DescribeTokenPlanApiKeyUsageDetailResponse, ModifyApiKeyInfoRequest, DescribeApiKeyRequest, DescribeUsageRankListRequest, CreateGlossaryEntriesRequest, DescribeGlossariesResponse, CreateApiKeyResponse, DescribeEndpointRequest, DescribeEndpointResponse, CreateTokenPlanApiKeysRequest, ModifyEndpointResponse, DeleteTokenPlanApiKeyRequest, DescribeModelEndpointListRequest, DescribeTokenPlanApiKeyResponse, DescribeTokenPlanListRequest, ModifyTokenPlanApiKeyRequest, CreateGlossaryRequest, CreateGlossaryResponse, ModifyGlossaryEntriesRequest, DeleteEndpointRequest, RenewTokenPlanTeamOrderRequest, ModifyApiKeyStatusResponse, CreateTokenPlanTeamOrderAndBuyResponse, ModifyTokenPlanApiKeySecretRequest, CreateApiKeyRequest } from "./tokenhub_models";
|
|
3
3
|
/**
|
|
4
4
|
* tokenhub client
|
|
5
5
|
* @class
|
|
6
6
|
*/
|
|
7
7
|
export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
8
8
|
constructor(clientConfig: TencentCloudCommon.ClientConfig);
|
|
9
|
+
/**
|
|
10
|
+
* 查询模型接入点列表。
|
|
11
|
+
|
|
12
|
+
以模型为基准展示所有在线文本类型模型的接入点概览,支持按状态、计费方式、创建来源等条件筛选,使用 Offset/Limit 分页。
|
|
13
|
+
*/
|
|
14
|
+
DescribeModelEndpointList(req: DescribeModelEndpointListRequest, cb?: (error: string, rep: DescribeModelEndpointListResponse) => void): Promise<DescribeModelEndpointListResponse>;
|
|
9
15
|
/**
|
|
10
16
|
* 续费套餐。
|
|
11
17
|
|
|
@@ -72,6 +78,12 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
72
78
|
更新 API 密钥的备注信息、 IP 白名单和 Token 限额(修改限额推荐使用QuotaDesired参数)。所有可选参数不传表示不修改。
|
|
73
79
|
*/
|
|
74
80
|
ModifyApiKeyInfo(req: ModifyApiKeyInfoRequest, cb?: (error: string, rep: ModifyApiKeyInfoResponse) => void): Promise<ModifyApiKeyInfoResponse>;
|
|
81
|
+
/**
|
|
82
|
+
* 创建推理服务。
|
|
83
|
+
|
|
84
|
+
创建一个在线推理服务,创建成功后返回推理服务 ID。
|
|
85
|
+
*/
|
|
86
|
+
CreateEndpoint(req: CreateEndpointRequest, cb?: (error: string, rep: CreateEndpointResponse) => void): Promise<CreateEndpointResponse>;
|
|
75
87
|
/**
|
|
76
88
|
* 查询术语条目列表。
|
|
77
89
|
|
|
@@ -128,12 +140,24 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
128
140
|
删除指定的术语库及其下所有术语条目。删除操作幂等,对不存在的术语库返回成功。调用接口后,若通过 DescribeGlossaries 接口查询不到对应术语库,则表示删除成功。
|
|
129
141
|
*/
|
|
130
142
|
DeleteGlossary(req: DeleteGlossaryRequest, cb?: (error: string, rep: DeleteGlossaryResponse) => void): Promise<DeleteGlossaryResponse>;
|
|
143
|
+
/**
|
|
144
|
+
* 查询推理服务详情。
|
|
145
|
+
|
|
146
|
+
根据推理服务 ID 查询推理服务的详细信息,包括计费信息、免费额度、API 调用地址等。
|
|
147
|
+
*/
|
|
148
|
+
DescribeEndpoint(req: DescribeEndpointRequest, cb?: (error: string, rep: DescribeEndpointResponse) => void): Promise<DescribeEndpointResponse>;
|
|
131
149
|
/**
|
|
132
150
|
* 重置 TokenPlan APIKey 密钥。
|
|
133
151
|
|
|
134
152
|
重新生成密钥值,密钥版本号递增,旧密钥立即失效。APIKey ID 不变。重置后需通过 DescribeTokenPlanApiKeySecret 查询新密钥。
|
|
135
153
|
*/
|
|
136
154
|
ModifyTokenPlanApiKeySecret(req: ModifyTokenPlanApiKeySecretRequest, cb?: (error: string, rep: ModifyTokenPlanApiKeySecretResponse) => void): Promise<ModifyTokenPlanApiKeySecretResponse>;
|
|
155
|
+
/**
|
|
156
|
+
* 删除推理服务。
|
|
157
|
+
|
|
158
|
+
删除指定的推理服务端点,操作不可逆。调用接口后,若通过 DescribeEndpoint 接口查询不到对应的端点,则表示删除成功。
|
|
159
|
+
*/
|
|
160
|
+
DeleteEndpoint(req?: DeleteEndpointRequest, cb?: (error: string, rep: DeleteEndpointResponse) => void): Promise<DeleteEndpointResponse>;
|
|
137
161
|
/**
|
|
138
162
|
* 查询 TokenPlan 套餐详情。
|
|
139
163
|
|
|
@@ -168,6 +192,17 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
168
192
|
同时删除额度中心子额度包并通知网关清除缓存。
|
|
169
193
|
*/
|
|
170
194
|
DeleteTokenPlanApiKey(req: DeleteTokenPlanApiKeyRequest, cb?: (error: string, rep: DeleteTokenPlanApiKeyResponse) => void): Promise<DeleteTokenPlanApiKeyResponse>;
|
|
195
|
+
/**
|
|
196
|
+
* 修改推理服务。
|
|
197
|
+
|
|
198
|
+
修改推理服务的属性,支持修改服务名称、QPM/TPM 限流上限、TPM 包续费设置、智能路由开关和手动重试 TPM 购买。
|
|
199
|
+
|
|
200
|
+
注意事项:
|
|
201
|
+
- 不支持通过本接口切换计费类型(ChargeType),计费类型仅可在创建推理服务(CreateEndpoint)时指定。
|
|
202
|
+
- 不支持通过本接口修改 TPM 预付费保障包的 quota(TpmInputLimit/TpmOutputLimit/TimeSpan),这些值仅可在创建推理服务时指定。
|
|
203
|
+
- 当 RetryTPMPurchase 为 true 时,系统会异步重试 TPM 包购买,调用后需轮询推理服务状态确认结果。
|
|
204
|
+
*/
|
|
205
|
+
ModifyEndpoint(req: ModifyEndpointRequest, cb?: (error: string, rep: ModifyEndpointResponse) => void): Promise<ModifyEndpointResponse>;
|
|
171
206
|
/**
|
|
172
207
|
* 删除指定的 API 密钥,同时清理关联的模型绑定关系。
|
|
173
208
|
*/
|
|
@@ -28,6 +28,14 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
28
28
|
constructor(clientConfig) {
|
|
29
29
|
super("tokenhub.tencentcloudapi.com", "2026-03-22", clientConfig);
|
|
30
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* 查询模型接入点列表。
|
|
33
|
+
|
|
34
|
+
以模型为基准展示所有在线文本类型模型的接入点概览,支持按状态、计费方式、创建来源等条件筛选,使用 Offset/Limit 分页。
|
|
35
|
+
*/
|
|
36
|
+
async DescribeModelEndpointList(req, cb) {
|
|
37
|
+
return this.request("DescribeModelEndpointList", req, cb);
|
|
38
|
+
}
|
|
31
39
|
/**
|
|
32
40
|
* 续费套餐。
|
|
33
41
|
|
|
@@ -116,6 +124,14 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
116
124
|
async ModifyApiKeyInfo(req, cb) {
|
|
117
125
|
return this.request("ModifyApiKeyInfo", req, cb);
|
|
118
126
|
}
|
|
127
|
+
/**
|
|
128
|
+
* 创建推理服务。
|
|
129
|
+
|
|
130
|
+
创建一个在线推理服务,创建成功后返回推理服务 ID。
|
|
131
|
+
*/
|
|
132
|
+
async CreateEndpoint(req, cb) {
|
|
133
|
+
return this.request("CreateEndpoint", req, cb);
|
|
134
|
+
}
|
|
119
135
|
/**
|
|
120
136
|
* 查询术语条目列表。
|
|
121
137
|
|
|
@@ -188,6 +204,14 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
188
204
|
async DeleteGlossary(req, cb) {
|
|
189
205
|
return this.request("DeleteGlossary", req, cb);
|
|
190
206
|
}
|
|
207
|
+
/**
|
|
208
|
+
* 查询推理服务详情。
|
|
209
|
+
|
|
210
|
+
根据推理服务 ID 查询推理服务的详细信息,包括计费信息、免费额度、API 调用地址等。
|
|
211
|
+
*/
|
|
212
|
+
async DescribeEndpoint(req, cb) {
|
|
213
|
+
return this.request("DescribeEndpoint", req, cb);
|
|
214
|
+
}
|
|
191
215
|
/**
|
|
192
216
|
* 重置 TokenPlan APIKey 密钥。
|
|
193
217
|
|
|
@@ -196,6 +220,14 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
196
220
|
async ModifyTokenPlanApiKeySecret(req, cb) {
|
|
197
221
|
return this.request("ModifyTokenPlanApiKeySecret", req, cb);
|
|
198
222
|
}
|
|
223
|
+
/**
|
|
224
|
+
* 删除推理服务。
|
|
225
|
+
|
|
226
|
+
删除指定的推理服务端点,操作不可逆。调用接口后,若通过 DescribeEndpoint 接口查询不到对应的端点,则表示删除成功。
|
|
227
|
+
*/
|
|
228
|
+
async DeleteEndpoint(req, cb) {
|
|
229
|
+
return this.request("DeleteEndpoint", req, cb);
|
|
230
|
+
}
|
|
199
231
|
/**
|
|
200
232
|
* 查询 TokenPlan 套餐详情。
|
|
201
233
|
|
|
@@ -242,6 +274,19 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
242
274
|
async DeleteTokenPlanApiKey(req, cb) {
|
|
243
275
|
return this.request("DeleteTokenPlanApiKey", req, cb);
|
|
244
276
|
}
|
|
277
|
+
/**
|
|
278
|
+
* 修改推理服务。
|
|
279
|
+
|
|
280
|
+
修改推理服务的属性,支持修改服务名称、QPM/TPM 限流上限、TPM 包续费设置、智能路由开关和手动重试 TPM 购买。
|
|
281
|
+
|
|
282
|
+
注意事项:
|
|
283
|
+
- 不支持通过本接口切换计费类型(ChargeType),计费类型仅可在创建推理服务(CreateEndpoint)时指定。
|
|
284
|
+
- 不支持通过本接口修改 TPM 预付费保障包的 quota(TpmInputLimit/TpmOutputLimit/TimeSpan),这些值仅可在创建推理服务时指定。
|
|
285
|
+
- 当 RetryTPMPurchase 为 true 时,系统会异步重试 TPM 包购买,调用后需轮询推理服务状态确认结果。
|
|
286
|
+
*/
|
|
287
|
+
async ModifyEndpoint(req, cb) {
|
|
288
|
+
return this.request("ModifyEndpoint", req, cb);
|
|
289
|
+
}
|
|
245
290
|
/**
|
|
246
291
|
* 删除指定的 API 密钥,同时清理关联的模型绑定关系。
|
|
247
292
|
*/
|
|
@@ -217,6 +217,23 @@ export interface DescribeTokenPlanListResponse {
|
|
|
217
217
|
*/
|
|
218
218
|
RequestId?: string;
|
|
219
219
|
}
|
|
220
|
+
/**
|
|
221
|
+
* DescribeModelEndpointList返回参数结构体
|
|
222
|
+
*/
|
|
223
|
+
export interface DescribeModelEndpointListResponse {
|
|
224
|
+
/**
|
|
225
|
+
* <p>模型接入点列表。</p>
|
|
226
|
+
*/
|
|
227
|
+
ModelEndpointSet?: Array<ModelEndpointView>;
|
|
228
|
+
/**
|
|
229
|
+
* <p>符合条件的总数。</p>
|
|
230
|
+
*/
|
|
231
|
+
TotalCount?: number;
|
|
232
|
+
/**
|
|
233
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
234
|
+
*/
|
|
235
|
+
RequestId?: string;
|
|
236
|
+
}
|
|
220
237
|
/**
|
|
221
238
|
* DeleteGlossaryEntries请求参数结构体
|
|
222
239
|
*/
|
|
@@ -286,6 +303,15 @@ export interface DescribeModelListResponse {
|
|
|
286
303
|
*/
|
|
287
304
|
RequestId?: string;
|
|
288
305
|
}
|
|
306
|
+
/**
|
|
307
|
+
* DeleteEndpoint返回参数结构体
|
|
308
|
+
*/
|
|
309
|
+
export interface DeleteEndpointResponse {
|
|
310
|
+
/**
|
|
311
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
312
|
+
*/
|
|
313
|
+
RequestId?: string;
|
|
314
|
+
}
|
|
289
315
|
/**
|
|
290
316
|
* CreateTokenPlanTeamOrderAndBuy请求参数结构体
|
|
291
317
|
*/
|
|
@@ -311,6 +337,39 @@ export interface CreateTokenPlanTeamOrderAndBuyRequest {
|
|
|
311
337
|
*/
|
|
312
338
|
EnableAutoRenew?: boolean;
|
|
313
339
|
}
|
|
340
|
+
/**
|
|
341
|
+
* CreateEndpoint请求参数结构体
|
|
342
|
+
*/
|
|
343
|
+
export interface CreateEndpointRequest {
|
|
344
|
+
/**
|
|
345
|
+
* <p>服务名称。最大 64 字符。</p>
|
|
346
|
+
*/
|
|
347
|
+
EndpointName: string;
|
|
348
|
+
/**
|
|
349
|
+
* <p>模型 ID。可通过 DescribeModelList 接口获取。</p>
|
|
350
|
+
*/
|
|
351
|
+
ModelId: string;
|
|
352
|
+
/**
|
|
353
|
+
* <p>计费方式。取值:FREE(免费体验)、TOKEN(按 Token 计费)、TPM(TPM 保障)、COMPUTE_UNIT(按算力单元计费)。</p>
|
|
354
|
+
*/
|
|
355
|
+
ChargeType: string;
|
|
356
|
+
/**
|
|
357
|
+
* <p>RPM(每分钟请求数)限流上限。可选。必须大于 0,且不能超过用户在该模型上的 RPM 上限。不传则使用默认值(60)。</p>
|
|
358
|
+
*/
|
|
359
|
+
RPM?: number;
|
|
360
|
+
/**
|
|
361
|
+
* <p>TPM(每分钟 Token 数)限流上限,单位为 tokens/min。可选。必须大于 0,且不能超过用户在该模型上的 TPM 上限。设置后会同时作用于输入 TPM 和输出 TPM。不传则使用默认值(0 表示不限流)。</p>
|
|
362
|
+
*/
|
|
363
|
+
TPM?: number;
|
|
364
|
+
/**
|
|
365
|
+
* <p>自动调整配额</p>
|
|
366
|
+
*/
|
|
367
|
+
AutoAdjustQuota?: number;
|
|
368
|
+
/**
|
|
369
|
+
* <p>自定义推理服务 id</p>
|
|
370
|
+
*/
|
|
371
|
+
EndpointId?: string;
|
|
372
|
+
}
|
|
314
373
|
/**
|
|
315
374
|
* DeleteTokenPlanApiKey返回参数结构体
|
|
316
375
|
*/
|
|
@@ -320,6 +379,15 @@ export interface DeleteTokenPlanApiKeyResponse {
|
|
|
320
379
|
*/
|
|
321
380
|
RequestId?: string;
|
|
322
381
|
}
|
|
382
|
+
/**
|
|
383
|
+
* 创建推理服务返回的详情信息
|
|
384
|
+
*/
|
|
385
|
+
export interface EndpointCreateDetail {
|
|
386
|
+
/**
|
|
387
|
+
* 预付费包 id
|
|
388
|
+
*/
|
|
389
|
+
PreResourceId?: string;
|
|
390
|
+
}
|
|
323
391
|
/**
|
|
324
392
|
* 术语条目详情
|
|
325
393
|
*/
|
|
@@ -444,6 +512,63 @@ export interface DescribeTokenPlanResponse {
|
|
|
444
512
|
*/
|
|
445
513
|
RequestId?: string;
|
|
446
514
|
}
|
|
515
|
+
/**
|
|
516
|
+
* 推理服务详情
|
|
517
|
+
*/
|
|
518
|
+
export interface EndpointDetail {
|
|
519
|
+
/**
|
|
520
|
+
* <p>推理服务 ID。</p>
|
|
521
|
+
*/
|
|
522
|
+
EndpointId?: string;
|
|
523
|
+
/**
|
|
524
|
+
* <p>服务名称。</p>
|
|
525
|
+
*/
|
|
526
|
+
EndpointName?: string;
|
|
527
|
+
/**
|
|
528
|
+
* <p>模型名称。</p>
|
|
529
|
+
*/
|
|
530
|
+
ModelName?: string;
|
|
531
|
+
/**
|
|
532
|
+
* <p>模型 ID。</p>
|
|
533
|
+
*/
|
|
534
|
+
ModelId?: string;
|
|
535
|
+
/**
|
|
536
|
+
* <p>状态。取值:ACTIVE(使用中)、INACTIVE(停止中)。</p>
|
|
537
|
+
*/
|
|
538
|
+
Status?: string;
|
|
539
|
+
/**
|
|
540
|
+
* <p>服务类型。取值:TEXT_GENERATION(文本生成)、IMAGE_GENERATION(图片生成)、VIDEO_GENERATION(视频生成)。</p>
|
|
541
|
+
*/
|
|
542
|
+
ServiceType?: string;
|
|
543
|
+
/**
|
|
544
|
+
* <p>计费方式。取值:FREE(免费体验)、TOKEN(按 Token 计费)</p><p>枚举值:</p><ul><li>FREE: 免费体验</li><li>TOKEN: 按 Token 计费</li></ul>
|
|
545
|
+
*/
|
|
546
|
+
ChargeType?: string;
|
|
547
|
+
/**
|
|
548
|
+
* <p>是否开启付费计费。true 表示已开启付费资源包,false 表示仅使用免费额度。</p>
|
|
549
|
+
*/
|
|
550
|
+
PaymentEnabled?: boolean;
|
|
551
|
+
/**
|
|
552
|
+
* <p>计费详情信息,JSON 格式字符串。不同 ChargeType 对应不同的 JSON 结构:</p><ul><li>免费额度信息(所有类型均可能包含):{"FreeQuota": {"TotalQuota": 200, "UsedQuota": 56, "UsagePercent": 28, "ExpireTime": "2026-06-15T00:00:00Z"}}</li><li>TPM 类型额外包含:{"Tpm": {"TpmInputLimit": 1000, "TpmOutputLimit": 1000}}</li><li>其他类型:预留扩展。</li></ul>
|
|
553
|
+
*/
|
|
554
|
+
ChargeDetail?: string;
|
|
555
|
+
/**
|
|
556
|
+
* <p>停止原因。当状态为 INACTIVE 时返回。取值:FREE_QUOTA_EXHAUSTED(免费额度已用尽)、NO_FREE_PACKAGE(无可用免费包)、INSUFFICIENT_BALANCE(余额不足,格式为 INSUFFICIENT_BALANCE:<待支付资源ID>)、BILLING_ISOLATED(账户欠费隔离)、INTERNAL_ERROR(内部错误)。当值为 INSUFFICIENT_BALANCE 时,冒号后附带待支付的 TPM 包资源 ID,前端可据此引导用户前往对应订单页完成支付。</p>
|
|
557
|
+
*/
|
|
558
|
+
StopReason?: string;
|
|
559
|
+
/**
|
|
560
|
+
* <p>TPM(每分钟 Token 限流)。当推理服务未单独设置时,回退为关联模型的默认 TPM 值。</p>
|
|
561
|
+
*/
|
|
562
|
+
TPM?: number;
|
|
563
|
+
/**
|
|
564
|
+
* <p>自动调整配额</p>
|
|
565
|
+
*/
|
|
566
|
+
AutoAdjustQuota?: number;
|
|
567
|
+
/**
|
|
568
|
+
* <p>RPM(每分钟请求数限流)。当推理服务未单独设置时,回退为关联模型的默认 RPM 值。</p>
|
|
569
|
+
*/
|
|
570
|
+
RPM?: number;
|
|
571
|
+
}
|
|
447
572
|
/**
|
|
448
573
|
* DescribeModelList请求参数结构体
|
|
449
574
|
*/
|
|
@@ -649,6 +774,27 @@ export interface ModifyGlossaryEntryInput {
|
|
|
649
774
|
*/
|
|
650
775
|
TargetTerm?: string;
|
|
651
776
|
}
|
|
777
|
+
/**
|
|
778
|
+
* CreateEndpoint返回参数结构体
|
|
779
|
+
*/
|
|
780
|
+
export interface CreateEndpointResponse {
|
|
781
|
+
/**
|
|
782
|
+
* <p>推理服务 ID。</p>
|
|
783
|
+
*/
|
|
784
|
+
EndpointId?: string;
|
|
785
|
+
/**
|
|
786
|
+
* <p>推理服务详情信息。</p>
|
|
787
|
+
*/
|
|
788
|
+
Endpoint?: EndpointCreateDetail;
|
|
789
|
+
/**
|
|
790
|
+
* <p>停止原因。当推理服务状态为已停止时返回。取值:FREE_QUOTA_EXHAUSTED(免费额度已用尽)、NO_FREE_PACKAGE(无可用免费包)、INSUFFICIENT_BALANCE(余额不足)、BILLING_ISOLATED(账户欠费隔离)、INTERNAL_ERROR(内部错误)。</p>
|
|
791
|
+
*/
|
|
792
|
+
StopReason?: string;
|
|
793
|
+
/**
|
|
794
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
795
|
+
*/
|
|
796
|
+
RequestId?: string;
|
|
797
|
+
}
|
|
652
798
|
/**
|
|
653
799
|
* DescribeTokenPlanApiKeyList请求参数结构体
|
|
654
800
|
*/
|
|
@@ -1418,6 +1564,15 @@ export interface DescribeApiKeyListRequest {
|
|
|
1418
1564
|
*/
|
|
1419
1565
|
Sorts?: Array<RequestSort>;
|
|
1420
1566
|
}
|
|
1567
|
+
/**
|
|
1568
|
+
* ModifyEndpoint请求参数结构体
|
|
1569
|
+
*/
|
|
1570
|
+
export interface ModifyEndpointRequest {
|
|
1571
|
+
/**
|
|
1572
|
+
* 自动调整配额
|
|
1573
|
+
*/
|
|
1574
|
+
AutoAdjustQuota?: number;
|
|
1575
|
+
}
|
|
1421
1576
|
/**
|
|
1422
1577
|
* UpgradeTokenPlanTeamOrder请求参数结构体
|
|
1423
1578
|
*/
|
|
@@ -1431,6 +1586,59 @@ export interface UpgradeTokenPlanTeamOrderRequest {
|
|
|
1431
1586
|
*/
|
|
1432
1587
|
NewCreditOrToken: number;
|
|
1433
1588
|
}
|
|
1589
|
+
/**
|
|
1590
|
+
* 模型接入点概览信息
|
|
1591
|
+
*/
|
|
1592
|
+
export interface ModelEndpointView {
|
|
1593
|
+
/**
|
|
1594
|
+
* <p>推理服务 ID。网关默认创建的 id 与模型 id 相同;控制台自定义推理服务以 ep- 开头。</p>
|
|
1595
|
+
*/
|
|
1596
|
+
EndpointId?: string;
|
|
1597
|
+
/**
|
|
1598
|
+
* <p>推理服务名称。未激活时与 ModelId 相同。</p>
|
|
1599
|
+
*/
|
|
1600
|
+
EndpointName?: string;
|
|
1601
|
+
/**
|
|
1602
|
+
* <p>模型 ID。</p>
|
|
1603
|
+
*/
|
|
1604
|
+
ModelId?: string;
|
|
1605
|
+
/**
|
|
1606
|
+
* <p>模型名称。</p>
|
|
1607
|
+
*/
|
|
1608
|
+
ModelName?: string;
|
|
1609
|
+
/**
|
|
1610
|
+
* <p>状态。取值:ACTIVE(运行中)、INACTIVE(已停止)。</p>
|
|
1611
|
+
*/
|
|
1612
|
+
Status?: string;
|
|
1613
|
+
/**
|
|
1614
|
+
* <p>服务类型。固定为 TEXT_GENERATION(文本生成)。</p>
|
|
1615
|
+
*/
|
|
1616
|
+
ServiceType?: string;
|
|
1617
|
+
/**
|
|
1618
|
+
* <p>计费方式。取值:FREE(免费体验)、TOKEN(按 Token 计费)。未激活时为空。</p>
|
|
1619
|
+
*/
|
|
1620
|
+
ChargeType?: string;
|
|
1621
|
+
/**
|
|
1622
|
+
* <p>是否已开启后付费。true 表示已开启,false 表示未开启。未激活时为 false。</p>
|
|
1623
|
+
*/
|
|
1624
|
+
PaymentEnabled?: boolean;
|
|
1625
|
+
/**
|
|
1626
|
+
* <p>计费详情信息,JSON 格式字符串,包含免费额度用量等信息。未激活时为空。</p>
|
|
1627
|
+
*/
|
|
1628
|
+
ChargeDetail?: string;
|
|
1629
|
+
/**
|
|
1630
|
+
* <p>停止原因。当状态为 INACTIVE 时返回。取值:FREE_QUOTA_EXHAUSTED(免费额度已用尽)、NO_FREE_PACKAGE(无可用免费包)、INSUFFICIENT_BALANCE(余额不足)、BILLING_ISOLATED(账户欠费隔离)、INTERNAL_ERROR(内部错误)。</p>
|
|
1631
|
+
*/
|
|
1632
|
+
StopReason?: string;
|
|
1633
|
+
/**
|
|
1634
|
+
* <p>推理服务的 rpm 限制,没设置就按模型维度 rpm 限制展示</p>
|
|
1635
|
+
*/
|
|
1636
|
+
RPM?: number;
|
|
1637
|
+
/**
|
|
1638
|
+
* <p>推理服务的tpm 限制,没设置就按模型维度 tpm 限制展示</p>
|
|
1639
|
+
*/
|
|
1640
|
+
TPM?: number;
|
|
1641
|
+
}
|
|
1434
1642
|
/**
|
|
1435
1643
|
* Token 汇总计费项
|
|
1436
1644
|
*/
|
|
@@ -1714,6 +1922,15 @@ export interface ModelSpec {
|
|
|
1714
1922
|
*/
|
|
1715
1923
|
InputDescription?: string;
|
|
1716
1924
|
}
|
|
1925
|
+
/**
|
|
1926
|
+
* DescribeEndpoint请求参数结构体
|
|
1927
|
+
*/
|
|
1928
|
+
export interface DescribeEndpointRequest {
|
|
1929
|
+
/**
|
|
1930
|
+
* <p>推理服务 ID。可通过 DescribeEndpointList 接口获取。</p>
|
|
1931
|
+
*/
|
|
1932
|
+
EndpointId: string;
|
|
1933
|
+
}
|
|
1717
1934
|
/**
|
|
1718
1935
|
* 主包Token总结
|
|
1719
1936
|
*/
|
|
@@ -1735,6 +1952,19 @@ export interface TokenSummary {
|
|
|
1735
1952
|
*/
|
|
1736
1953
|
BillingItems?: Array<TokenSummaryBillingItem>;
|
|
1737
1954
|
}
|
|
1955
|
+
/**
|
|
1956
|
+
* DescribeEndpoint返回参数结构体
|
|
1957
|
+
*/
|
|
1958
|
+
export interface DescribeEndpointResponse {
|
|
1959
|
+
/**
|
|
1960
|
+
* <p>推理服务详情。</p>
|
|
1961
|
+
*/
|
|
1962
|
+
Endpoint?: EndpointDetail;
|
|
1963
|
+
/**
|
|
1964
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1965
|
+
*/
|
|
1966
|
+
RequestId?: string;
|
|
1967
|
+
}
|
|
1738
1968
|
/**
|
|
1739
1969
|
* CreateTokenPlanApiKeys请求参数结构体
|
|
1740
1970
|
*/
|
|
@@ -1772,6 +2002,15 @@ export interface CreateTokenPlanApiKeysRequest {
|
|
|
1772
2002
|
*/
|
|
1773
2003
|
TPM?: number;
|
|
1774
2004
|
}
|
|
2005
|
+
/**
|
|
2006
|
+
* ModifyEndpoint返回参数结构体
|
|
2007
|
+
*/
|
|
2008
|
+
export interface ModifyEndpointResponse {
|
|
2009
|
+
/**
|
|
2010
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2011
|
+
*/
|
|
2012
|
+
RequestId?: string;
|
|
2013
|
+
}
|
|
1775
2014
|
/**
|
|
1776
2015
|
* DeleteTokenPlanApiKey请求参数结构体
|
|
1777
2016
|
*/
|
|
@@ -1806,6 +2045,27 @@ export interface ModelChargingItem {
|
|
|
1806
2045
|
*/
|
|
1807
2046
|
PeakPrice?: string;
|
|
1808
2047
|
}
|
|
2048
|
+
/**
|
|
2049
|
+
* DescribeModelEndpointList请求参数结构体
|
|
2050
|
+
*/
|
|
2051
|
+
export interface DescribeModelEndpointListRequest {
|
|
2052
|
+
/**
|
|
2053
|
+
* <p>偏移量,从 0 开始,默认为 0。</p>
|
|
2054
|
+
*/
|
|
2055
|
+
Offset?: number;
|
|
2056
|
+
/**
|
|
2057
|
+
* <p>每页返回数量,默认为 20,最大值为 100。</p>
|
|
2058
|
+
*/
|
|
2059
|
+
Limit?: number;
|
|
2060
|
+
/**
|
|
2061
|
+
* <p>过滤条件列表。支持的过滤字段:Status(状态,取值 ACTIVE/INACTIVE)、ChargeType(计费方式,取值 FREE/TOKEN)、RequestSource(创建来源,取值 MC/GW)、ModelName(模型名称)、ModelId(模型 ID)、PaymentEnabled(是否已开启后付费,取值 true/false)。</p>
|
|
2062
|
+
*/
|
|
2063
|
+
Filters?: Array<RequestFilter>;
|
|
2064
|
+
/**
|
|
2065
|
+
* <p>排序条件列表。支持的排序字段:CreatedTime、UpdatedTime。不传时使用默认排序规则。</p>
|
|
2066
|
+
*/
|
|
2067
|
+
Sorts?: Array<RequestSort>;
|
|
2068
|
+
}
|
|
1809
2069
|
/**
|
|
1810
2070
|
* DescribeTokenPlanApiKey返回参数结构体
|
|
1811
2071
|
*/
|
|
@@ -2061,6 +2321,10 @@ export interface ModifyGlossaryEntriesRequest {
|
|
|
2061
2321
|
*/
|
|
2062
2322
|
Entries: Array<ModifyGlossaryEntryInput>;
|
|
2063
2323
|
}
|
|
2324
|
+
/**
|
|
2325
|
+
* DeleteEndpoint请求参数结构体
|
|
2326
|
+
*/
|
|
2327
|
+
export type DeleteEndpointRequest = null;
|
|
2064
2328
|
/**
|
|
2065
2329
|
* RenewTokenPlanTeamOrder请求参数结构体
|
|
2066
2330
|
*/
|