tencentcloud-sdk-nodejs 4.1.15 → 4.1.17
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/common/sdk_version.js +1 -1
- package/es/services/bh/v20230418/bh_client.js +21 -6
- package/es/services/ccc/v20200210/ccc_client.js +9 -0
- package/es/services/chc/v20230418/chc_client.js +5 -2
- package/es/services/cls/v20201016/cls_client.js +3 -0
- package/es/services/es/index.js +2 -0
- package/es/services/es/v20250101/es_client.js +33 -0
- package/es/services/es/v20250101/es_models.js +0 -0
- package/es/services/es/v20250101/index.js +6 -0
- package/es/services/ess/v20201111/ess_client.js +3 -0
- package/es/services/essbasic/v20210526/essbasic_client.js +3 -0
- package/es/services/hunyuan/v20230901/hunyuan_client.js +37 -31
- package/es/services/monitor/v20180724/monitor_client.js +3 -0
- package/es/services/sts/v20180813/sts_client.js +3 -0
- package/es/services/tione/v20211111/tione_client.js +3 -0
- package/es/services/waf/v20180125/waf_client.js +22 -13
- package/package.json +1 -1
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/bh/v20230418/bh_client.d.ts +27 -7
- package/tencentcloud/services/bh/v20230418/bh_client.js +39 -9
- package/tencentcloud/services/bh/v20230418/bh_models.d.ts +229 -6
- package/tencentcloud/services/bpaas/v20181217/bpaas_models.d.ts +0 -27
- package/tencentcloud/services/ccc/v20200210/ccc_client.d.ts +13 -1
- package/tencentcloud/services/ccc/v20200210/ccc_client.js +18 -0
- package/tencentcloud/services/ccc/v20200210/ccc_models.d.ts +252 -105
- package/tencentcloud/services/cdb/v20170320/cdb_client.d.ts +1 -1
- package/tencentcloud/services/cdb/v20170320/cdb_client.js +1 -1
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +4 -0
- package/tencentcloud/services/chc/v20230418/chc_client.d.ts +7 -3
- package/tencentcloud/services/chc/v20230418/chc_client.js +9 -3
- package/tencentcloud/services/chc/v20230418/chc_models.d.ts +59 -13
- package/tencentcloud/services/clb/v20180317/clb_models.d.ts +5 -0
- package/tencentcloud/services/cls/v20201016/cls_client.d.ts +5 -1
- package/tencentcloud/services/cls/v20201016/cls_client.js +6 -0
- package/tencentcloud/services/cls/v20201016/cls_models.d.ts +24 -2
- package/tencentcloud/services/cwp/v20180228/cwp_client.d.ts +1 -1
- package/tencentcloud/services/cwp/v20180228/cwp_client.js +1 -1
- package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +2 -2
- package/tencentcloud/services/es/index.d.ts +4 -0
- package/tencentcloud/services/es/index.js +2 -0
- package/tencentcloud/services/es/v20180416/es_models.d.ts +120 -105
- package/tencentcloud/services/es/v20250101/es_client.d.ts +51 -0
- package/tencentcloud/services/es/v20250101/es_client.js +90 -0
- package/tencentcloud/services/es/v20250101/es_models.d.ts +568 -0
- package/tencentcloud/services/es/v20250101/es_models.js +18 -0
- package/tencentcloud/services/es/v20250101/index.d.ts +6 -0
- package/tencentcloud/services/es/v20250101/index.js +10 -0
- package/tencentcloud/services/ess/v20201111/ess_client.d.ts +16 -1
- package/tencentcloud/services/ess/v20201111/ess_client.js +17 -0
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +61 -20
- package/tencentcloud/services/essbasic/v20210526/essbasic_client.d.ts +15 -1
- package/tencentcloud/services/essbasic/v20210526/essbasic_client.js +16 -0
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +77 -39
- package/tencentcloud/services/hunyuan/v20230901/hunyuan_client.d.ts +61 -53
- package/tencentcloud/services/hunyuan/v20230901/hunyuan_client.js +87 -75
- package/tencentcloud/services/hunyuan/v20230901/hunyuan_models.d.ts +90 -0
- package/tencentcloud/services/lcic/v20220817/lcic_models.d.ts +4 -0
- package/tencentcloud/services/live/v20180801/live_models.d.ts +1 -7
- package/tencentcloud/services/lke/v20231130/lke_client.d.ts +1 -1
- package/tencentcloud/services/lke/v20231130/lke_models.d.ts +69 -5
- package/tencentcloud/services/lkeap/v20240522/lkeap_client.d.ts +3 -3
- package/tencentcloud/services/lkeap/v20240522/lkeap_client.js +3 -3
- package/tencentcloud/services/monitor/v20180724/monitor_client.d.ts +5 -1
- package/tencentcloud/services/monitor/v20180724/monitor_client.js +6 -0
- package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +21 -8
- package/tencentcloud/services/mps/v20190612/mps_models.d.ts +101 -92
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +1 -1
- package/tencentcloud/services/sts/v20180813/sts_client.d.ts +5 -1
- package/tencentcloud/services/sts/v20180813/sts_client.js +6 -0
- package/tencentcloud/services/sts/v20180813/sts_models.d.ts +50 -4
- package/tencentcloud/services/tcr/v20190924/tcr_models.d.ts +5 -3
- package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +20 -0
- package/tencentcloud/services/tione/v20211111/tione_client.d.ts +5 -1
- package/tencentcloud/services/tione/v20211111/tione_client.js +6 -0
- package/tencentcloud/services/tione/v20211111/tione_models.d.ts +271 -156
- package/tencentcloud/services/trtc/v20190722/trtc_client.d.ts +4 -0
- package/tencentcloud/services/trtc/v20190722/trtc_client.js +4 -0
- package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +2 -5
- package/tencentcloud/services/tse/v20201207/tse_models.d.ts +2 -151
- package/tencentcloud/services/tsf/v20180326/tsf_client.d.ts +3 -1
- package/tencentcloud/services/tsf/v20180326/tsf_client.js +3 -1
- package/tencentcloud/services/tsf/v20180326/tsf_models.d.ts +20 -72
- package/tencentcloud/services/waf/v20180125/waf_client.d.ts +27 -15
- package/tencentcloud/services/waf/v20180125/waf_client.js +39 -21
- package/tencentcloud/services/waf/v20180125/waf_models.d.ts +219 -92
|
@@ -1,20 +1,12 @@
|
|
|
1
1
|
import { AbstractClient } from "../../../common/abstract_client";
|
|
2
2
|
import { ClientConfig } from "../../../common/interface";
|
|
3
|
-
import { ChatCompletionsRequest, FilesUploadsRequest, GetEmbeddingRequest, ActivateServiceRequest, GetThreadRequest, ChatTranslationsResponse, SubmitHunyuanImageJobRequest, SubmitHunyuanImageChatJobResponse, QueryHunyuanImageChatJobRequest, RunThreadRequest, SubmitHunyuanImageChatJobRequest, ChatTranslationsRequest, GetThreadMessageResponse, GetThreadMessageListRequest, GetTokenCountResponse, QueryHunyuanImageChatJobResponse, GroupChatCompletionsRequest, SetPayModeResponse, SetPayModeRequest, TextToImageLiteRequest, CreateThreadResponse, SubmitHunyuanImageJobResponse, GroupChatCompletionsResponse, GetThreadResponse, ActivateServiceResponse, QueryHunyuanImageJobResponse, FilesUploadsResponse, FilesDeletionsResponse, GetEmbeddingResponse, GetThreadMessageListResponse, QueryHunyuanImageJobRequest, FilesListRequest, RunThreadResponse, FilesDeletionsRequest, FilesListResponse, GetTokenCountRequest, TextToImageLiteResponse, GetThreadMessageRequest, CreateThreadRequest, ChatCompletionsResponse } from "./hunyuan_models";
|
|
3
|
+
import { ChatCompletionsRequest, FilesUploadsRequest, GetEmbeddingRequest, ActivateServiceRequest, GetThreadRequest, ChatTranslationsResponse, SubmitHunyuanImageJobRequest, SubmitHunyuanImageChatJobResponse, SubmitHunyuanTo3DJobRequest, QueryHunyuanImageChatJobRequest, RunThreadRequest, SubmitHunyuanImageChatJobRequest, ChatTranslationsRequest, GetThreadMessageResponse, GetThreadMessageListRequest, SubmitHunyuanTo3DJobResponse, GetTokenCountResponse, QueryHunyuanImageChatJobResponse, GroupChatCompletionsRequest, SetPayModeResponse, QueryHunyuanTo3DJobRequest, SetPayModeRequest, TextToImageLiteRequest, CreateThreadResponse, SubmitHunyuanImageJobResponse, GroupChatCompletionsResponse, GetThreadResponse, ActivateServiceResponse, QueryHunyuanImageJobResponse, FilesUploadsResponse, FilesDeletionsResponse, GetEmbeddingResponse, GetThreadMessageListResponse, QueryHunyuanImageJobRequest, FilesListRequest, RunThreadResponse, FilesDeletionsRequest, FilesListResponse, GetTokenCountRequest, TextToImageLiteResponse, GetThreadMessageRequest, CreateThreadRequest, ChatCompletionsResponse, QueryHunyuanTo3DJobResponse } from "./hunyuan_models";
|
|
4
4
|
/**
|
|
5
5
|
* hunyuan client
|
|
6
6
|
* @class
|
|
7
7
|
*/
|
|
8
8
|
export declare class Client extends AbstractClient {
|
|
9
9
|
constructor(clientConfig: ClientConfig);
|
|
10
|
-
/**
|
|
11
|
-
* 设置付费模式
|
|
12
|
-
*/
|
|
13
|
-
SetPayMode(req: SetPayModeRequest, cb?: (error: string, rep: SetPayModeResponse) => void): Promise<SetPayModeResponse>;
|
|
14
|
-
/**
|
|
15
|
-
* 文件列表。
|
|
16
|
-
*/
|
|
17
|
-
FilesList(req: FilesListRequest, cb?: (error: string, rep: FilesListResponse) => void): Promise<FilesListResponse>;
|
|
18
10
|
/**
|
|
19
11
|
* 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
|
|
20
12
|
|
|
@@ -24,44 +16,29 @@ export declare class Client extends AbstractClient {
|
|
|
24
16
|
4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
|
|
25
17
|
*/
|
|
26
18
|
GetThread(req: GetThreadRequest, cb?: (error: string, rep: GetThreadResponse) => void): Promise<GetThreadResponse>;
|
|
27
|
-
/**
|
|
28
|
-
* 混元生图(多轮对话)接口基于混元大模型,将根据输入的文本描述生成图像,支持通过多轮对话的方式不断调整图像内容。分为提交任务和查询任务2个接口。
|
|
29
|
-
提交任务:输入文本和前置对话 ID 等,提交一个混元生图多轮对话异步任务,获得任务 ID。
|
|
30
|
-
查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得在上一轮对话基础上继续生成的图像结果。
|
|
31
|
-
混元生图(多轮对话)默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
|
|
32
|
-
*/
|
|
33
|
-
SubmitHunyuanImageChatJob(req: SubmitHunyuanImageChatJobRequest, cb?: (error: string, rep: SubmitHunyuanImageChatJobResponse) => void): Promise<SubmitHunyuanImageChatJobResponse>;
|
|
34
|
-
/**
|
|
35
|
-
* 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
|
|
36
|
-
|
|
37
|
-
1. 本接口暂不支持返回图片内容。
|
|
38
|
-
2. 默认该接口下单账号限制并发数为 5 路,如您有提高并发限制的需求请 [购买](https://buy.cloud.tencent.com/hunyuan) 。
|
|
39
|
-
3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。
|
|
40
|
-
4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
|
|
41
|
-
*/
|
|
42
|
-
CreateThread(req?: CreateThreadRequest, cb?: (error: string, rep: CreateThreadResponse) => void): Promise<CreateThreadResponse>;
|
|
43
|
-
/**
|
|
44
|
-
* 该接口用于计算文本对应Token数、字符数。
|
|
45
|
-
*/
|
|
46
|
-
GetTokenCount(req: GetTokenCountRequest, cb?: (error: string, rep: GetTokenCountResponse) => void): Promise<GetTokenCountResponse>;
|
|
47
19
|
/**
|
|
48
20
|
* 混元生图接口基于混元大模型,将根据输入的文本描述,智能生成与之相关的结果图。分为提交任务和查询任务2个接口。
|
|
49
21
|
提交任务:输入文本等,提交一个混元生图异步任务,获得任务 ID。
|
|
50
22
|
查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。
|
|
51
23
|
并发任务数(并发)说明:并发任务数指能同时处理的任务数量。混元生图默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
|
|
52
24
|
*/
|
|
53
|
-
|
|
25
|
+
SubmitHunyuanImageJob(req: SubmitHunyuanImageJobRequest, cb?: (error: string, rep: SubmitHunyuanImageJobResponse) => void): Promise<SubmitHunyuanImageJobResponse>;
|
|
54
26
|
/**
|
|
55
27
|
* 混元生图接口基于混元大模型,将根据输入的文本描述,智能生成与之相关的结果图。分为提交任务和查询任务2个接口。
|
|
56
28
|
提交任务:输入文本等,提交一个混元生图异步任务,获得任务 ID。
|
|
57
29
|
查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。
|
|
58
30
|
并发任务数(并发)说明:并发任务数指能同时处理的任务数量。混元生图默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
|
|
59
31
|
*/
|
|
60
|
-
|
|
32
|
+
QueryHunyuanImageJob(req: QueryHunyuanImageJobRequest, cb?: (error: string, rep: QueryHunyuanImageJobResponse) => void): Promise<QueryHunyuanImageJobResponse>;
|
|
61
33
|
/**
|
|
62
|
-
*
|
|
34
|
+
* 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
|
|
35
|
+
|
|
36
|
+
1. 本接口暂不支持返回图片内容。
|
|
37
|
+
2. 默认该接口下单账号限制并发数为 5 路,如您有提高并发限制的需求请 [购买](https://buy.cloud.tencent.com/hunyuan) 。
|
|
38
|
+
3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。
|
|
39
|
+
4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
|
|
63
40
|
*/
|
|
64
|
-
|
|
41
|
+
ChatTranslations(req: ChatTranslationsRequest, cb?: (error: string, rep: ChatTranslationsResponse) => void): Promise<ChatTranslationsResponse>;
|
|
65
42
|
/**
|
|
66
43
|
* 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
|
|
67
44
|
|
|
@@ -71,6 +48,10 @@ export declare class Client extends AbstractClient {
|
|
|
71
48
|
4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
|
|
72
49
|
*/
|
|
73
50
|
GetThreadMessageList(req: GetThreadMessageListRequest, cb?: (error: string, rep: GetThreadMessageListResponse) => void): Promise<GetThreadMessageListResponse>;
|
|
51
|
+
/**
|
|
52
|
+
* 腾讯混元 Embedding 接口,可以将文本转化为高质量的向量数据。向量维度为1024维。
|
|
53
|
+
*/
|
|
54
|
+
GetEmbedding(req: GetEmbeddingRequest, cb?: (error: string, rep: GetEmbeddingResponse) => void): Promise<GetEmbeddingResponse>;
|
|
74
55
|
/**
|
|
75
56
|
* 如需使用OpenAI兼容接口, 请参考文档:[OpenAI 兼容接口](https://cloud.tencent.com/document/product/1729/111007)
|
|
76
57
|
|
|
@@ -90,7 +71,18 @@ export declare class Client extends AbstractClient {
|
|
|
90
71
|
3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。
|
|
91
72
|
4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
|
|
92
73
|
*/
|
|
93
|
-
|
|
74
|
+
RunThread(req: RunThreadRequest, cb?: (error: string, rep: RunThreadResponse) => void): Promise<RunThreadResponse>;
|
|
75
|
+
/**
|
|
76
|
+
* 设置付费模式
|
|
77
|
+
*/
|
|
78
|
+
SetPayMode(req: SetPayModeRequest, cb?: (error: string, rep: SetPayModeResponse) => void): Promise<SetPayModeResponse>;
|
|
79
|
+
/**
|
|
80
|
+
* 混元生图(多轮对话)接口基于混元大模型,将根据输入的文本描述生成图像,支持通过多轮对话的方式不断调整图像内容。分为提交任务和查询任务2个接口。
|
|
81
|
+
提交任务:输入文本和前置对话 ID 等,提交一个混元生图多轮对话异步任务,获得任务 ID。
|
|
82
|
+
查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得在上一轮对话基础上继续生成的图像结果。
|
|
83
|
+
混元生图(多轮对话)默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
|
|
84
|
+
*/
|
|
85
|
+
QueryHunyuanImageChatJob(req: QueryHunyuanImageChatJobRequest, cb?: (error: string, rep: QueryHunyuanImageChatJobResponse) => void): Promise<QueryHunyuanImageChatJobResponse>;
|
|
94
86
|
/**
|
|
95
87
|
* 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
|
|
96
88
|
|
|
@@ -99,50 +91,66 @@ export declare class Client extends AbstractClient {
|
|
|
99
91
|
3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。
|
|
100
92
|
4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
|
|
101
93
|
*/
|
|
102
|
-
|
|
94
|
+
CreateThread(req?: CreateThreadRequest, cb?: (error: string, rep: CreateThreadResponse) => void): Promise<CreateThreadResponse>;
|
|
103
95
|
/**
|
|
104
|
-
*
|
|
105
|
-
|
|
106
|
-
|
|
96
|
+
* 删除文件。
|
|
97
|
+
*/
|
|
98
|
+
FilesDeletions(req: FilesDeletionsRequest, cb?: (error: string, rep: FilesDeletionsResponse) => void): Promise<FilesDeletionsResponse>;
|
|
99
|
+
/**
|
|
100
|
+
* 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
|
|
107
101
|
|
|
108
102
|
1. 本接口暂不支持返回图片内容。
|
|
109
103
|
2. 默认该接口下单账号限制并发数为 5 路,如您有提高并发限制的需求请 [购买](https://buy.cloud.tencent.com/hunyuan) 。
|
|
110
104
|
3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。
|
|
111
105
|
4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
|
|
112
106
|
*/
|
|
113
|
-
|
|
107
|
+
GetThreadMessage(req: GetThreadMessageRequest, cb?: (error: string, rep: GetThreadMessageResponse) => void): Promise<GetThreadMessageResponse>;
|
|
108
|
+
/**
|
|
109
|
+
* 提交混元生3D任务
|
|
110
|
+
*/
|
|
111
|
+
SubmitHunyuanTo3DJob(req: SubmitHunyuanTo3DJobRequest, cb?: (error: string, rep: SubmitHunyuanTo3DJobResponse) => void): Promise<SubmitHunyuanTo3DJobResponse>;
|
|
112
|
+
/**
|
|
113
|
+
* 上传用于不同用途的文件。
|
|
114
|
+
当前用途仅支持 hunyuan 等模型的文档理解。
|
|
115
|
+
*/
|
|
116
|
+
FilesUploads(req: FilesUploadsRequest, cb?: (error: string, rep: FilesUploadsResponse) => void): Promise<FilesUploadsResponse>;
|
|
117
|
+
/**
|
|
118
|
+
* 开通服务
|
|
119
|
+
*/
|
|
120
|
+
ActivateService(req: ActivateServiceRequest, cb?: (error: string, rep: ActivateServiceResponse) => void): Promise<ActivateServiceResponse>;
|
|
121
|
+
/**
|
|
122
|
+
* 文件列表。
|
|
123
|
+
*/
|
|
124
|
+
FilesList(req: FilesListRequest, cb?: (error: string, rep: FilesListResponse) => void): Promise<FilesListResponse>;
|
|
125
|
+
/**
|
|
126
|
+
* 查询混元生3D任务
|
|
127
|
+
*/
|
|
128
|
+
QueryHunyuanTo3DJob(req: QueryHunyuanTo3DJobRequest, cb?: (error: string, rep: QueryHunyuanTo3DJobResponse) => void): Promise<QueryHunyuanTo3DJobResponse>;
|
|
114
129
|
/**
|
|
115
130
|
* 混元生图(多轮对话)接口基于混元大模型,将根据输入的文本描述生成图像,支持通过多轮对话的方式不断调整图像内容。分为提交任务和查询任务2个接口。
|
|
116
131
|
提交任务:输入文本和前置对话 ID 等,提交一个混元生图多轮对话异步任务,获得任务 ID。
|
|
117
132
|
查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得在上一轮对话基础上继续生成的图像结果。
|
|
118
133
|
混元生图(多轮对话)默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
|
|
119
134
|
*/
|
|
120
|
-
|
|
135
|
+
SubmitHunyuanImageChatJob(req: SubmitHunyuanImageChatJobRequest, cb?: (error: string, rep: SubmitHunyuanImageChatJobResponse) => void): Promise<SubmitHunyuanImageChatJobResponse>;
|
|
121
136
|
/**
|
|
122
|
-
*
|
|
137
|
+
* 如需使用OpenAI兼容接口, 请参考文档:[OpenAI 兼容接口](https://cloud.tencent.com/document/product/1729/111007)
|
|
138
|
+
|
|
139
|
+
腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
|
|
123
140
|
|
|
124
141
|
1. 本接口暂不支持返回图片内容。
|
|
125
142
|
2. 默认该接口下单账号限制并发数为 5 路,如您有提高并发限制的需求请 [购买](https://buy.cloud.tencent.com/hunyuan) 。
|
|
126
143
|
3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。
|
|
127
144
|
4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
|
|
128
145
|
*/
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* 腾讯混元 Embedding 接口,可以将文本转化为高质量的向量数据。向量维度为1024维。
|
|
132
|
-
*/
|
|
133
|
-
GetEmbedding(req: GetEmbeddingRequest, cb?: (error: string, rep: GetEmbeddingResponse) => void): Promise<GetEmbeddingResponse>;
|
|
146
|
+
ChatCompletions(req: ChatCompletionsRequest, cb?: (error: string, rep: ChatCompletionsResponse) => void): Promise<ChatCompletionsResponse>;
|
|
134
147
|
/**
|
|
135
|
-
*
|
|
136
|
-
当前用途仅支持 hunyuan 等模型的文档理解。
|
|
148
|
+
* 该接口用于计算文本对应Token数、字符数。
|
|
137
149
|
*/
|
|
138
|
-
|
|
150
|
+
GetTokenCount(req: GetTokenCountRequest, cb?: (error: string, rep: GetTokenCountResponse) => void): Promise<GetTokenCountResponse>;
|
|
139
151
|
/**
|
|
140
152
|
* 文生图轻量版接口根据输入的文本描述,智能生成与之相关的结果图。
|
|
141
153
|
文生图轻量版默认提供3个并发任务数,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
|
|
142
154
|
*/
|
|
143
155
|
TextToImageLite(req: TextToImageLiteRequest, cb?: (error: string, rep: TextToImageLiteResponse) => void): Promise<TextToImageLiteResponse>;
|
|
144
|
-
/**
|
|
145
|
-
* 开通服务
|
|
146
|
-
*/
|
|
147
|
-
ActivateService(req: ActivateServiceRequest, cb?: (error: string, rep: ActivateServiceResponse) => void): Promise<ActivateServiceResponse>;
|
|
148
156
|
}
|
|
@@ -27,18 +27,6 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
27
27
|
constructor(clientConfig) {
|
|
28
28
|
super("hunyuan.tencentcloudapi.com", "2023-09-01", clientConfig);
|
|
29
29
|
}
|
|
30
|
-
/**
|
|
31
|
-
* 设置付费模式
|
|
32
|
-
*/
|
|
33
|
-
async SetPayMode(req, cb) {
|
|
34
|
-
return this.request("SetPayMode", req, cb);
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* 文件列表。
|
|
38
|
-
*/
|
|
39
|
-
async FilesList(req, cb) {
|
|
40
|
-
return this.request("FilesList", req, cb);
|
|
41
|
-
}
|
|
42
30
|
/**
|
|
43
31
|
* 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
|
|
44
32
|
|
|
@@ -50,40 +38,14 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
50
38
|
async GetThread(req, cb) {
|
|
51
39
|
return this.request("GetThread", req, cb);
|
|
52
40
|
}
|
|
53
|
-
/**
|
|
54
|
-
* 混元生图(多轮对话)接口基于混元大模型,将根据输入的文本描述生成图像,支持通过多轮对话的方式不断调整图像内容。分为提交任务和查询任务2个接口。
|
|
55
|
-
提交任务:输入文本和前置对话 ID 等,提交一个混元生图多轮对话异步任务,获得任务 ID。
|
|
56
|
-
查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得在上一轮对话基础上继续生成的图像结果。
|
|
57
|
-
混元生图(多轮对话)默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
|
|
58
|
-
*/
|
|
59
|
-
async SubmitHunyuanImageChatJob(req, cb) {
|
|
60
|
-
return this.request("SubmitHunyuanImageChatJob", req, cb);
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
|
|
64
|
-
|
|
65
|
-
1. 本接口暂不支持返回图片内容。
|
|
66
|
-
2. 默认该接口下单账号限制并发数为 5 路,如您有提高并发限制的需求请 [购买](https://buy.cloud.tencent.com/hunyuan) 。
|
|
67
|
-
3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。
|
|
68
|
-
4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
|
|
69
|
-
*/
|
|
70
|
-
async CreateThread(req, cb) {
|
|
71
|
-
return this.request("CreateThread", req, cb);
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* 该接口用于计算文本对应Token数、字符数。
|
|
75
|
-
*/
|
|
76
|
-
async GetTokenCount(req, cb) {
|
|
77
|
-
return this.request("GetTokenCount", req, cb);
|
|
78
|
-
}
|
|
79
41
|
/**
|
|
80
42
|
* 混元生图接口基于混元大模型,将根据输入的文本描述,智能生成与之相关的结果图。分为提交任务和查询任务2个接口。
|
|
81
43
|
提交任务:输入文本等,提交一个混元生图异步任务,获得任务 ID。
|
|
82
44
|
查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。
|
|
83
45
|
并发任务数(并发)说明:并发任务数指能同时处理的任务数量。混元生图默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
|
|
84
46
|
*/
|
|
85
|
-
async
|
|
86
|
-
return this.request("
|
|
47
|
+
async SubmitHunyuanImageJob(req, cb) {
|
|
48
|
+
return this.request("SubmitHunyuanImageJob", req, cb);
|
|
87
49
|
}
|
|
88
50
|
/**
|
|
89
51
|
* 混元生图接口基于混元大模型,将根据输入的文本描述,智能生成与之相关的结果图。分为提交任务和查询任务2个接口。
|
|
@@ -91,14 +53,19 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
91
53
|
查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。
|
|
92
54
|
并发任务数(并发)说明:并发任务数指能同时处理的任务数量。混元生图默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
|
|
93
55
|
*/
|
|
94
|
-
async
|
|
95
|
-
return this.request("
|
|
56
|
+
async QueryHunyuanImageJob(req, cb) {
|
|
57
|
+
return this.request("QueryHunyuanImageJob", req, cb);
|
|
96
58
|
}
|
|
97
59
|
/**
|
|
98
|
-
*
|
|
60
|
+
* 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
|
|
61
|
+
|
|
62
|
+
1. 本接口暂不支持返回图片内容。
|
|
63
|
+
2. 默认该接口下单账号限制并发数为 5 路,如您有提高并发限制的需求请 [购买](https://buy.cloud.tencent.com/hunyuan) 。
|
|
64
|
+
3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。
|
|
65
|
+
4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
|
|
99
66
|
*/
|
|
100
|
-
async
|
|
101
|
-
return this.request("
|
|
67
|
+
async ChatTranslations(req, cb) {
|
|
68
|
+
return this.request("ChatTranslations", req, cb);
|
|
102
69
|
}
|
|
103
70
|
/**
|
|
104
71
|
* 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
|
|
@@ -111,6 +78,12 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
111
78
|
async GetThreadMessageList(req, cb) {
|
|
112
79
|
return this.request("GetThreadMessageList", req, cb);
|
|
113
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* 腾讯混元 Embedding 接口,可以将文本转化为高质量的向量数据。向量维度为1024维。
|
|
83
|
+
*/
|
|
84
|
+
async GetEmbedding(req, cb) {
|
|
85
|
+
return this.request("GetEmbedding", req, cb);
|
|
86
|
+
}
|
|
114
87
|
/**
|
|
115
88
|
* 如需使用OpenAI兼容接口, 请参考文档:[OpenAI 兼容接口](https://cloud.tencent.com/document/product/1729/111007)
|
|
116
89
|
|
|
@@ -132,8 +105,23 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
132
105
|
3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。
|
|
133
106
|
4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
|
|
134
107
|
*/
|
|
135
|
-
async
|
|
136
|
-
return this.request("
|
|
108
|
+
async RunThread(req, cb) {
|
|
109
|
+
return this.request("RunThread", req, cb);
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* 设置付费模式
|
|
113
|
+
*/
|
|
114
|
+
async SetPayMode(req, cb) {
|
|
115
|
+
return this.request("SetPayMode", req, cb);
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* 混元生图(多轮对话)接口基于混元大模型,将根据输入的文本描述生成图像,支持通过多轮对话的方式不断调整图像内容。分为提交任务和查询任务2个接口。
|
|
119
|
+
提交任务:输入文本和前置对话 ID 等,提交一个混元生图多轮对话异步任务,获得任务 ID。
|
|
120
|
+
查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得在上一轮对话基础上继续生成的图像结果。
|
|
121
|
+
混元生图(多轮对话)默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
|
|
122
|
+
*/
|
|
123
|
+
async QueryHunyuanImageChatJob(req, cb) {
|
|
124
|
+
return this.request("QueryHunyuanImageChatJob", req, cb);
|
|
137
125
|
}
|
|
138
126
|
/**
|
|
139
127
|
* 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
|
|
@@ -143,21 +131,56 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
143
131
|
3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。
|
|
144
132
|
4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
|
|
145
133
|
*/
|
|
146
|
-
async
|
|
147
|
-
return this.request("
|
|
134
|
+
async CreateThread(req, cb) {
|
|
135
|
+
return this.request("CreateThread", req, cb);
|
|
148
136
|
}
|
|
149
137
|
/**
|
|
150
|
-
*
|
|
151
|
-
|
|
152
|
-
|
|
138
|
+
* 删除文件。
|
|
139
|
+
*/
|
|
140
|
+
async FilesDeletions(req, cb) {
|
|
141
|
+
return this.request("FilesDeletions", req, cb);
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
|
|
153
145
|
|
|
154
146
|
1. 本接口暂不支持返回图片内容。
|
|
155
147
|
2. 默认该接口下单账号限制并发数为 5 路,如您有提高并发限制的需求请 [购买](https://buy.cloud.tencent.com/hunyuan) 。
|
|
156
148
|
3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。
|
|
157
149
|
4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
|
|
158
150
|
*/
|
|
159
|
-
async
|
|
160
|
-
return this.request("
|
|
151
|
+
async GetThreadMessage(req, cb) {
|
|
152
|
+
return this.request("GetThreadMessage", req, cb);
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* 提交混元生3D任务
|
|
156
|
+
*/
|
|
157
|
+
async SubmitHunyuanTo3DJob(req, cb) {
|
|
158
|
+
return this.request("SubmitHunyuanTo3DJob", req, cb);
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* 上传用于不同用途的文件。
|
|
162
|
+
当前用途仅支持 hunyuan 等模型的文档理解。
|
|
163
|
+
*/
|
|
164
|
+
async FilesUploads(req, cb) {
|
|
165
|
+
return this.request("FilesUploads", req, cb);
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* 开通服务
|
|
169
|
+
*/
|
|
170
|
+
async ActivateService(req, cb) {
|
|
171
|
+
return this.request("ActivateService", req, cb);
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* 文件列表。
|
|
175
|
+
*/
|
|
176
|
+
async FilesList(req, cb) {
|
|
177
|
+
return this.request("FilesList", req, cb);
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* 查询混元生3D任务
|
|
181
|
+
*/
|
|
182
|
+
async QueryHunyuanTo3DJob(req, cb) {
|
|
183
|
+
return this.request("QueryHunyuanTo3DJob", req, cb);
|
|
161
184
|
}
|
|
162
185
|
/**
|
|
163
186
|
* 混元生图(多轮对话)接口基于混元大模型,将根据输入的文本描述生成图像,支持通过多轮对话的方式不断调整图像内容。分为提交任务和查询任务2个接口。
|
|
@@ -165,32 +188,27 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
165
188
|
查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得在上一轮对话基础上继续生成的图像结果。
|
|
166
189
|
混元生图(多轮对话)默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
|
|
167
190
|
*/
|
|
168
|
-
async
|
|
169
|
-
return this.request("
|
|
191
|
+
async SubmitHunyuanImageChatJob(req, cb) {
|
|
192
|
+
return this.request("SubmitHunyuanImageChatJob", req, cb);
|
|
170
193
|
}
|
|
171
194
|
/**
|
|
172
|
-
*
|
|
195
|
+
* 如需使用OpenAI兼容接口, 请参考文档:[OpenAI 兼容接口](https://cloud.tencent.com/document/product/1729/111007)
|
|
196
|
+
|
|
197
|
+
腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
|
|
173
198
|
|
|
174
199
|
1. 本接口暂不支持返回图片内容。
|
|
175
200
|
2. 默认该接口下单账号限制并发数为 5 路,如您有提高并发限制的需求请 [购买](https://buy.cloud.tencent.com/hunyuan) 。
|
|
176
201
|
3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。
|
|
177
202
|
4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
|
|
178
203
|
*/
|
|
179
|
-
async
|
|
180
|
-
return this.request("
|
|
181
|
-
}
|
|
182
|
-
/**
|
|
183
|
-
* 腾讯混元 Embedding 接口,可以将文本转化为高质量的向量数据。向量维度为1024维。
|
|
184
|
-
*/
|
|
185
|
-
async GetEmbedding(req, cb) {
|
|
186
|
-
return this.request("GetEmbedding", req, cb);
|
|
204
|
+
async ChatCompletions(req, cb) {
|
|
205
|
+
return this.request("ChatCompletions", req, cb);
|
|
187
206
|
}
|
|
188
207
|
/**
|
|
189
|
-
*
|
|
190
|
-
当前用途仅支持 hunyuan 等模型的文档理解。
|
|
208
|
+
* 该接口用于计算文本对应Token数、字符数。
|
|
191
209
|
*/
|
|
192
|
-
async
|
|
193
|
-
return this.request("
|
|
210
|
+
async GetTokenCount(req, cb) {
|
|
211
|
+
return this.request("GetTokenCount", req, cb);
|
|
194
212
|
}
|
|
195
213
|
/**
|
|
196
214
|
* 文生图轻量版接口根据输入的文本描述,智能生成与之相关的结果图。
|
|
@@ -199,11 +217,5 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
199
217
|
async TextToImageLite(req, cb) {
|
|
200
218
|
return this.request("TextToImageLite", req, cb);
|
|
201
219
|
}
|
|
202
|
-
/**
|
|
203
|
-
* 开通服务
|
|
204
|
-
*/
|
|
205
|
-
async ActivateService(req, cb) {
|
|
206
|
-
return this.request("ActivateService", req, cb);
|
|
207
|
-
}
|
|
208
220
|
}
|
|
209
221
|
exports.Client = Client;
|
|
@@ -500,6 +500,27 @@ export interface SubmitHunyuanImageChatJobResponse {
|
|
|
500
500
|
*/
|
|
501
501
|
RequestId?: string;
|
|
502
502
|
}
|
|
503
|
+
/**
|
|
504
|
+
* SubmitHunyuanTo3DJob请求参数结构体
|
|
505
|
+
*/
|
|
506
|
+
export interface SubmitHunyuanTo3DJobRequest {
|
|
507
|
+
/**
|
|
508
|
+
* 3D内容的描述,中文正向提示词。最多支持200个 utf-8 字符,ImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
|
|
509
|
+
*/
|
|
510
|
+
Prompt?: string;
|
|
511
|
+
/**
|
|
512
|
+
* 输入图 Base64 数据。最多支持200个 utf-8 字符,ImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
|
|
513
|
+
*/
|
|
514
|
+
ImageBase64?: string;
|
|
515
|
+
/**
|
|
516
|
+
* 输入图Url。最多支持200个 utf-8 字符,ImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
|
|
517
|
+
*/
|
|
518
|
+
ImageUrl?: string;
|
|
519
|
+
/**
|
|
520
|
+
* 生成数量。默认1,当前限制只能为1。
|
|
521
|
+
*/
|
|
522
|
+
Num?: number;
|
|
523
|
+
}
|
|
503
524
|
/**
|
|
504
525
|
* 会话消息未完成原因
|
|
505
526
|
*/
|
|
@@ -760,6 +781,32 @@ export interface GetThreadMessageListRequest {
|
|
|
760
781
|
*/
|
|
761
782
|
Order?: string;
|
|
762
783
|
}
|
|
784
|
+
/**
|
|
785
|
+
* SubmitHunyuanTo3DJob返回参数结构体
|
|
786
|
+
*/
|
|
787
|
+
export interface SubmitHunyuanTo3DJobResponse {
|
|
788
|
+
/**
|
|
789
|
+
* 任务id
|
|
790
|
+
*/
|
|
791
|
+
JobId?: string;
|
|
792
|
+
/**
|
|
793
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
794
|
+
*/
|
|
795
|
+
RequestId?: string;
|
|
796
|
+
}
|
|
797
|
+
/**
|
|
798
|
+
* 3D文件
|
|
799
|
+
*/
|
|
800
|
+
export interface File3D {
|
|
801
|
+
/**
|
|
802
|
+
* 3D文件的格式。取值范围:GIF, OBJ
|
|
803
|
+
*/
|
|
804
|
+
Type?: string;
|
|
805
|
+
/**
|
|
806
|
+
* 文件的Url
|
|
807
|
+
*/
|
|
808
|
+
Url?: string;
|
|
809
|
+
}
|
|
763
810
|
/**
|
|
764
811
|
* 返回的回复, 支持多个
|
|
765
812
|
*/
|
|
@@ -939,6 +986,15 @@ export interface GroupChatCompletionsRequest {
|
|
|
939
986
|
*/
|
|
940
987
|
SessionId?: string;
|
|
941
988
|
}
|
|
989
|
+
/**
|
|
990
|
+
* 3D文件列表
|
|
991
|
+
*/
|
|
992
|
+
export interface File3Ds {
|
|
993
|
+
/**
|
|
994
|
+
* 3D文件列表
|
|
995
|
+
*/
|
|
996
|
+
File3D?: Array<File3D>;
|
|
997
|
+
}
|
|
942
998
|
/**
|
|
943
999
|
* 搜索结果信息
|
|
944
1000
|
*/
|
|
@@ -1009,6 +1065,15 @@ export interface SetPayModeResponse {
|
|
|
1009
1065
|
*/
|
|
1010
1066
|
RequestId?: string;
|
|
1011
1067
|
}
|
|
1068
|
+
/**
|
|
1069
|
+
* QueryHunyuanTo3DJob请求参数结构体
|
|
1070
|
+
*/
|
|
1071
|
+
export interface QueryHunyuanTo3DJobRequest {
|
|
1072
|
+
/**
|
|
1073
|
+
* 任务ID
|
|
1074
|
+
*/
|
|
1075
|
+
JobId?: string;
|
|
1076
|
+
}
|
|
1012
1077
|
/**
|
|
1013
1078
|
* 歌曲详情。具体含义参考 [QQ音乐SDK](https://developer.y.qq.com/)
|
|
1014
1079
|
*/
|
|
@@ -1953,3 +2018,28 @@ export interface EmbeddingUsage {
|
|
|
1953
2018
|
*/
|
|
1954
2019
|
TotalTokens?: number;
|
|
1955
2020
|
}
|
|
2021
|
+
/**
|
|
2022
|
+
* QueryHunyuanTo3DJob返回参数结构体
|
|
2023
|
+
*/
|
|
2024
|
+
export interface QueryHunyuanTo3DJobResponse {
|
|
2025
|
+
/**
|
|
2026
|
+
* 任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
|
|
2027
|
+
*/
|
|
2028
|
+
Status?: string;
|
|
2029
|
+
/**
|
|
2030
|
+
* 生成的3D文件数组
|
|
2031
|
+
*/
|
|
2032
|
+
ResultFile3Ds?: Array<File3Ds>;
|
|
2033
|
+
/**
|
|
2034
|
+
* 错误码
|
|
2035
|
+
*/
|
|
2036
|
+
ErrorCode?: string;
|
|
2037
|
+
/**
|
|
2038
|
+
* 错误信息
|
|
2039
|
+
*/
|
|
2040
|
+
ErrorMessage?: string;
|
|
2041
|
+
/**
|
|
2042
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2043
|
+
*/
|
|
2044
|
+
RequestId?: string;
|
|
2045
|
+
}
|
|
@@ -5714,13 +5714,7 @@ export interface CreateLivePullStreamTaskRequest {
|
|
|
5714
5714
|
*/
|
|
5715
5715
|
StartTime: string;
|
|
5716
5716
|
/**
|
|
5717
|
-
* 结束时间,注意:
|
|
5718
|
-
1. 结束时间必须大于开始时间;
|
|
5719
|
-
2. 结束时间必须大于当前时间;
|
|
5720
|
-
3. 结束时间 和 开始时间 间隔必须小于七天。
|
|
5721
|
-
使用 UTC 格式时间,
|
|
5722
|
-
例如:2019-01-08T10:00:00Z。
|
|
5723
|
-
注意:北京时间值为 UTC 时间值 + 8 小时。
|
|
5717
|
+
* 结束时间,注意:1. 结束时间必须大于开始时间;2. 结束时间必须大于当前时间;3. 结束时间 和 开始时间 间隔必须小于30天。使用 UTC 格式时间,例如:2019-01-08T10:00:00Z。注意:北京时间值为 UTC 时间值 + 8 小时。
|
|
5724
5718
|
*/
|
|
5725
5719
|
EndTime: string;
|
|
5726
5720
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbstractClient } from "../../../common/abstract_client";
|
|
2
2
|
import { ClientConfig } from "../../../common/interface";
|
|
3
|
-
import { ModifyQAAttrRangeResponse, GetWsTokenResponse, ListUsageCallDetailRequest, CheckAttributeLabelExistRequest, DescribeQAResponse, GetAppKnowledgeCountRequest, StopDocParseResponse, ListSelectDocResponse, DescribeReleaseInfoRequest, DeleteDocRequest, GetAnswerTypeDataCountRequest, DescribeAppResponse, UploadAttributeLabelResponse, CreateDocCateResponse, DeleteDocCateResponse, ExportAttributeLabelResponse, ExportQAListResponse, GetAppSecretResponse, ListRejectedQuestionRequest, CreateQACateResponse, ModifyDocAttrRangeResponse, GetAnswerTypeDataCountResponse, DescribeQARequest, DescribeUnsatisfiedReplyContextRequest, ListAppRequest, ModifyQAAttrRangeRequest, ListRejectedQuestionResponse, ModifyDocResponse, CreateCorpResponse, ListQARequest, DescribeKnowledgeUsageResponse, ListUnsatisfiedReplyRequest, DeleteQARequest, GetLikeDataCountResponse, ListReleaseRequest, IsTransferIntentResponse, CreateDocCateRequest, ModifyAppResponse, ListDocResponse, GetDocPreviewRequest, ModifyQARequest, ExportUnsatisfiedReplyResponse, ListDocCateResponse, ListRejectedQuestionPreviewResponse, DescribeCorpRequest, ListAppCategoryResponse, CreateAppResponse, DescribeAttributeLabelRequest, CreateQARequest, CreateCorpRequest, QueryRewriteResponse, DeleteAttributeLabelRequest, DescribeRobotBizIDByAppKeyResponse, RenameDocResponse, ReconstructDocumentResponse, ListDocCateRequest, DescribeDocResponse, CreateReleaseRequest, GroupDocRequest, CheckAttributeLabelReferRequest, ModifyQACateRequest, ModifyAttributeLabelRequest, ConvertDocumentRequest, ListUnsatisfiedReplyResponse, GetAppSecretRequest, DeleteQACateResponse, SaveDocResponse, ListReleaseDocPreviewResponse, RenameDocRequest, GenerateQAResponse, GetTaskStatusResponse, DescribeConcurrencyUsageGraphRequest, DescribeDocRequest, DescribeTokenUsageGraphRequest, ConvertDocumentResponse, RetryDocAuditRequest, SaveDocRequest, RetryDocParseRequest, ListAppKnowledgeDetailResponse, ModifyQACateResponse, DescribeAttributeLabelResponse, ModifyAttributeLabelResponse, ListQACateResponse, GetVarListRequest, RetryDocParseResponse, CreateRejectedQuestionResponse, GetEmbeddingResponse, ExportUnsatisfiedReplyRequest, GroupQAResponse, CreateAppRequest, DescribeReleaseRequest, ListAppCategoryRequest, ListReleaseConfigPreviewRequest,
|
|
3
|
+
import { ModifyQAAttrRangeResponse, GetWsTokenResponse, ListUsageCallDetailRequest, CheckAttributeLabelExistRequest, DescribeQAResponse, GetAppKnowledgeCountRequest, StopDocParseResponse, ListSelectDocResponse, DescribeReleaseInfoRequest, DeleteDocRequest, GetAnswerTypeDataCountRequest, DescribeAppResponse, UploadAttributeLabelResponse, CreateDocCateResponse, DeleteDocCateResponse, ExportAttributeLabelResponse, ExportQAListResponse, GetAppSecretResponse, ListRejectedQuestionRequest, CreateQACateResponse, ModifyDocAttrRangeResponse, GetAnswerTypeDataCountResponse, DescribeQARequest, DescribeUnsatisfiedReplyContextRequest, ListAppRequest, ModifyQAAttrRangeRequest, ListRejectedQuestionResponse, ModifyDocResponse, CreateCorpResponse, ListQARequest, DescribeKnowledgeUsageResponse, ListUnsatisfiedReplyRequest, DeleteQARequest, GetLikeDataCountResponse, ListReleaseRequest, IsTransferIntentResponse, CreateDocCateRequest, ModifyAppResponse, ListDocResponse, GetDocPreviewRequest, ModifyQARequest, ExportUnsatisfiedReplyResponse, ListDocCateResponse, ListRejectedQuestionPreviewResponse, DescribeCorpRequest, ListAppCategoryResponse, CreateAppResponse, DescribeAttributeLabelRequest, CreateQARequest, CreateCorpRequest, QueryRewriteResponse, DeleteAttributeLabelRequest, DescribeRobotBizIDByAppKeyResponse, RenameDocResponse, ReconstructDocumentResponse, ListDocCateRequest, DescribeDocResponse, CreateReleaseRequest, GroupDocRequest, CheckAttributeLabelReferRequest, ModifyQACateRequest, ModifyAttributeLabelRequest, ConvertDocumentRequest, ListUnsatisfiedReplyResponse, GetAppSecretRequest, DeleteQACateResponse, SaveDocResponse, ListReleaseDocPreviewResponse, RenameDocRequest, GenerateQAResponse, GetTaskStatusResponse, DescribeConcurrencyUsageGraphRequest, DescribeDocRequest, DescribeTokenUsageGraphRequest, ConvertDocumentResponse, RetryDocAuditRequest, SaveDocRequest, RetryDocParseRequest, ListAppKnowledgeDetailResponse, ModifyQACateResponse, DescribeAttributeLabelResponse, ModifyAttributeLabelResponse, ListQACateResponse, GetVarListRequest, RetryDocParseResponse, CreateRejectedQuestionResponse, GetEmbeddingResponse, ExportUnsatisfiedReplyRequest, GroupQAResponse, CreateAppRequest, DescribeReleaseRequest, ListAppCategoryRequest, ListReleaseConfigPreviewRequest, ListReleaseDocPreviewRequest, DescribeUnsatisfiedReplyContextResponse, CreateRejectedQuestionRequest, DescribeKnowledgeUsagePieGraphRequest, DescribeReferResponse, ListDocRequest, ReconstructDocumentRequest, GetEmbeddingRequest, GroupQARequest, RateMsgRecordRequest, DescribeCallStatsGraphRequest, GetMsgRecordResponse, DescribeAppRequest, GetReconstructDocumentResultRequest, DescribeKnowledgeUsageRequest, ListQAResponse, IgnoreUnsatisfiedReplyRequest, DescribeReleaseResponse, DescribeConcurrencyUsageGraphResponse, VerifyQARequest, DescribeKnowledgeUsagePieGraphResponse, ListReleaseQAPreviewResponse, DescribeTokenUsageGraphResponse, RetryDocAuditResponse, GetReconstructDocumentResultResponse, ModifyDocCateRequest, GetLikeDataCountRequest, DeleteRejectedQuestionResponse, CreateAttributeLabelRequest, ListAppResponse, CreateReconstructDocumentFlowRequest, RunReRankResponse, ListRejectedQuestionPreviewRequest, ListReleaseConfigPreviewResponse, DeleteRejectedQuestionRequest, ExportQAListRequest, GetDocPreviewResponse, DescribeConcurrencyUsageResponse, CreateReleaseResponse, QueryRewriteRequest, ModifyAppRequest, RunReRankRequest, DeleteAttributeLabelResponse, RetryReleaseRequest, DeleteQACateRequest, GenerateQARequest, GetWsTokenRequest, ModifyDocRequest, DescribeTokenUsageResponse, DeleteAppResponse, ListAttributeLabelRequest, DeleteDocCateRequest, DeleteDocResponse, DescribeSegmentsResponse, DescribeConcurrencyUsageRequest, GroupDocResponse, UploadAttributeLabelRequest, ListUsageCallDetailResponse, ExportAttributeLabelRequest, DescribeTokenUsageRequest, GetAppKnowledgeCountResponse, RetryReleaseResponse, CreateAttributeLabelResponse, ListAppKnowledgeDetailRequest, CreateQAResponse, ListQACateRequest, ListReleaseQAPreviewRequest, DescribeReleaseInfoResponse, IsTransferIntentRequest, DescribeReferRequest, DeleteAppRequest, ModifyRejectedQuestionResponse, GetVarListResponse, DescribeStorageCredentialRequest, DescribeCorpResponse, ModifyDocCateResponse, ListReleaseResponse, ListModelResponse, ListAttributeLabelResponse, ModifyQAResponse, DeleteQAResponse, DescribeCallStatsGraphResponse, GetMsgRecordRequest, DescribeStorageCredentialResponse, CheckAttributeLabelExistResponse, GetTaskStatusRequest, CheckAttributeLabelReferResponse, RateMsgRecordResponse, CreateVarResponse, ModifyDocAttrRangeRequest, CreateQACateRequest, DescribeRobotBizIDByAppKeyRequest, CreateVarRequest, CreateReconstructDocumentFlowResponse, VerifyQAResponse, DescribeSegmentsRequest, DescribeSearchStatsGraphRequest, DescribeSearchStatsGraphResponse, ModifyRejectedQuestionRequest, IgnoreUnsatisfiedReplyResponse, StopDocParseRequest, ListModelRequest, ListSelectDocRequest } from "./lke_models";
|
|
4
4
|
/**
|
|
5
5
|
* lke client
|
|
6
6
|
* @class
|