tencentcloud-sdk-nodejs 4.0.967 → 4.0.968

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.
Files changed (65) hide show
  1. package/CHANGELOG.md +215 -0
  2. package/SERVICE_CHANGELOG.md +288 -139
  3. package/package.json +1 -1
  4. package/products.md +23 -23
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/apigateway/v20180808/apigateway_models.ts +7 -7
  7. package/src/services/apm/v20210622/apm_models.ts +8 -0
  8. package/src/services/cdwdoris/v20211228/cdwdoris_models.ts +15 -0
  9. package/src/services/cfs/v20190719/cfs_client.ts +4 -3
  10. package/src/services/cfs/v20190719/cfs_models.ts +71 -35
  11. package/src/services/cfw/v20190904/cfw_client.ts +4 -2
  12. package/src/services/cls/v20201016/cls_models.ts +14 -14
  13. package/src/services/dlc/v20210125/dlc_models.ts +13 -8
  14. package/src/services/dnspod/v20210323/dnspod_client.ts +108 -45
  15. package/src/services/dnspod/v20210323/dnspod_models.ts +321 -83
  16. package/src/services/ess/v20201111/ess_models.ts +2 -6
  17. package/src/services/essbasic/v20210526/essbasic_client.ts +1 -1
  18. package/src/services/essbasic/v20210526/essbasic_models.ts +12 -11
  19. package/src/services/hunyuan/v20230901/hunyuan_client.ts +182 -50
  20. package/src/services/hunyuan/v20230901/hunyuan_models.ts +672 -33
  21. package/src/services/iotvideo/v20201215/iotvideo_models.ts +1 -1
  22. package/src/services/iotvideo/v20211125/iotvideo_models.ts +1 -1
  23. package/src/services/kms/v20190118/kms_models.ts +8 -0
  24. package/src/services/ssm/v20190923/ssm_models.ts +48 -78
  25. package/src/services/tdmq/v20200217/tdmq_models.ts +3 -4
  26. package/src/services/teo/v20220901/teo_client.ts +1 -0
  27. package/src/services/teo/v20220901/teo_models.ts +17 -3
  28. package/src/services/thpc/v20230321/thpc_models.ts +3 -3
  29. package/src/services/tke/v20180525/tke_models.ts +2 -2
  30. package/src/services/vod/v20180717/vod_client.ts +6 -1
  31. package/src/services/vod/v20180717/vod_models.ts +123 -24
  32. package/src/services/waf/v20180125/waf_models.ts +1 -1
  33. package/tencentcloud/common/sdk_version.d.ts +1 -1
  34. package/tencentcloud/common/sdk_version.js +1 -1
  35. package/tencentcloud/services/apigateway/v20180808/apigateway_models.d.ts +7 -7
  36. package/tencentcloud/services/apm/v20210622/apm_models.d.ts +8 -0
  37. package/tencentcloud/services/cdwdoris/v20211228/cdwdoris_models.d.ts +15 -0
  38. package/tencentcloud/services/cfs/v20190719/cfs_client.d.ts +1 -1
  39. package/tencentcloud/services/cfs/v20190719/cfs_models.d.ts +69 -34
  40. package/tencentcloud/services/cfw/v20190904/cfw_client.d.ts +3 -1
  41. package/tencentcloud/services/cfw/v20190904/cfw_client.js +3 -1
  42. package/tencentcloud/services/cls/v20201016/cls_models.d.ts +14 -14
  43. package/tencentcloud/services/dlc/v20210125/dlc_models.d.ts +13 -8
  44. package/tencentcloud/services/dnspod/v20210323/dnspod_client.d.ts +34 -14
  45. package/tencentcloud/services/dnspod/v20210323/dnspod_client.js +49 -19
  46. package/tencentcloud/services/dnspod/v20210323/dnspod_models.d.ts +308 -83
  47. package/tencentcloud/services/ess/v20201111/ess_models.d.ts +2 -6
  48. package/tencentcloud/services/essbasic/v20210526/essbasic_client.d.ts +1 -1
  49. package/tencentcloud/services/essbasic/v20210526/essbasic_client.js +1 -1
  50. package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +12 -11
  51. package/tencentcloud/services/hunyuan/v20230901/hunyuan_client.d.ts +75 -17
  52. package/tencentcloud/services/hunyuan/v20230901/hunyuan_client.js +98 -24
  53. package/tencentcloud/services/hunyuan/v20230901/hunyuan_models.d.ts +645 -32
  54. package/tencentcloud/services/iotvideo/v20201215/iotvideo_models.d.ts +1 -1
  55. package/tencentcloud/services/iotvideo/v20211125/iotvideo_models.d.ts +1 -1
  56. package/tencentcloud/services/kms/v20190118/kms_models.d.ts +8 -0
  57. package/tencentcloud/services/ssm/v20190923/ssm_models.d.ts +48 -78
  58. package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +3 -4
  59. package/tencentcloud/services/teo/v20220901/teo_models.d.ts +16 -3
  60. package/tencentcloud/services/thpc/v20230321/thpc_models.d.ts +3 -3
  61. package/tencentcloud/services/tke/v20180525/tke_models.d.ts +2 -2
  62. package/tencentcloud/services/vod/v20180717/vod_models.d.ts +118 -24
  63. package/tencentcloud/services/waf/v20180125/waf_models.d.ts +1 -1
  64. package/test/dnspod.v20210323.test.js +62 -12
  65. package/test/hunyuan.v20230901.test.js +94 -14
@@ -1,44 +1,94 @@
1
1
  import { AbstractClient } from "../../../common/abstract_client";
2
2
  import { ClientConfig } from "../../../common/interface";
3
- import { ChatCompletionsRequest, GetEmbeddingRequest, ActivateServiceRequest, SubmitHunyuanImageJobRequest, SubmitHunyuanImageChatJobResponse, QueryHunyuanImageChatJobRequest, SubmitHunyuanImageChatJobRequest, QueryHunyuanImageJobRequest, GetTokenCountResponse, QueryHunyuanImageChatJobResponse, SetPayModeResponse, SetPayModeRequest, TextToImageLiteRequest, SubmitHunyuanImageJobResponse, ActivateServiceResponse, QueryHunyuanImageJobResponse, GetEmbeddingResponse, GetTokenCountRequest, TextToImageLiteResponse, ChatCompletionsResponse } from "./hunyuan_models";
3
+ import { ChatCompletionsRequest, FilesUploadsRequest, GetEmbeddingRequest, ActivateServiceRequest, GetThreadRequest, GetThreadMessageRequest, SubmitHunyuanImageJobRequest, SubmitHunyuanImageChatJobResponse, QueryHunyuanImageChatJobRequest, RunThreadRequest, SubmitHunyuanImageChatJobRequest, QueryHunyuanImageJobRequest, GetThreadMessageResponse, GetThreadMessageListRequest, GetTokenCountResponse, QueryHunyuanImageChatJobResponse, SetPayModeResponse, SetPayModeRequest, TextToImageLiteRequest, CreateThreadResponse, SubmitHunyuanImageJobResponse, GetThreadResponse, ActivateServiceResponse, QueryHunyuanImageJobResponse, FilesUploadsResponse, FilesDeletionsResponse, GetEmbeddingResponse, GetThreadMessageListResponse, FilesListRequest, RunThreadResponse, FilesDeletionsRequest, FilesListResponse, GetTokenCountRequest, TextToImageLiteResponse, CreateThreadRequest, ChatCompletionsResponse } 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
+ /**
19
+ * 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
20
+
21
+ 1. 本接口暂不支持返回图片内容。
22
+ 2. 默认该接口下单账号限制并发数为 5 路,如您有提高并发限制的需求请 [购买](https://buy.cloud.tencent.com/hunyuan) 。
23
+ 3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。
24
+ 4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
25
+ */
26
+ GetThread(req: GetThreadRequest, cb?: (error: string, rep: GetThreadResponse) => void): Promise<GetThreadResponse>;
10
27
  /**
11
28
  * 混元生图(多轮对话)接口基于混元大模型,将根据输入的文本描述生成图像,支持通过多轮对话的方式不断调整图像内容。分为提交任务和查询任务2个接口。
12
29
  提交任务:输入文本和前置对话 ID 等,提交一个混元生图多轮对话异步任务,获得任务 ID。
13
30
  查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得在上一轮对话基础上继续生成的图像结果。
14
31
  混元生图(多轮对话)默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
15
32
  */
16
- QueryHunyuanImageChatJob(req: QueryHunyuanImageChatJobRequest, cb?: (error: string, rep: QueryHunyuanImageChatJobResponse) => void): Promise<QueryHunyuanImageChatJobResponse>;
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>;
17
47
  /**
18
48
  * 混元生图接口基于混元大模型,将根据输入的文本描述,智能生成与之相关的结果图。分为提交任务和查询任务2个接口。
19
49
  提交任务:输入文本等,提交一个混元生图异步任务,获得任务 ID。
20
50
  查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。
21
51
  并发任务数(并发)说明:并发任务数指能同时处理的任务数量。混元生图默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
22
52
  */
23
- SubmitHunyuanImageJob(req: SubmitHunyuanImageJobRequest, cb?: (error: string, rep: SubmitHunyuanImageJobResponse) => void): Promise<SubmitHunyuanImageJobResponse>;
53
+ QueryHunyuanImageJob(req: QueryHunyuanImageJobRequest, cb?: (error: string, rep: QueryHunyuanImageJobResponse) => void): Promise<QueryHunyuanImageJobResponse>;
24
54
  /**
25
55
  * 混元生图接口基于混元大模型,将根据输入的文本描述,智能生成与之相关的结果图。分为提交任务和查询任务2个接口。
26
56
  提交任务:输入文本等,提交一个混元生图异步任务,获得任务 ID。
27
57
  查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。
28
58
  并发任务数(并发)说明:并发任务数指能同时处理的任务数量。混元生图默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
29
59
  */
30
- QueryHunyuanImageJob(req: QueryHunyuanImageJobRequest, cb?: (error: string, rep: QueryHunyuanImageJobResponse) => void): Promise<QueryHunyuanImageJobResponse>;
60
+ SubmitHunyuanImageJob(req: SubmitHunyuanImageJobRequest, cb?: (error: string, rep: SubmitHunyuanImageJobResponse) => void): Promise<SubmitHunyuanImageJobResponse>;
31
61
  /**
32
- * 设置付费模式
62
+ * 删除文件。
33
63
  */
34
- SetPayMode(req: SetPayModeRequest, cb?: (error: string, rep: SetPayModeResponse) => void): Promise<SetPayModeResponse>;
64
+ FilesDeletions(req: FilesDeletionsRequest, cb?: (error: string, rep: FilesDeletionsResponse) => void): Promise<FilesDeletionsResponse>;
35
65
  /**
36
- * 混元生图(多轮对话)接口基于混元大模型,将根据输入的文本描述生成图像,支持通过多轮对话的方式不断调整图像内容。分为提交任务和查询任务2个接口。
37
- 提交任务:输入文本和前置对话 ID 等,提交一个混元生图多轮对话异步任务,获得任务 ID。
38
- 查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得在上一轮对话基础上继续生成的图像结果。
39
- 混元生图(多轮对话)默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
66
+ * 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
67
+
68
+ 1. 本接口暂不支持返回图片内容。
69
+ 2. 默认该接口下单账号限制并发数为 5 路,如您有提高并发限制的需求请 [购买](https://buy.cloud.tencent.com/hunyuan) 。
70
+ 3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。
71
+ 4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
40
72
  */
41
- SubmitHunyuanImageChatJob(req: SubmitHunyuanImageChatJobRequest, cb?: (error: string, rep: SubmitHunyuanImageChatJobResponse) => void): Promise<SubmitHunyuanImageChatJobResponse>;
73
+ GetThreadMessageList(req: GetThreadMessageListRequest, cb?: (error: string, rep: GetThreadMessageListResponse) => void): Promise<GetThreadMessageListResponse>;
74
+ /**
75
+ * 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
76
+
77
+ 1. 本接口暂不支持返回图片内容。
78
+ 2. 默认该接口下单账号限制并发数为 5 路,如您有提高并发限制的需求请 [购买](https://buy.cloud.tencent.com/hunyuan) 。
79
+ 3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。
80
+ 4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
81
+ */
82
+ GetThreadMessage(req: GetThreadMessageRequest, cb?: (error: string, rep: GetThreadMessageResponse) => void): Promise<GetThreadMessageResponse>;
83
+ /**
84
+ * 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
85
+
86
+ 1. 本接口暂不支持返回图片内容。
87
+ 2. 默认该接口下单账号限制并发数为 5 路,如您有提高并发限制的需求请 [购买](https://buy.cloud.tencent.com/hunyuan) 。
88
+ 3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。
89
+ 4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
90
+ */
91
+ RunThread(req: RunThreadRequest, cb?: (error: string, rep: RunThreadResponse) => void): Promise<RunThreadResponse>;
42
92
  /**
43
93
  * 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
44
94
 
@@ -49,20 +99,28 @@ export declare class Client extends AbstractClient {
49
99
  */
50
100
  ChatCompletions(req: ChatCompletionsRequest, cb?: (error: string, rep: ChatCompletionsResponse) => void): Promise<ChatCompletionsResponse>;
51
101
  /**
52
- * 开通服务
102
+ * 混元生图(多轮对话)接口基于混元大模型,将根据输入的文本描述生成图像,支持通过多轮对话的方式不断调整图像内容。分为提交任务和查询任务2个接口。
103
+ 提交任务:输入文本和前置对话 ID 等,提交一个混元生图多轮对话异步任务,获得任务 ID。
104
+ 查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得在上一轮对话基础上继续生成的图像结果。
105
+ 混元生图(多轮对话)默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
53
106
  */
54
- ActivateService(req: ActivateServiceRequest, cb?: (error: string, rep: ActivateServiceResponse) => void): Promise<ActivateServiceResponse>;
107
+ QueryHunyuanImageChatJob(req: QueryHunyuanImageChatJobRequest, cb?: (error: string, rep: QueryHunyuanImageChatJobResponse) => void): Promise<QueryHunyuanImageChatJobResponse>;
55
108
  /**
56
- * 该接口用于计算文本对应Token数、字符数。
109
+ * 腾讯混元 Embedding 接口,可以将文本转化为高质量的向量数据。向量维度为1024维。
57
110
  */
58
- GetTokenCount(req: GetTokenCountRequest, cb?: (error: string, rep: GetTokenCountResponse) => void): Promise<GetTokenCountResponse>;
111
+ GetEmbedding(req: GetEmbeddingRequest, cb?: (error: string, rep: GetEmbeddingResponse) => void): Promise<GetEmbeddingResponse>;
112
+ /**
113
+ * 上传用于不同用途的的文件。
114
+ 当前用途仅支持 hunyuan 等模型的文档理解。
115
+ */
116
+ FilesUploads(req: FilesUploadsRequest, cb?: (error: string, rep: FilesUploadsResponse) => void): Promise<FilesUploadsResponse>;
59
117
  /**
60
118
  * 文生图轻量版接口根据输入的文本描述,智能生成与之相关的结果图。
61
119
  文生图轻量版默认提供3个并发任务数,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
62
120
  */
63
121
  TextToImageLite(req: TextToImageLiteRequest, cb?: (error: string, rep: TextToImageLiteResponse) => void): Promise<TextToImageLiteResponse>;
64
122
  /**
65
- * 腾讯混元 Embedding 接口,可以将文本转化为高质量的向量数据。向量维度为1024维。
123
+ * 开通服务
66
124
  */
67
- GetEmbedding(req: GetEmbeddingRequest, cb?: (error: string, rep: GetEmbeddingResponse) => void): Promise<GetEmbeddingResponse>;
125
+ ActivateService(req: ActivateServiceRequest, cb?: (error: string, rep: ActivateServiceResponse) => void): Promise<ActivateServiceResponse>;
68
126
  }
@@ -27,14 +27,54 @@ 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
+ /**
43
+ * 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
44
+
45
+ 1. 本接口暂不支持返回图片内容。
46
+ 2. 默认该接口下单账号限制并发数为 5 路,如您有提高并发限制的需求请 [购买](https://buy.cloud.tencent.com/hunyuan) 。
47
+ 3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。
48
+ 4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
49
+ */
50
+ async GetThread(req, cb) {
51
+ return this.request("GetThread", req, cb);
52
+ }
30
53
  /**
31
54
  * 混元生图(多轮对话)接口基于混元大模型,将根据输入的文本描述生成图像,支持通过多轮对话的方式不断调整图像内容。分为提交任务和查询任务2个接口。
32
55
  提交任务:输入文本和前置对话 ID 等,提交一个混元生图多轮对话异步任务,获得任务 ID。
33
56
  查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得在上一轮对话基础上继续生成的图像结果。
34
57
  混元生图(多轮对话)默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
35
58
  */
36
- async QueryHunyuanImageChatJob(req, cb) {
37
- return this.request("QueryHunyuanImageChatJob", req, cb);
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);
38
78
  }
39
79
  /**
40
80
  * 混元生图接口基于混元大模型,将根据输入的文本描述,智能生成与之相关的结果图。分为提交任务和查询任务2个接口。
@@ -42,8 +82,8 @@ class Client extends abstract_client_1.AbstractClient {
42
82
  查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。
43
83
  并发任务数(并发)说明:并发任务数指能同时处理的任务数量。混元生图默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
44
84
  */
45
- async SubmitHunyuanImageJob(req, cb) {
46
- return this.request("SubmitHunyuanImageJob", req, cb);
85
+ async QueryHunyuanImageJob(req, cb) {
86
+ return this.request("QueryHunyuanImageJob", req, cb);
47
87
  }
48
88
  /**
49
89
  * 混元生图接口基于混元大模型,将根据输入的文本描述,智能生成与之相关的结果图。分为提交任务和查询任务2个接口。
@@ -51,23 +91,47 @@ class Client extends abstract_client_1.AbstractClient {
51
91
  查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。
52
92
  并发任务数(并发)说明:并发任务数指能同时处理的任务数量。混元生图默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
53
93
  */
54
- async QueryHunyuanImageJob(req, cb) {
55
- return this.request("QueryHunyuanImageJob", req, cb);
94
+ async SubmitHunyuanImageJob(req, cb) {
95
+ return this.request("SubmitHunyuanImageJob", req, cb);
56
96
  }
57
97
  /**
58
- * 设置付费模式
98
+ * 删除文件。
59
99
  */
60
- async SetPayMode(req, cb) {
61
- return this.request("SetPayMode", req, cb);
100
+ async FilesDeletions(req, cb) {
101
+ return this.request("FilesDeletions", req, cb);
62
102
  }
63
103
  /**
64
- * 混元生图(多轮对话)接口基于混元大模型,将根据输入的文本描述生成图像,支持通过多轮对话的方式不断调整图像内容。分为提交任务和查询任务2个接口。
65
- 提交任务:输入文本和前置对话 ID 等,提交一个混元生图多轮对话异步任务,获得任务 ID。
66
- 查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得在上一轮对话基础上继续生成的图像结果。
67
- 混元生图(多轮对话)默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
104
+ * 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
105
+
106
+ 1. 本接口暂不支持返回图片内容。
107
+ 2. 默认该接口下单账号限制并发数为 5 路,如您有提高并发限制的需求请 [购买](https://buy.cloud.tencent.com/hunyuan) 。
108
+ 3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。
109
+ 4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
68
110
  */
69
- async SubmitHunyuanImageChatJob(req, cb) {
70
- return this.request("SubmitHunyuanImageChatJob", req, cb);
111
+ async GetThreadMessageList(req, cb) {
112
+ return this.request("GetThreadMessageList", req, cb);
113
+ }
114
+ /**
115
+ * 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
116
+
117
+ 1. 本接口暂不支持返回图片内容。
118
+ 2. 默认该接口下单账号限制并发数为 5 路,如您有提高并发限制的需求请 [购买](https://buy.cloud.tencent.com/hunyuan) 。
119
+ 3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。
120
+ 4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
121
+ */
122
+ async GetThreadMessage(req, cb) {
123
+ return this.request("GetThreadMessage", req, cb);
124
+ }
125
+ /**
126
+ * 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
127
+
128
+ 1. 本接口暂不支持返回图片内容。
129
+ 2. 默认该接口下单账号限制并发数为 5 路,如您有提高并发限制的需求请 [购买](https://buy.cloud.tencent.com/hunyuan) 。
130
+ 3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。
131
+ 4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
132
+ */
133
+ async RunThread(req, cb) {
134
+ return this.request("RunThread", req, cb);
71
135
  }
72
136
  /**
73
137
  * 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
@@ -81,16 +145,26 @@ class Client extends abstract_client_1.AbstractClient {
81
145
  return this.request("ChatCompletions", req, cb);
82
146
  }
83
147
  /**
84
- * 开通服务
148
+ * 混元生图(多轮对话)接口基于混元大模型,将根据输入的文本描述生成图像,支持通过多轮对话的方式不断调整图像内容。分为提交任务和查询任务2个接口。
149
+ 提交任务:输入文本和前置对话 ID 等,提交一个混元生图多轮对话异步任务,获得任务 ID。
150
+ 查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得在上一轮对话基础上继续生成的图像结果。
151
+ 混元生图(多轮对话)默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
85
152
  */
86
- async ActivateService(req, cb) {
87
- return this.request("ActivateService", req, cb);
153
+ async QueryHunyuanImageChatJob(req, cb) {
154
+ return this.request("QueryHunyuanImageChatJob", req, cb);
88
155
  }
89
156
  /**
90
- * 该接口用于计算文本对应Token数、字符数。
157
+ * 腾讯混元 Embedding 接口,可以将文本转化为高质量的向量数据。向量维度为1024维。
91
158
  */
92
- async GetTokenCount(req, cb) {
93
- return this.request("GetTokenCount", req, cb);
159
+ async GetEmbedding(req, cb) {
160
+ return this.request("GetEmbedding", req, cb);
161
+ }
162
+ /**
163
+ * 上传用于不同用途的的文件。
164
+ 当前用途仅支持 hunyuan 等模型的文档理解。
165
+ */
166
+ async FilesUploads(req, cb) {
167
+ return this.request("FilesUploads", req, cb);
94
168
  }
95
169
  /**
96
170
  * 文生图轻量版接口根据输入的文本描述,智能生成与之相关的结果图。
@@ -100,10 +174,10 @@ class Client extends abstract_client_1.AbstractClient {
100
174
  return this.request("TextToImageLite", req, cb);
101
175
  }
102
176
  /**
103
- * 腾讯混元 Embedding 接口,可以将文本转化为高质量的向量数据。向量维度为1024维。
177
+ * 开通服务
104
178
  */
105
- async GetEmbedding(req, cb) {
106
- return this.request("GetEmbedding", req, cb);
179
+ async ActivateService(req, cb) {
180
+ return this.request("ActivateService", req, cb);
107
181
  }
108
182
  }
109
183
  exports.Client = Client;