tencentcloud-sdk-nodejs 4.1.185 → 4.1.187

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 (83) hide show
  1. package/es/common/sdk_version.js +1 -1
  2. package/es/services/cdwch/v20200915/cdwch_client.js +3 -0
  3. package/es/services/goosefs/v20220519/goosefs_client.js +15 -3
  4. package/es/services/hunyuan/v20230901/hunyuan_client.js +54 -33
  5. package/es/services/lcic/v20220817/lcic_client.js +37 -16
  6. package/es/services/mongodb/v20190725/mongodb_client.js +29 -17
  7. package/es/services/monitor/v20180724/monitor_client.js +3 -0
  8. package/es/services/monitor/v20230616/monitor_client.js +9 -0
  9. package/es/services/ocr/v20181119/ocr_client.js +10 -4
  10. package/es/services/ses/v20201002/ses_client.js +7 -4
  11. package/es/services/tcb/v20180608/tcb_client.js +9 -0
  12. package/es/services/vclm/v20240523/vclm_client.js +34 -28
  13. package/es/services/vod/v20180717/vod_client.js +22 -10
  14. package/es/services/vpc/v20170312/vpc_client.js +37 -13
  15. package/package.json +1 -1
  16. package/tencentcloud/common/sdk_version.d.ts +1 -1
  17. package/tencentcloud/common/sdk_version.js +1 -1
  18. package/tencentcloud/services/ags/v20250920/ags_models.d.ts +26 -0
  19. package/tencentcloud/services/aiart/v20221229/aiart_models.d.ts +3 -3
  20. package/tencentcloud/services/as/v20180419/as_models.d.ts +7 -3
  21. package/tencentcloud/services/batch/v20170312/batch_models.d.ts +1 -1
  22. package/tencentcloud/services/ccc/v20200210/ccc_models.d.ts +18 -0
  23. package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +4 -0
  24. package/tencentcloud/services/cdwch/v20200915/cdwch_client.d.ts +5 -1
  25. package/tencentcloud/services/cdwch/v20200915/cdwch_client.js +6 -0
  26. package/tencentcloud/services/cdwch/v20200915/cdwch_models.d.ts +34 -0
  27. package/tencentcloud/services/cdwdoris/v20211228/cdwdoris_models.d.ts +2 -2
  28. package/tencentcloud/services/cfs/v20190719/cfs_models.d.ts +5 -5
  29. package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +1 -1
  30. package/tencentcloud/services/ess/v20201111/ess_client.d.ts +2 -2
  31. package/tencentcloud/services/ess/v20201111/ess_client.js +2 -2
  32. package/tencentcloud/services/ess/v20201111/ess_models.d.ts +5 -2
  33. package/tencentcloud/services/essbasic/v20210526/essbasic_client.d.ts +5 -4
  34. package/tencentcloud/services/essbasic/v20210526/essbasic_client.js +5 -4
  35. package/tencentcloud/services/faceid/v20180301/faceid_models.d.ts +86 -237
  36. package/tencentcloud/services/goosefs/v20220519/goosefs_client.d.ts +21 -7
  37. package/tencentcloud/services/goosefs/v20220519/goosefs_client.js +30 -8
  38. package/tencentcloud/services/goosefs/v20220519/goosefs_models.d.ts +356 -79
  39. package/tencentcloud/services/hunyuan/v20230901/hunyuan_client.d.ts +90 -62
  40. package/tencentcloud/services/hunyuan/v20230901/hunyuan_client.js +125 -83
  41. package/tencentcloud/services/hunyuan/v20230901/hunyuan_models.d.ts +355 -54
  42. package/tencentcloud/services/lcic/v20220817/lcic_client.d.ts +45 -17
  43. package/tencentcloud/services/lcic/v20220817/lcic_client.js +66 -24
  44. package/tencentcloud/services/lcic/v20220817/lcic_models.d.ts +357 -48
  45. package/tencentcloud/services/lke/v20231130/lke_client.d.ts +1 -1
  46. package/tencentcloud/services/lke/v20231130/lke_models.d.ts +71 -13
  47. package/tencentcloud/services/mongodb/v20190725/mongodb_client.d.ts +37 -21
  48. package/tencentcloud/services/mongodb/v20190725/mongodb_client.js +53 -29
  49. package/tencentcloud/services/mongodb/v20190725/mongodb_models.d.ts +526 -274
  50. package/tencentcloud/services/monitor/v20180724/monitor_client.d.ts +14 -4
  51. package/tencentcloud/services/monitor/v20180724/monitor_client.js +15 -3
  52. package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +71 -12
  53. package/tencentcloud/services/monitor/v20230616/monitor_client.d.ts +13 -1
  54. package/tencentcloud/services/monitor/v20230616/monitor_client.js +18 -0
  55. package/tencentcloud/services/monitor/v20230616/monitor_models.d.ts +178 -10
  56. package/tencentcloud/services/mps/v20190612/mps_client.d.ts +1 -1
  57. package/tencentcloud/services/mps/v20190612/mps_models.d.ts +79 -127
  58. package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +27 -5
  59. package/tencentcloud/services/ocr/v20181119/ocr_client.js +32 -6
  60. package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +256 -121
  61. package/tencentcloud/services/ses/v20201002/ses_client.d.ts +9 -5
  62. package/tencentcloud/services/ses/v20201002/ses_client.js +12 -6
  63. package/tencentcloud/services/ses/v20201002/ses_models.d.ts +187 -72
  64. package/tencentcloud/services/tcb/v20180608/tcb_client.d.ts +63 -9
  65. package/tencentcloud/services/tcb/v20180608/tcb_client.js +68 -8
  66. package/tencentcloud/services/tcb/v20180608/tcb_models.d.ts +175 -42
  67. package/tencentcloud/services/teo/v20220901/teo_models.d.ts +10 -0
  68. package/tencentcloud/services/thpc/v20230321/thpc_models.d.ts +9 -5
  69. package/tencentcloud/services/tione/v20211111/tione_client.d.ts +1 -1
  70. package/tencentcloud/services/tione/v20211111/tione_client.js +1 -1
  71. package/tencentcloud/services/tione/v20211111/tione_models.d.ts +4 -8
  72. package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +9 -1
  73. package/tencentcloud/services/tse/v20201207/tse_models.d.ts +4 -0
  74. package/tencentcloud/services/vclm/v20240523/vclm_client.d.ts +43 -35
  75. package/tencentcloud/services/vclm/v20240523/vclm_client.js +62 -50
  76. package/tencentcloud/services/vclm/v20240523/vclm_models.d.ts +84 -1
  77. package/tencentcloud/services/vod/v20180717/vod_client.d.ts +42 -24
  78. package/tencentcloud/services/vod/v20180717/vod_client.js +54 -28
  79. package/tencentcloud/services/vod/v20180717/vod_models.d.ts +406 -96
  80. package/tencentcloud/services/vpc/v20170312/vpc_client.d.ts +49 -17
  81. package/tencentcloud/services/vpc/v20170312/vpc_client.js +71 -23
  82. package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +559 -197
  83. package/tencentcloud/services/wedata/v20250806/wedata_models.d.ts +103 -2
@@ -1,6 +1,6 @@
1
1
  import { AbstractClient } from "../../../common/abstract_client";
2
2
  import { ClientConfig } from "../../../common/interface";
3
- import { RunThreadRequest, SubmitHunyuanImageChatJobRequest, QueryHunyuanImageJobRequest, QueryHunyuanImageChatJobRequest, SetPayModeResponse, SubmitHunyuanImageJobResponse, GetThreadResponse, FilesDeletionsRequest, RunThreadResponse, ChatCompletionsResponse, GetThreadMessageListRequest, GetThreadMessageRequest, SubmitHunyuanImageChatJobResponse, ChatTranslationsRequest, GetThreadMessageResponse, GroupChatCompletionsRequest, ImageQuestionResponse, SetPayModeRequest, FilesDeletionsResponse, GetThreadMessageListResponse, CreateThreadRequest, ChatCompletionsRequest, FilesUploadsRequest, GetEmbeddingRequest, GroupChatCompletionsResponse, SubmitHunyuanImageJobRequest, GetTokenCountResponse, TextToImageLiteResponse, TextToImageLiteRequest, QueryHunyuanImageJobResponse, FilesListRequest, GetTokenCountRequest, ActivateServiceRequest, GetThreadRequest, ChatTranslationsResponse, ImageQuestionRequest, QueryHunyuanImageChatJobResponse, GetEmbeddingResponse, CreateThreadResponse, ActivateServiceResponse, FilesUploadsResponse, FilesListResponse } from "./hunyuan_models";
3
+ import { DeleteGlossaryResponse, CreateGlossaryEntryRequest, RunThreadRequest, SubmitHunyuanImageChatJobRequest, QueryHunyuanImageJobRequest, GetTokenCountResponse, SetPayModeResponse, SubmitHunyuanImageJobResponse, DeleteGlossaryEntryResponse, GetThreadResponse, FilesDeletionsRequest, RunThreadResponse, ListGlossaryEntryRequest, ChatCompletionsResponse, GetThreadMessageListRequest, GetThreadMessageRequest, SubmitHunyuanImageChatJobResponse, DeleteGlossaryRequest, ChatTranslationsRequest, GetThreadMessageResponse, GroupChatCompletionsRequest, ImageQuestionResponse, SetPayModeRequest, FilesDeletionsResponse, ListGlossaryRequest, GetEmbeddingResponse, GetThreadMessageListResponse, CreateThreadRequest, ChatCompletionsRequest, FilesUploadsRequest, GetEmbeddingRequest, GroupChatCompletionsResponse, UpdateGlossaryEntryRequest, SubmitHunyuanImageJobRequest, QueryHunyuanImageChatJobRequest, ListGlossaryResponse, TextToImageLiteResponse, TextToImageLiteRequest, QueryHunyuanImageJobResponse, UpdateGlossaryEntryResponse, FilesListRequest, GetTokenCountRequest, ListGlossaryEntryResponse, ActivateServiceRequest, GetThreadRequest, ChatTranslationsResponse, DeleteGlossaryEntryRequest, CreateGlossaryRequest, ImageQuestionRequest, QueryHunyuanImageChatJobResponse, CreateGlossaryResponse, CreateThreadResponse, ActivateServiceResponse, FilesUploadsResponse, FilesListResponse, CreateGlossaryEntryResponse } from "./hunyuan_models";
4
4
  /**
5
5
  * hunyuan client
6
6
  * @class
@@ -8,24 +8,36 @@ import { RunThreadRequest, SubmitHunyuanImageChatJobRequest, QueryHunyuanImageJo
8
8
  export declare class Client extends AbstractClient {
9
9
  constructor(clientConfig: ClientConfig);
10
10
  /**
11
- * 设置付费模式
12
- */
13
- SetPayMode(req: SetPayModeRequest, cb?: (error: string, rep: SetPayModeResponse) => void): Promise<SetPayModeResponse>;
14
- /**
15
- * 如需使用OpenAI兼容接口, 请参考文档:[OpenAI 兼容接口](https://cloud.tencent.com/document/product/1729/111007)
16
-
17
- 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
11
+ * 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
18
12
 
19
13
  1. 本接口暂不支持返回图片内容。
20
14
  2. 默认该接口下单账号限制并发数为 5 路,如您有提高并发限制的需求请 [购买](https://buy.cloud.tencent.com/hunyuan) 。
21
15
  3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。
22
16
  4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
23
17
  */
24
- ImageQuestion(req: ImageQuestionRequest, cb?: (error: string, rep: ImageQuestionResponse) => void): Promise<ImageQuestionResponse>;
18
+ GetThread(req: GetThreadRequest, cb?: (error: string, rep: GetThreadResponse) => void): Promise<GetThreadResponse>;
25
19
  /**
26
- * 文件列表。
20
+ * 混元生图接口基于混元大模型,将根据输入的文本描述,智能生成与之相关的结果图。分为提交任务和查询任务2个接口。
21
+ 提交任务:输入文本等,提交一个混元生图异步任务,获得任务 ID。
22
+ 查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。
23
+ 并发任务数(并发)说明:并发任务数指能同时处理的任务数量。混元生图默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
27
24
  */
28
- FilesList(req: FilesListRequest, cb?: (error: string, rep: FilesListResponse) => void): Promise<FilesListResponse>;
25
+ SubmitHunyuanImageJob(req: SubmitHunyuanImageJobRequest, cb?: (error: string, rep: SubmitHunyuanImageJobResponse) => void): Promise<SubmitHunyuanImageJobResponse>;
26
+ /**
27
+ * 混元生图接口基于混元大模型,将根据输入的文本描述,智能生成与之相关的结果图。分为提交任务和查询任务2个接口。
28
+ 提交任务:输入文本等,提交一个混元生图异步任务,获得任务 ID。
29
+ 查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。
30
+ 并发任务数(并发)说明:并发任务数指能同时处理的任务数量。混元生图默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
31
+ */
32
+ QueryHunyuanImageJob(req: QueryHunyuanImageJobRequest, cb?: (error: string, rep: QueryHunyuanImageJobResponse) => void): Promise<QueryHunyuanImageJobResponse>;
33
+ /**
34
+ * 查询术语库。
35
+ */
36
+ ListGlossary(req: ListGlossaryRequest, cb?: (error: string, rep: ListGlossaryResponse) => void): Promise<ListGlossaryResponse>;
37
+ /**
38
+ * 查询术语条目。
39
+ */
40
+ ListGlossaryEntry(req: ListGlossaryEntryRequest, cb?: (error: string, rep: ListGlossaryEntryResponse) => void): Promise<ListGlossaryEntryResponse>;
29
41
  /**
30
42
  * 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
31
43
 
@@ -34,14 +46,7 @@ export declare class Client extends AbstractClient {
34
46
  3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。
35
47
  4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
36
48
  */
37
- GetThread(req: GetThreadRequest, cb?: (error: string, rep: GetThreadResponse) => void): Promise<GetThreadResponse>;
38
- /**
39
- * 混元生图(多轮对话)接口基于混元大模型,将根据输入的文本描述生成图像,支持通过多轮对话的方式不断调整图像内容。分为提交任务和查询任务2个接口。
40
- 提交任务:输入文本和前置对话 ID 等,提交一个混元生图多轮对话异步任务,获得任务 ID。
41
- 查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得在上一轮对话基础上继续生成的图像结果。
42
- 混元生图(多轮对话)默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
43
- */
44
- SubmitHunyuanImageChatJob(req: SubmitHunyuanImageChatJobRequest, cb?: (error: string, rep: SubmitHunyuanImageChatJobResponse) => void): Promise<SubmitHunyuanImageChatJobResponse>;
49
+ ChatTranslations(req: ChatTranslationsRequest, cb?: (error: string, rep: ChatTranslationsResponse) => void): Promise<ChatTranslationsResponse>;
45
50
  /**
46
51
  * 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
47
52
 
@@ -50,38 +55,30 @@ export declare class Client extends AbstractClient {
50
55
  3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。
51
56
  4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
52
57
  */
53
- CreateThread(req?: CreateThreadRequest, cb?: (error: string, rep: CreateThreadResponse) => void): Promise<CreateThreadResponse>;
54
- /**
55
- * 该接口用于计算文本对应Token数、字符数。
56
- */
57
- GetTokenCount(req: GetTokenCountRequest, cb?: (error: string, rep: GetTokenCountResponse) => void): Promise<GetTokenCountResponse>;
58
- /**
59
- * 混元生图接口基于混元大模型,将根据输入的文本描述,智能生成与之相关的结果图。分为提交任务和查询任务2个接口。
60
- 提交任务:输入文本等,提交一个混元生图异步任务,获得任务 ID。
61
- 查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。
62
- 并发任务数(并发)说明:并发任务数指能同时处理的任务数量。混元生图默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
63
- */
64
- QueryHunyuanImageJob(req: QueryHunyuanImageJobRequest, cb?: (error: string, rep: QueryHunyuanImageJobResponse) => void): Promise<QueryHunyuanImageJobResponse>;
65
- /**
66
- * 混元生图接口基于混元大模型,将根据输入的文本描述,智能生成与之相关的结果图。分为提交任务和查询任务2个接口。
67
- 提交任务:输入文本等,提交一个混元生图异步任务,获得任务 ID。
68
- 查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。
69
- 并发任务数(并发)说明:并发任务数指能同时处理的任务数量。混元生图默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
70
- */
71
- SubmitHunyuanImageJob(req: SubmitHunyuanImageJobRequest, cb?: (error: string, rep: SubmitHunyuanImageJobResponse) => void): Promise<SubmitHunyuanImageJobResponse>;
58
+ GetThreadMessageList(req: GetThreadMessageListRequest, cb?: (error: string, rep: GetThreadMessageListResponse) => void): Promise<GetThreadMessageListResponse>;
72
59
  /**
73
- * 删除文件。
60
+ * 腾讯混元 Embedding 接口,可以将文本转化为高质量的向量数据。向量维度为1024维。
74
61
  */
75
- FilesDeletions(req: FilesDeletionsRequest, cb?: (error: string, rep: FilesDeletionsResponse) => void): Promise<FilesDeletionsResponse>;
62
+ GetEmbedding(req: GetEmbeddingRequest, cb?: (error: string, rep: GetEmbeddingResponse) => void): Promise<GetEmbeddingResponse>;
76
63
  /**
77
- * 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
64
+ * 如需使用OpenAI兼容接口, 请参考文档:[OpenAI 兼容接口](https://cloud.tencent.com/document/product/1729/111007)
65
+
66
+ 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
78
67
 
79
68
  1. 本接口暂不支持返回图片内容。
80
69
  2. 默认该接口下单账号限制并发数为 5 路,如您有提高并发限制的需求请 [购买](https://buy.cloud.tencent.com/hunyuan) 。
81
70
  3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。
82
71
  4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
83
72
  */
84
- GetThreadMessageList(req: GetThreadMessageListRequest, cb?: (error: string, rep: GetThreadMessageListResponse) => void): Promise<GetThreadMessageListResponse>;
73
+ ImageQuestion(req: ImageQuestionRequest, cb?: (error: string, rep: ImageQuestionResponse) => void): Promise<ImageQuestionResponse>;
74
+ /**
75
+ * 添加术语条目。
76
+ */
77
+ CreateGlossaryEntry(req: CreateGlossaryEntryRequest, cb?: (error: string, rep: CreateGlossaryEntryResponse) => void): Promise<CreateGlossaryEntryResponse>;
78
+ /**
79
+ * 更新术语条目。
80
+ */
81
+ UpdateGlossaryEntry(req: UpdateGlossaryEntryRequest, cb?: (error: string, rep: UpdateGlossaryEntryResponse) => void): Promise<UpdateGlossaryEntryResponse>;
85
82
  /**
86
83
  * 如需使用OpenAI兼容接口, 请参考文档:[OpenAI 兼容接口](https://cloud.tencent.com/document/product/1729/111007)
87
84
 
@@ -101,7 +98,18 @@ export declare class Client extends AbstractClient {
101
98
  3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。
102
99
  4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
103
100
  */
104
- GetThreadMessage(req: GetThreadMessageRequest, cb?: (error: string, rep: GetThreadMessageResponse) => void): Promise<GetThreadMessageResponse>;
101
+ RunThread(req: RunThreadRequest, cb?: (error: string, rep: RunThreadResponse) => void): Promise<RunThreadResponse>;
102
+ /**
103
+ * 设置付费模式
104
+ */
105
+ SetPayMode(req: SetPayModeRequest, cb?: (error: string, rep: SetPayModeResponse) => void): Promise<SetPayModeResponse>;
106
+ /**
107
+ * 混元生图(多轮对话)接口基于混元大模型,将根据输入的文本描述生成图像,支持通过多轮对话的方式不断调整图像内容。分为提交任务和查询任务2个接口。
108
+ 提交任务:输入文本和前置对话 ID 等,提交一个混元生图多轮对话异步任务,获得任务 ID。
109
+ 查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得在上一轮对话基础上继续生成的图像结果。
110
+ 混元生图(多轮对话)默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
111
+ */
112
+ QueryHunyuanImageChatJob(req: QueryHunyuanImageChatJobRequest, cb?: (error: string, rep: QueryHunyuanImageChatJobResponse) => void): Promise<QueryHunyuanImageChatJobResponse>;
105
113
  /**
106
114
  * 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
107
115
 
@@ -110,50 +118,70 @@ export declare class Client extends AbstractClient {
110
118
  3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。
111
119
  4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
112
120
  */
113
- RunThread(req: RunThreadRequest, cb?: (error: string, rep: RunThreadResponse) => void): Promise<RunThreadResponse>;
121
+ CreateThread(req?: CreateThreadRequest, cb?: (error: string, rep: CreateThreadResponse) => void): Promise<CreateThreadResponse>;
114
122
  /**
115
- * 如需使用OpenAI兼容接口, 请参考文档:[OpenAI 兼容接口](https://cloud.tencent.com/document/product/1729/111007)
116
-
117
- 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
123
+ * 删除文件。
124
+ */
125
+ FilesDeletions(req: FilesDeletionsRequest, cb?: (error: string, rep: FilesDeletionsResponse) => void): Promise<FilesDeletionsResponse>;
126
+ /**
127
+ * 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
118
128
 
119
129
  1. 本接口暂不支持返回图片内容。
120
130
  2. 默认该接口下单账号限制并发数为 5 路,如您有提高并发限制的需求请 [购买](https://buy.cloud.tencent.com/hunyuan) 。
121
131
  3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。
122
132
  4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
123
133
  */
124
- ChatCompletions(req: ChatCompletionsRequest, cb?: (error: string, rep: ChatCompletionsResponse) => void): Promise<ChatCompletionsResponse>;
134
+ GetThreadMessage(req: GetThreadMessageRequest, cb?: (error: string, rep: GetThreadMessageResponse) => void): Promise<GetThreadMessageResponse>;
135
+ /**
136
+ * 创建自定义术语库,在翻译时自动将源语言术语替换为指定的目标语言译文,确保专业术语翻译的一致性和准确性。
137
+ */
138
+ CreateGlossary(req: CreateGlossaryRequest, cb?: (error: string, rep: CreateGlossaryResponse) => void): Promise<CreateGlossaryResponse>;
139
+ /**
140
+ * 删除术语库。
141
+ */
142
+ DeleteGlossary(req: DeleteGlossaryRequest, cb?: (error: string, rep: DeleteGlossaryResponse) => void): Promise<DeleteGlossaryResponse>;
143
+ /**
144
+ * 上传用于不同用途的文件。
145
+ 当前用途仅支持 hunyuan 等模型的文档理解。
146
+ */
147
+ FilesUploads(req: FilesUploadsRequest, cb?: (error: string, rep: FilesUploadsResponse) => void): Promise<FilesUploadsResponse>;
148
+ /**
149
+ * 开通服务
150
+ */
151
+ ActivateService(req: ActivateServiceRequest, cb?: (error: string, rep: ActivateServiceResponse) => void): Promise<ActivateServiceResponse>;
152
+ /**
153
+ * 删除术语条目。
154
+ */
155
+ DeleteGlossaryEntry(req: DeleteGlossaryEntryRequest, cb?: (error: string, rep: DeleteGlossaryEntryResponse) => void): Promise<DeleteGlossaryEntryResponse>;
156
+ /**
157
+ * 文件列表。
158
+ */
159
+ FilesList(req: FilesListRequest, cb?: (error: string, rep: FilesListResponse) => void): Promise<FilesListResponse>;
125
160
  /**
126
161
  * 混元生图(多轮对话)接口基于混元大模型,将根据输入的文本描述生成图像,支持通过多轮对话的方式不断调整图像内容。分为提交任务和查询任务2个接口。
127
162
  提交任务:输入文本和前置对话 ID 等,提交一个混元生图多轮对话异步任务,获得任务 ID。
128
163
  查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得在上一轮对话基础上继续生成的图像结果。
129
164
  混元生图(多轮对话)默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
130
165
  */
131
- QueryHunyuanImageChatJob(req: QueryHunyuanImageChatJobRequest, cb?: (error: string, rep: QueryHunyuanImageChatJobResponse) => void): Promise<QueryHunyuanImageChatJobResponse>;
166
+ SubmitHunyuanImageChatJob(req: SubmitHunyuanImageChatJobRequest, cb?: (error: string, rep: SubmitHunyuanImageChatJobResponse) => void): Promise<SubmitHunyuanImageChatJobResponse>;
132
167
  /**
133
- * 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
168
+ * 如需使用OpenAI兼容接口, 请参考文档:[OpenAI 兼容接口](https://cloud.tencent.com/document/product/1729/111007)
169
+
170
+ 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
134
171
 
135
172
  1. 本接口暂不支持返回图片内容。
136
173
  2. 默认该接口下单账号限制并发数为 5 路,如您有提高并发限制的需求请 [购买](https://buy.cloud.tencent.com/hunyuan) 。
137
174
  3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。
138
175
  4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
139
176
  */
140
- ChatTranslations(req: ChatTranslationsRequest, cb?: (error: string, rep: ChatTranslationsResponse) => void): Promise<ChatTranslationsResponse>;
141
- /**
142
- * 腾讯混元 Embedding 接口,可以将文本转化为高质量的向量数据。向量维度为1024维。
143
- */
144
- GetEmbedding(req: GetEmbeddingRequest, cb?: (error: string, rep: GetEmbeddingResponse) => void): Promise<GetEmbeddingResponse>;
177
+ ChatCompletions(req: ChatCompletionsRequest, cb?: (error: string, rep: ChatCompletionsResponse) => void): Promise<ChatCompletionsResponse>;
145
178
  /**
146
- * 上传用于不同用途的文件。
147
- 当前用途仅支持 hunyuan 等模型的文档理解。
179
+ * 该接口用于计算文本对应Token数、字符数。
148
180
  */
149
- FilesUploads(req: FilesUploadsRequest, cb?: (error: string, rep: FilesUploadsResponse) => void): Promise<FilesUploadsResponse>;
181
+ GetTokenCount(req: GetTokenCountRequest, cb?: (error: string, rep: GetTokenCountResponse) => void): Promise<GetTokenCountResponse>;
150
182
  /**
151
183
  * 文生图轻量版接口根据输入的文本描述,智能生成与之相关的结果图。
152
184
  文生图轻量版默认提供3个并发任务数,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
153
185
  */
154
186
  TextToImageLite(req: TextToImageLiteRequest, cb?: (error: string, rep: TextToImageLiteResponse) => void): Promise<TextToImageLiteResponse>;
155
- /**
156
- * 开通服务
157
- */
158
- ActivateService(req: ActivateServiceRequest, cb?: (error: string, rep: ActivateServiceResponse) => void): Promise<ActivateServiceResponse>;
159
187
  }
@@ -27,31 +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
- * 如需使用OpenAI兼容接口, 请参考文档:[OpenAI 兼容接口](https://cloud.tencent.com/document/product/1729/111007)
38
-
39
- 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
40
-
41
- 1. 本接口暂不支持返回图片内容。
42
- 2. 默认该接口下单账号限制并发数为 5 路,如您有提高并发限制的需求请 [购买](https://buy.cloud.tencent.com/hunyuan) 。
43
- 3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。
44
- 4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
45
- */
46
- async ImageQuestion(req, cb) {
47
- return this.request("ImageQuestion", req, cb);
48
- }
49
- /**
50
- * 文件列表。
51
- */
52
- async FilesList(req, cb) {
53
- return this.request("FilesList", req, cb);
54
- }
55
30
  /**
56
31
  * 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
57
32
 
@@ -64,30 +39,13 @@ class Client extends abstract_client_1.AbstractClient {
64
39
  return this.request("GetThread", req, cb);
65
40
  }
66
41
  /**
67
- * 混元生图(多轮对话)接口基于混元大模型,将根据输入的文本描述生成图像,支持通过多轮对话的方式不断调整图像内容。分为提交任务和查询任务2个接口。
68
- 提交任务:输入文本和前置对话 ID 等,提交一个混元生图多轮对话异步任务,获得任务 ID
69
- 查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得在上一轮对话基础上继续生成的图像结果。
70
- 混元生图(多轮对话)默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
71
- */
72
- async SubmitHunyuanImageChatJob(req, cb) {
73
- return this.request("SubmitHunyuanImageChatJob", req, cb);
74
- }
75
- /**
76
- * 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
77
-
78
- 1. 本接口暂不支持返回图片内容。
79
- 2. 默认该接口下单账号限制并发数为 5 路,如您有提高并发限制的需求请 [购买](https://buy.cloud.tencent.com/hunyuan) 。
80
- 3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。
81
- 4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
82
- */
83
- async CreateThread(req, cb) {
84
- return this.request("CreateThread", req, cb);
85
- }
86
- /**
87
- * 该接口用于计算文本对应Token数、字符数。
42
+ * 混元生图接口基于混元大模型,将根据输入的文本描述,智能生成与之相关的结果图。分为提交任务和查询任务2个接口。
43
+ 提交任务:输入文本等,提交一个混元生图异步任务,获得任务 ID。
44
+ 查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。
45
+ 并发任务数(并发)说明:并发任务数指能同时处理的任务数量。混元生图默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
88
46
  */
89
- async GetTokenCount(req, cb) {
90
- return this.request("GetTokenCount", req, cb);
47
+ async SubmitHunyuanImageJob(req, cb) {
48
+ return this.request("SubmitHunyuanImageJob", req, cb);
91
49
  }
92
50
  /**
93
51
  * 混元生图接口基于混元大模型,将根据输入的文本描述,智能生成与之相关的结果图。分为提交任务和查询任务2个接口。
@@ -99,19 +57,27 @@ class Client extends abstract_client_1.AbstractClient {
99
57
  return this.request("QueryHunyuanImageJob", req, cb);
100
58
  }
101
59
  /**
102
- * 混元生图接口基于混元大模型,将根据输入的文本描述,智能生成与之相关的结果图。分为提交任务和查询任务2个接口。
103
- 提交任务:输入文本等,提交一个混元生图异步任务,获得任务 ID。
104
- 查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。
105
- 并发任务数(并发)说明:并发任务数指能同时处理的任务数量。混元生图默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
60
+ * 查询术语库。
106
61
  */
107
- async SubmitHunyuanImageJob(req, cb) {
108
- return this.request("SubmitHunyuanImageJob", req, cb);
62
+ async ListGlossary(req, cb) {
63
+ return this.request("ListGlossary", req, cb);
109
64
  }
110
65
  /**
111
- * 删除文件。
66
+ * 查询术语条目。
112
67
  */
113
- async FilesDeletions(req, cb) {
114
- return this.request("FilesDeletions", req, cb);
68
+ async ListGlossaryEntry(req, cb) {
69
+ return this.request("ListGlossaryEntry", req, cb);
70
+ }
71
+ /**
72
+ * 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
73
+
74
+ 1. 本接口暂不支持返回图片内容。
75
+ 2. 默认该接口下单账号限制并发数为 5 路,如您有提高并发限制的需求请 [购买](https://buy.cloud.tencent.com/hunyuan) 。
76
+ 3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。
77
+ 4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
78
+ */
79
+ async ChatTranslations(req, cb) {
80
+ return this.request("ChatTranslations", req, cb);
115
81
  }
116
82
  /**
117
83
  * 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
@@ -124,6 +90,12 @@ class Client extends abstract_client_1.AbstractClient {
124
90
  async GetThreadMessageList(req, cb) {
125
91
  return this.request("GetThreadMessageList", req, cb);
126
92
  }
93
+ /**
94
+ * 腾讯混元 Embedding 接口,可以将文本转化为高质量的向量数据。向量维度为1024维。
95
+ */
96
+ async GetEmbedding(req, cb) {
97
+ return this.request("GetEmbedding", req, cb);
98
+ }
127
99
  /**
128
100
  * 如需使用OpenAI兼容接口, 请参考文档:[OpenAI 兼容接口](https://cloud.tencent.com/document/product/1729/111007)
129
101
 
@@ -134,19 +106,33 @@ class Client extends abstract_client_1.AbstractClient {
134
106
  3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。
135
107
  4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
136
108
  */
137
- async GroupChatCompletions(req, cb) {
138
- return this.request("GroupChatCompletions", req, cb);
109
+ async ImageQuestion(req, cb) {
110
+ return this.request("ImageQuestion", req, cb);
139
111
  }
140
112
  /**
141
- * 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
113
+ * 添加术语条目。
114
+ */
115
+ async CreateGlossaryEntry(req, cb) {
116
+ return this.request("CreateGlossaryEntry", req, cb);
117
+ }
118
+ /**
119
+ * 更新术语条目。
120
+ */
121
+ async UpdateGlossaryEntry(req, cb) {
122
+ return this.request("UpdateGlossaryEntry", req, cb);
123
+ }
124
+ /**
125
+ * 如需使用OpenAI兼容接口, 请参考文档:[OpenAI 兼容接口](https://cloud.tencent.com/document/product/1729/111007)
126
+
127
+ 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
142
128
 
143
129
  1. 本接口暂不支持返回图片内容。
144
130
  2. 默认该接口下单账号限制并发数为 5 路,如您有提高并发限制的需求请 [购买](https://buy.cloud.tencent.com/hunyuan) 。
145
131
  3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。
146
132
  4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
147
133
  */
148
- async GetThreadMessage(req, cb) {
149
- return this.request("GetThreadMessage", req, cb);
134
+ async GroupChatCompletions(req, cb) {
135
+ return this.request("GroupChatCompletions", req, cb);
150
136
  }
151
137
  /**
152
138
  * 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
@@ -160,17 +146,10 @@ class Client extends abstract_client_1.AbstractClient {
160
146
  return this.request("RunThread", req, cb);
161
147
  }
162
148
  /**
163
- * 如需使用OpenAI兼容接口, 请参考文档:[OpenAI 兼容接口](https://cloud.tencent.com/document/product/1729/111007)
164
-
165
- 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
166
-
167
- 1. 本接口暂不支持返回图片内容。
168
- 2. 默认该接口下单账号限制并发数为 5 路,如您有提高并发限制的需求请 [购买](https://buy.cloud.tencent.com/hunyuan) 。
169
- 3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。
170
- 4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
149
+ * 设置付费模式
171
150
  */
172
- async ChatCompletions(req, cb) {
173
- return this.request("ChatCompletions", req, cb);
151
+ async SetPayMode(req, cb) {
152
+ return this.request("SetPayMode", req, cb);
174
153
  }
175
154
  /**
176
155
  * 混元生图(多轮对话)接口基于混元大模型,将根据输入的文本描述生成图像,支持通过多轮对话的方式不断调整图像内容。分为提交任务和查询任务2个接口。
@@ -189,14 +168,37 @@ class Client extends abstract_client_1.AbstractClient {
189
168
  3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。
190
169
  4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
191
170
  */
192
- async ChatTranslations(req, cb) {
193
- return this.request("ChatTranslations", req, cb);
171
+ async CreateThread(req, cb) {
172
+ return this.request("CreateThread", req, cb);
194
173
  }
195
174
  /**
196
- * 腾讯混元 Embedding 接口,可以将文本转化为高质量的向量数据。向量维度为1024维。
175
+ * 删除文件。
197
176
  */
198
- async GetEmbedding(req, cb) {
199
- return this.request("GetEmbedding", req, cb);
177
+ async FilesDeletions(req, cb) {
178
+ return this.request("FilesDeletions", req, cb);
179
+ }
180
+ /**
181
+ * 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
182
+
183
+ 1. 本接口暂不支持返回图片内容。
184
+ 2. 默认该接口下单账号限制并发数为 5 路,如您有提高并发限制的需求请 [购买](https://buy.cloud.tencent.com/hunyuan) 。
185
+ 3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。
186
+ 4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
187
+ */
188
+ async GetThreadMessage(req, cb) {
189
+ return this.request("GetThreadMessage", req, cb);
190
+ }
191
+ /**
192
+ * 创建自定义术语库,在翻译时自动将源语言术语替换为指定的目标语言译文,确保专业术语翻译的一致性和准确性。
193
+ */
194
+ async CreateGlossary(req, cb) {
195
+ return this.request("CreateGlossary", req, cb);
196
+ }
197
+ /**
198
+ * 删除术语库。
199
+ */
200
+ async DeleteGlossary(req, cb) {
201
+ return this.request("DeleteGlossary", req, cb);
200
202
  }
201
203
  /**
202
204
  * 上传用于不同用途的文件。
@@ -205,6 +207,52 @@ class Client extends abstract_client_1.AbstractClient {
205
207
  async FilesUploads(req, cb) {
206
208
  return this.request("FilesUploads", req, cb);
207
209
  }
210
+ /**
211
+ * 开通服务
212
+ */
213
+ async ActivateService(req, cb) {
214
+ return this.request("ActivateService", req, cb);
215
+ }
216
+ /**
217
+ * 删除术语条目。
218
+ */
219
+ async DeleteGlossaryEntry(req, cb) {
220
+ return this.request("DeleteGlossaryEntry", req, cb);
221
+ }
222
+ /**
223
+ * 文件列表。
224
+ */
225
+ async FilesList(req, cb) {
226
+ return this.request("FilesList", req, cb);
227
+ }
228
+ /**
229
+ * 混元生图(多轮对话)接口基于混元大模型,将根据输入的文本描述生成图像,支持通过多轮对话的方式不断调整图像内容。分为提交任务和查询任务2个接口。
230
+ 提交任务:输入文本和前置对话 ID 等,提交一个混元生图多轮对话异步任务,获得任务 ID。
231
+ 查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得在上一轮对话基础上继续生成的图像结果。
232
+ 混元生图(多轮对话)默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
233
+ */
234
+ async SubmitHunyuanImageChatJob(req, cb) {
235
+ return this.request("SubmitHunyuanImageChatJob", req, cb);
236
+ }
237
+ /**
238
+ * 如需使用OpenAI兼容接口, 请参考文档:[OpenAI 兼容接口](https://cloud.tencent.com/document/product/1729/111007)
239
+
240
+ 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
241
+
242
+ 1. 本接口暂不支持返回图片内容。
243
+ 2. 默认该接口下单账号限制并发数为 5 路,如您有提高并发限制的需求请 [购买](https://buy.cloud.tencent.com/hunyuan) 。
244
+ 3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。
245
+ 4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。
246
+ */
247
+ async ChatCompletions(req, cb) {
248
+ return this.request("ChatCompletions", req, cb);
249
+ }
250
+ /**
251
+ * 该接口用于计算文本对应Token数、字符数。
252
+ */
253
+ async GetTokenCount(req, cb) {
254
+ return this.request("GetTokenCount", req, cb);
255
+ }
208
256
  /**
209
257
  * 文生图轻量版接口根据输入的文本描述,智能生成与之相关的结果图。
210
258
  文生图轻量版默认提供3个并发任务数,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
@@ -212,11 +260,5 @@ class Client extends abstract_client_1.AbstractClient {
212
260
  async TextToImageLite(req, cb) {
213
261
  return this.request("TextToImageLite", req, cb);
214
262
  }
215
- /**
216
- * 开通服务
217
- */
218
- async ActivateService(req, cb) {
219
- return this.request("ActivateService", req, cb);
220
- }
221
263
  }
222
264
  exports.Client = Client;