tencentcloud-sdk-nodejs-tokenhub 4.1.354 → 4.1.356
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 +3 -0
- package/package.json +1 -1
- package/tencentcloud/services/tokenhub/v20260322/tokenhub_client.d.ts +7 -1
- package/tencentcloud/services/tokenhub/v20260322/tokenhub_client.js +8 -0
- package/tencentcloud/services/tokenhub/v20260322/tokenhub_models.d.ts +71 -0
|
@@ -72,6 +72,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
72
72
|
async DeleteGlossary(req, cb) {
|
|
73
73
|
return this.request("DeleteGlossary", req, cb);
|
|
74
74
|
}
|
|
75
|
+
async DescribeModelCapabilityList(req, cb) {
|
|
76
|
+
return this.request("DescribeModelCapabilityList", req, cb);
|
|
77
|
+
}
|
|
75
78
|
async DescribeEndpoint(req, cb) {
|
|
76
79
|
return this.request("DescribeEndpoint", req, cb);
|
|
77
80
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
-
import { DescribeTokenPlanApiKeyListResponse, DeleteGlossaryResponse, DeleteGlossaryEntriesResponse, RenewTokenPlanTeamOrderResponse, DescribeTokenPlanListResponse, DescribeModelEndpointListResponse, DeleteGlossaryEntriesRequest, CreateGlossaryEntriesResponse, CreateTokenPlanApiKeysResponse, DescribeModelListResponse, DescribeTokenPlanPersonalPackageResponse, DeleteEndpointResponse, CreateTokenPlanTeamOrderAndBuyRequest, CreateEndpointRequest, DeleteTokenPlanApiKeyResponse, ModifyGlossaryEntriesResponse, DescribeTokenPlanResponse, DescribeModelListRequest, DescribeTokenPlanApiKeySecretResponse, ModifyTokenPlanApiKeySecretResponse, DescribeApiKeyListResponse, ModifyApiKeyInfoResponse, DeleteGlossaryRequest, DescribeGlossaryEntriesRequest, ModifyApiKeyBindingsResponse, DescribeTokenPlanApiKeyRequest, DeleteApiKeyResponse, ModifyApiKeyBindingsRequest, CreateEndpointResponse, DescribeTokenPlanApiKeyListRequest, DescribeGlossariesRequest, DescribeTokenPlanApiKeyUsageDetailRequest, DescribeGlossaryEntriesResponse, DeleteApiKeyRequest, UpgradeTokenPlanTeamOrderResponse, DescribeUsageRankListResponse, DescribeModelQuotaResponse, DescribeTokenPlanApiKeySecretRequest, DescribeModelQuotaRequest, ModifyApiKeyStatusRequest, DescribeTokenPlanRequest, ModifyTokenPlanApiKeyResponse, DescribeApiKeyListRequest, ModifyEndpointRequest, UpgradeTokenPlanTeamOrderRequest, DescribeTokenPlanApiKeyUsageDetailResponse, ModifyApiKeyInfoRequest, DescribeTokenPlanPersonalPackageRequest, DescribeApiKeyRequest, DescribeUsageRankListRequest, CreateGlossaryEntriesRequest, DescribeGlossariesResponse, CreateApiKeyResponse, DescribeEndpointRequest, DescribeEndpointResponse, CreateTokenPlanApiKeysRequest, ModifyEndpointResponse, DeleteTokenPlanApiKeyRequest, DescribeModelEndpointListRequest, DescribeTokenPlanApiKeyResponse, ModifyTokenPlanApiKeySecretRequest, ModifyTokenPlanApiKeyRequest, CreateGlossaryRequest, CreateGlossaryResponse, ModifyGlossaryEntriesRequest, DeleteEndpointRequest, RenewTokenPlanTeamOrderRequest, DescribeApiKeyResponse, ModifyApiKeyStatusResponse, CreateTokenPlanTeamOrderAndBuyResponse, DescribeTokenPlanListRequest, CreateApiKeyRequest } from "./tokenhub_models";
|
|
2
|
+
import { DescribeTokenPlanApiKeyListResponse, DeleteGlossaryResponse, DeleteGlossaryEntriesResponse, RenewTokenPlanTeamOrderResponse, DescribeTokenPlanListResponse, DescribeModelEndpointListResponse, DeleteGlossaryEntriesRequest, CreateGlossaryEntriesResponse, CreateTokenPlanApiKeysResponse, DescribeModelListResponse, DescribeTokenPlanPersonalPackageResponse, DeleteEndpointResponse, CreateTokenPlanTeamOrderAndBuyRequest, CreateEndpointRequest, DescribeModelCapabilityListRequest, DeleteTokenPlanApiKeyResponse, ModifyGlossaryEntriesResponse, DescribeTokenPlanResponse, DescribeModelCapabilityListResponse, DescribeModelListRequest, DescribeTokenPlanApiKeySecretResponse, ModifyTokenPlanApiKeySecretResponse, DescribeApiKeyListResponse, ModifyApiKeyInfoResponse, DeleteGlossaryRequest, DescribeGlossaryEntriesRequest, ModifyApiKeyBindingsResponse, DescribeTokenPlanApiKeyRequest, DeleteApiKeyResponse, ModifyApiKeyBindingsRequest, CreateEndpointResponse, DescribeTokenPlanApiKeyListRequest, DescribeGlossariesRequest, DescribeTokenPlanApiKeyUsageDetailRequest, DescribeGlossaryEntriesResponse, DeleteApiKeyRequest, UpgradeTokenPlanTeamOrderResponse, DescribeUsageRankListResponse, DescribeModelQuotaResponse, DescribeTokenPlanApiKeySecretRequest, DescribeModelQuotaRequest, ModifyApiKeyStatusRequest, DescribeTokenPlanRequest, ModifyTokenPlanApiKeyResponse, DescribeApiKeyListRequest, ModifyEndpointRequest, UpgradeTokenPlanTeamOrderRequest, DescribeTokenPlanApiKeyUsageDetailResponse, ModifyApiKeyInfoRequest, DescribeTokenPlanPersonalPackageRequest, DescribeApiKeyRequest, DescribeUsageRankListRequest, CreateGlossaryEntriesRequest, DescribeGlossariesResponse, CreateApiKeyResponse, DescribeEndpointRequest, DescribeEndpointResponse, CreateTokenPlanApiKeysRequest, ModifyEndpointResponse, DeleteTokenPlanApiKeyRequest, DescribeModelEndpointListRequest, DescribeTokenPlanApiKeyResponse, ModifyTokenPlanApiKeySecretRequest, ModifyTokenPlanApiKeyRequest, CreateGlossaryRequest, CreateGlossaryResponse, ModifyGlossaryEntriesRequest, DeleteEndpointRequest, RenewTokenPlanTeamOrderRequest, DescribeApiKeyResponse, ModifyApiKeyStatusResponse, CreateTokenPlanTeamOrderAndBuyResponse, DescribeTokenPlanListRequest, CreateApiKeyRequest } from "./tokenhub_models";
|
|
3
3
|
/**
|
|
4
4
|
* tokenhub client
|
|
5
5
|
* @class
|
|
@@ -151,6 +151,12 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
151
151
|
删除指定的术语库及其下所有术语条目。删除操作幂等,对不存在的术语库返回成功。调用接口后,若通过 DescribeGlossaries 接口查询不到对应术语库,则表示删除成功。
|
|
152
152
|
*/
|
|
153
153
|
DeleteGlossary(req: DeleteGlossaryRequest, cb?: (error: string, rep: DeleteGlossaryResponse) => void): Promise<DeleteGlossaryResponse>;
|
|
154
|
+
/**
|
|
155
|
+
* 查询模型能力列表。
|
|
156
|
+
|
|
157
|
+
支持查询所有能力或指定模型的能力列表,支持分页。
|
|
158
|
+
*/
|
|
159
|
+
DescribeModelCapabilityList(req: DescribeModelCapabilityListRequest, cb?: (error: string, rep: DescribeModelCapabilityListResponse) => void): Promise<DescribeModelCapabilityListResponse>;
|
|
154
160
|
/**
|
|
155
161
|
* 查询推理服务详情。
|
|
156
162
|
|
|
@@ -219,6 +219,14 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
219
219
|
async DeleteGlossary(req, cb) {
|
|
220
220
|
return this.request("DeleteGlossary", req, cb);
|
|
221
221
|
}
|
|
222
|
+
/**
|
|
223
|
+
* 查询模型能力列表。
|
|
224
|
+
|
|
225
|
+
支持查询所有能力或指定模型的能力列表,支持分页。
|
|
226
|
+
*/
|
|
227
|
+
async DescribeModelCapabilityList(req, cb) {
|
|
228
|
+
return this.request("DescribeModelCapabilityList", req, cb);
|
|
229
|
+
}
|
|
222
230
|
/**
|
|
223
231
|
* 查询推理服务详情。
|
|
224
232
|
|
|
@@ -442,6 +442,10 @@ export interface CreateEndpointRequest {
|
|
|
442
442
|
* <p>模型 ID。可通过 DescribeModelList 接口获取。</p>
|
|
443
443
|
*/
|
|
444
444
|
ModelId: string;
|
|
445
|
+
/**
|
|
446
|
+
* <p>服务类型。取值:TEXT_GENERATION(文本生成)、IMAGE_GENERATION(图片生成)、VIDEO_GENERATION(视频生成)。</p>
|
|
447
|
+
*/
|
|
448
|
+
ServiceType: string;
|
|
445
449
|
/**
|
|
446
450
|
* <p>计费方式。取值:FREE(免费体验)、TOKEN(按 Token 计费)、TPM(TPM 保障)、COMPUTE_UNIT(按算力单元计费)。</p>
|
|
447
451
|
*/
|
|
@@ -463,6 +467,35 @@ export interface CreateEndpointRequest {
|
|
|
463
467
|
*/
|
|
464
468
|
EndpointId?: string;
|
|
465
469
|
}
|
|
470
|
+
/**
|
|
471
|
+
* DescribeModelCapabilityList请求参数结构体
|
|
472
|
+
*/
|
|
473
|
+
export interface DescribeModelCapabilityListRequest {
|
|
474
|
+
/**
|
|
475
|
+
* <p>API 来源。取值:Model(模型广场)、ApiKey(推理服务)。默认值为 Model。</p>
|
|
476
|
+
*/
|
|
477
|
+
Source?: string;
|
|
478
|
+
/**
|
|
479
|
+
* <p>模型 ID,不传则查询所有能力,传入则查询指定模型的能力。可通过 DescribeModelList 接口获取。</p>
|
|
480
|
+
*/
|
|
481
|
+
ModelId?: string;
|
|
482
|
+
/**
|
|
483
|
+
* <p>返回数量,默认为 20,最大值为 100。</p>
|
|
484
|
+
*/
|
|
485
|
+
Limit?: number;
|
|
486
|
+
/**
|
|
487
|
+
* <p>偏移量,默认为 0。</p>
|
|
488
|
+
*/
|
|
489
|
+
Offset?: number;
|
|
490
|
+
/**
|
|
491
|
+
* <p>过滤条件列表。支持的过滤字段:CapabilityName。</p>
|
|
492
|
+
*/
|
|
493
|
+
Filters?: Array<RequestFilter>;
|
|
494
|
+
/**
|
|
495
|
+
* <p>排序条件列表。</p>
|
|
496
|
+
*/
|
|
497
|
+
Sorts?: Array<RequestSort>;
|
|
498
|
+
}
|
|
466
499
|
/**
|
|
467
500
|
* DeleteTokenPlanApiKey返回参数结构体
|
|
468
501
|
*/
|
|
@@ -605,6 +638,23 @@ export interface DescribeTokenPlanResponse {
|
|
|
605
638
|
*/
|
|
606
639
|
RequestId?: string;
|
|
607
640
|
}
|
|
641
|
+
/**
|
|
642
|
+
* DescribeModelCapabilityList返回参数结构体
|
|
643
|
+
*/
|
|
644
|
+
export interface DescribeModelCapabilityListResponse {
|
|
645
|
+
/**
|
|
646
|
+
* <p>能力列表。</p>
|
|
647
|
+
*/
|
|
648
|
+
CapabilitySet?: Array<ModelCapability>;
|
|
649
|
+
/**
|
|
650
|
+
* <p>符合条件的能力总数。</p>
|
|
651
|
+
*/
|
|
652
|
+
TotalCount?: number;
|
|
653
|
+
/**
|
|
654
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
655
|
+
*/
|
|
656
|
+
RequestId?: string;
|
|
657
|
+
}
|
|
608
658
|
/**
|
|
609
659
|
* 推理服务详情
|
|
610
660
|
*/
|
|
@@ -2525,6 +2575,27 @@ export interface ModelSiteRegion {
|
|
|
2525
2575
|
*/
|
|
2526
2576
|
Regions?: Array<string>;
|
|
2527
2577
|
}
|
|
2578
|
+
/**
|
|
2579
|
+
* 模型能力信息
|
|
2580
|
+
*/
|
|
2581
|
+
export interface ModelCapability {
|
|
2582
|
+
/**
|
|
2583
|
+
* <p>能力标识。</p><p>枚举值:</p><ul><li>DeepThink: 深度思考</li><li>StructOutput: 结构化输出</li><li>WebSearch: 联网搜索</li><li>FunctionCall: Function Calling</li><li>InputText: 文本输入</li><li>InputImage: 图片输入</li><li>InputVideo: 视频输入</li><li>InputAudio: 音频输入</li><li>Input3DModelFile: 3D模型文件输入</li><li>InputFile: 文件输入</li><li>OutputText: 文本输出</li><li>OutputImage: 图片输出</li><li>OutputVideo: 视频输出</li><li>OutputAudio: 音频输出</li><li>Output3DModelFile: 3D模型文件输出</li><li>CompletionsAPI: Completions API</li><li>AnthropicAPI: Anthropic API</li><li>ResponsesAPI: Response API</li></ul>
|
|
2584
|
+
*/
|
|
2585
|
+
CapabilityName?: string;
|
|
2586
|
+
/**
|
|
2587
|
+
* <p>能力值。</p><p>枚举值:</p><ul><li>true: 支持</li></ul>
|
|
2588
|
+
*/
|
|
2589
|
+
CapabilityValue?: string;
|
|
2590
|
+
/**
|
|
2591
|
+
* <p>能力显示名称。</p>
|
|
2592
|
+
*/
|
|
2593
|
+
DisplayName?: string;
|
|
2594
|
+
/**
|
|
2595
|
+
* <p>能力描述。</p>
|
|
2596
|
+
*/
|
|
2597
|
+
Description?: string;
|
|
2598
|
+
}
|
|
2528
2599
|
/**
|
|
2529
2600
|
* DescribeApiKey返回参数结构体
|
|
2530
2601
|
*/
|