tencentcloud-sdk-nodejs-intl-en 3.0.1371 → 3.0.1372

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-intl-en",
3
- "version": "3.0.1371",
3
+ "version": "3.0.1372",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,2 +1,2 @@
1
- const sdkVersion = "3.0.1371";
1
+ const sdkVersion = "3.0.1372";
2
2
  module.exports = sdkVersion
@@ -16,17 +16,21 @@
16
16
  */
17
17
  const models = require("./models");
18
18
  const AbstractClient = require('../../common/abstract_client')
19
+ const ChatCompletionsRequest = models.ChatCompletionsRequest;
19
20
  const CreateSplitDocumentFlowRequest = models.CreateSplitDocumentFlowRequest;
20
21
  const ReconstructDocumentSSEResponse = models.ReconstructDocumentSSEResponse;
21
22
  const GetEmbeddingRequest = models.GetEmbeddingRequest;
22
23
  const GetReconstructDocumentResultRequest = models.GetReconstructDocumentResultRequest;
23
24
  const Usage = models.Usage;
25
+ const Choice = models.Choice;
24
26
  const CreateSplitDocumentFlowResponse = models.CreateSplitDocumentFlowResponse;
25
27
  const ReconstructDocumentSSEConfig = models.ReconstructDocumentSSEConfig;
26
28
  const DocumentUsage = models.DocumentUsage;
27
29
  const GetReconstructDocumentResultResponse = models.GetReconstructDocumentResultResponse;
28
30
  const CreateReconstructDocumentFlowConfig = models.CreateReconstructDocumentFlowConfig;
29
31
  const RunRerankRequest = models.RunRerankRequest;
32
+ const ChatUsage = models.ChatUsage;
33
+ const Delta = models.Delta;
30
34
  const ReconstructDocumentSSERequest = models.ReconstructDocumentSSERequest;
31
35
  const CreateReconstructDocumentFlowRequest = models.CreateReconstructDocumentFlowRequest;
32
36
  const GetSplitDocumentResultResponse = models.GetSplitDocumentResultResponse;
@@ -37,10 +41,12 @@ const QueryRewriteRequest = models.QueryRewriteRequest;
37
41
  const CreateSplitDocumentFlowConfig = models.CreateSplitDocumentFlowConfig;
38
42
  const RunRerankResponse = models.RunRerankResponse;
39
43
  const CreateReconstructDocumentFlowResponse = models.CreateReconstructDocumentFlowResponse;
44
+ const QueryRewriteResponse = models.QueryRewriteResponse;
40
45
  const GetSplitDocumentResultRequest = models.GetSplitDocumentResultRequest;
41
46
  const EmbeddingObject = models.EmbeddingObject;
42
47
  const Message = models.Message;
43
- const QueryRewriteResponse = models.QueryRewriteResponse;
48
+ const ErrorInfo = models.ErrorInfo;
49
+ const ChatCompletionsResponse = models.ChatCompletionsResponse;
44
50
 
45
51
 
46
52
  /**
@@ -53,6 +59,18 @@ class LkeapClient extends AbstractClient {
53
59
  super("lkeap.intl.tencentcloudapi.com", "2024-05-22", credential, region, profile);
54
60
  }
55
61
 
62
+ /**
63
+ * QueryRewrite is mainly used in multi-round conversations for reference resolution and ellipsis completion. Using this API, you don't need to input prompt descriptions. A more accurate user query can be generated based on the conversation history. In terms of application scenarios, this API can be applied to various scenarios such as intelligent Q&A and conversational search.
64
+ There is a call limit for single-account for this API. If you need to increase the concurrency limit, please contact us (https://cloud.tencent.com/act/event/Online_service).
65
+ * @param {QueryRewriteRequest} req
66
+ * @param {function(string, QueryRewriteResponse):void} cb
67
+ * @public
68
+ */
69
+ QueryRewrite(req, cb) {
70
+ let resp = new QueryRewriteResponse();
71
+ this.request("QueryRewrite", req, resp, cb);
72
+ }
73
+
56
74
  /**
57
75
  * This API is used to initiate requests for this asynchronous API, for initiating document parsing tasks.
58
76
  Document parsing supports converting images or PDF files into Markdown format files, and can parse content elements including tables, formulas, images, headings, paragraphs, headers, and footers, and intelligently convert the content into reading order. Please refer to the input parameter list below for specific supported file types.
@@ -78,15 +96,14 @@ During the trial period, the QPS limit for a single account is only 1. If you ne
78
96
  }
79
97
 
80
98
  /**
81
- * QueryRewrite is mainly used in multi-round conversations for reference resolution and ellipsis completion. Using this API, you don't need to input prompt descriptions. A more accurate user query can be generated based on the conversation history. In terms of application scenarios, this API can be applied to various scenarios such as intelligent Q&A and conversational search.
82
- There is a call limit for single-account for this API. If you need to increase the concurrency limit, please contact us (https://cloud.tencent.com/act/event/Online_service).
83
- * @param {QueryRewriteRequest} req
84
- * @param {function(string, QueryRewriteResponse):void} cb
99
+ * This API is used to create document segmentation tasks, support various file types, possess mllm capacity, and can analyze and deeply understand the information in charts.
100
+ * @param {CreateSplitDocumentFlowRequest} req
101
+ * @param {function(string, CreateSplitDocumentFlowResponse):void} cb
85
102
  * @public
86
103
  */
87
- QueryRewrite(req, cb) {
88
- let resp = new QueryRewriteResponse();
89
- this.request("QueryRewrite", req, resp, cb);
104
+ CreateSplitDocumentFlow(req, cb) {
105
+ let resp = new CreateSplitDocumentFlowResponse();
106
+ this.request("CreateSplitDocumentFlow", req, resp, cb);
90
107
  }
91
108
 
92
109
  /**
@@ -123,14 +140,14 @@ There is a call limit for single-account for this API. If you need to increase t
123
140
  }
124
141
 
125
142
  /**
126
- * This API is used to create document segmentation tasks, support various file types, possess mllm capacity, and can analyze and deeply understand the information in charts.
127
- * @param {CreateSplitDocumentFlowRequest} req
128
- * @param {function(string, CreateSplitDocumentFlowResponse):void} cb
143
+ * ### API Features Call the API to initiate a chat request. The concurrency limit for API calls of a single account is 5. To use OpenAI compatible APIs, please refer to [Deepseek OpenAI Chat API](https://cloud.tencent.com/document/product/1772/115969) #### Online Experience If you want to directly experience the DeepSeek model on the web page, it is recommended that you go to [Tencent Cloud TI-AppStudio](https://cloud.tencent.com/product/lke) and use [ DeepSeek Online Assistant](https://lke.cloud.tencent.com/webim_exp/#/chat/wQrAwR). #### Supported models - DeepSeek-V3-0324 (parameter value of model is **deepseek-v3-0324**) - DeepSeek-V3-0324 is a 671B parameter MoE model with outstanding advantages in programming and technical capabilities, context understanding, and long text processing. - Supports 64K context length, maximum input 56K, maximum output 8K (excluding thought chain). - Note: Compared with DeepSeek-V3, DeepSeek-V3-0324 only updated the model weights without increasing the number of parameters. The total model size is 685B, including 671B of main model weights and 14B of multi-token prediction (MTP) module weights. Subsequently, the main model parameter count will be described. - DeepSeek-V3 (model parameter value: **deepseek-v3**) - DeepSeek-V3 is a 671B parameter MoE model with outstanding advantages in multiple tasks such as encyclopedic knowledge and math reasoning. Its evaluation scores rank first among open-source models on mainstream ranked lists. - Supports 64K context length, maximum input 56K, maximum output 8K (excluding thought chain). - DeepSeek-R1 (model parameter value: **deepseek-r1**) - DeepSeek-R1 is a 671B model trained with reinforcement learning. The reasoning process includes a large amount of reflection and verification, and the length of the thought chain can reach tens of thousands of characters. This series of models has excellent reasoning effectiveness in math, coding, and various complex logic reasoning tasks, and displays the complete thinking process for users. - Supports 64K context length, maximum input 56K, maximum output 8K (excluding thought chain). ### Billing Description - Standard billing (effective from February 26, 2025). The billing mode is postpaid hourly settlement. To ensure the normal use of your account resources, please [open postpaid](https://lke.cloud.tencent.com/lke#/app/system/charge/postpaid) in advance and [recharge](https://console.cloud.tencent.com/expense/recharge) in time. - DeepSeek-R1 model | Input: 0.004 CNY/thousand tokens | Output (including thought chain): 0.016 CNY/thousand tokens. - DeepSeek-V3 model | Input: 0.002 CNY/thousand tokens | Output: 0.008 CNY/thousand tokens. - DeepSeek-V3-0324 model | Input: 0.002 CNY/thousand tokens | Output: 0.008 CNY/thousand tokens. ### OpenAI Compatible Protocol API The Knowledge Engine Atomic Power Large Model Dialogue API is compatible with the interface specifications of OpenAI, which means you can directly use the SDK officially provided by OpenAI to call the large model chat API. You only need to replace base_url and [api_key](https://intl.cloud.tencent.com/document/product/1772/115970) with relevant configuration. No additional modifications to your application are required. You can seamlessly switch your application to the corresponding large model. Please refer to the documentation: [Deepseek OpenAI Chat API](https://cloud.tencent.com/document/product/1772/115969). > base_url: https://api.lkeap.cloud.tencent.com/v1 > To obtain api_key, please refer to [API KEY Management](https://cloud.tencent.com/document/product/1772/115970) ### Quick Access 1. Complete [real-name authentication](https://console.cloud.tencent.com/developer/auth). 2. Go to [Console](https://console.cloud.tencent.com/lkeap) to activate the service for the master account. If it is a sub-account, it needs to be authorized by the main account in [Permission Management](https://console.cloud.tencent.com/cam), and associated with a preset policy. Policy name: QcloudLKEAPFullAccess. 3. Debug the API online through API Explorer (https://console.cloud.tencent.com/api/explorer?Product=lkeap&Version=2024-05-22&Action=ChatCompletions). 4. Use [official SDK ](https://cloud.tencent.com/document/product/1772/115963#SDK) to call this API (Python/Java/PHP/Go/Node.js/. NET and other languages are supported). ----------- ### SDK Call Example Call this API through local code (support languages such as Python, Java, PHP, Go, Node.js, .NET): The following code takes Python as an example to show how to access the DeepSeek model API on Tencent Cloud. (1) Install environment ``` python3 -m pip install --upgrade tencentcloud-sdk-python-common python3 -m pip install --upgrade tencentcloud-sdk-python-lkeap ``` (2) Sample code - Among them, SecretKey and SecretID need to be obtained from the Tencent Cloud console. - The field "Model" in the parameter "params" can be set to "deepseek-r1" or "deepseek-v3". ``` # -*- coding: utf-8 -*- import json from tencentcloud.common.common_client import CommonClient from tencentcloud.common import credential from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException from tencentcloud.common.profile.client_profile import ClientProfile from tencentcloud.common.profile.http_profile import HttpProfile class NonStreamResponse(object): def __init__(self): self.response = "" def _deserialize(self, obj): self.response = json.dumps(obj) try: # Instantiate an authentication object. Input parameters are required, including the Tencent Cloud account SecretId and SecretKey. Here, you also need to pay attention to keeping the confidentiality of the key pair. # Code leakage may lead to the leakage of SecretId and SecretKey and threaten the security of all resources under the account. The following code examples are for reference only. It is recommended to use keys in a more secure way. Please refer to: https://cloud.tencent.com/document/product/1278/85305 # Obtain the key in the official website console at https://console.cloud.tencent.com/cam/capi cred = credential.Credential("", "") httpProfile = HttpProfile() httpProfile.endpoint = "lkeap.tencentcloudapi.com" httpProfile.reqTimeout = 40000 # The streaming API may take a longer time. clientProfile = ClientProfile() clientProfile.httpProfile = httpProfile params = "{\"Model\":\"deepseek-r1\",\"Messages\":[{\"Role\":\"user\",\"Content\":\"Hello\"}],\"Stream\":true}"; common_client = CommonClient("lkeap", "2024-05-22", cred, "ap-guangzhou", profile=clientProfile) resp = common_client._call_and_deserialize("ChatCompletions", json.loads(params), NonStreamResponse) if isinstance(resp, NonStreamResponse): # Non-streaming response print(resp.response) else: # Streaming response for event in resp: print(event) except TencentCloudSDKException as err: print(err) ``` **DeepSeek-R1 usage recommendations** 1. Set the temperature in the range of 0.5-0.7 (0.6 is recommended) to prevent endless repetition or incoherent output. 2. Avoid adding system prompts. All descriptions should be included in user prompts.
144
+ * @param {ChatCompletionsRequest} req
145
+ * @param {function(string, ChatCompletionsResponse):void} cb
129
146
  * @public
130
147
  */
131
- CreateSplitDocumentFlow(req, cb) {
132
- let resp = new CreateSplitDocumentFlowResponse();
133
- this.request("CreateSplitDocumentFlow", req, resp, cb);
148
+ ChatCompletions(req, cb) {
149
+ let resp = new ChatCompletionsResponse();
150
+ this.request("ChatCompletions", req, resp, cb);
134
151
  }
135
152
 
136
153
  /**
@@ -16,6 +16,82 @@
16
16
  */
17
17
  const AbstractModel = require("../../common/abstract_model");
18
18
 
19
+ /**
20
+ * ChatCompletions request structure.
21
+ * @class
22
+ */
23
+ class ChatCompletionsRequest extends AbstractModel {
24
+ constructor(){
25
+ super();
26
+
27
+ /**
28
+ * Model name.
29
+ * @type {string || null}
30
+ */
31
+ this.Model = null;
32
+
33
+ /**
34
+ * Chat contextual information.
35
+ Description:
36
+ 1. Length: up to 40. Arranged in array from old to new by conversation time.
37
+ 2. Message.Role: system, user, assistant. Optional.
38
+ Among them, the system role is optional. If it exists, it must be at the beginning of the list. User and assistant need to alternate, starting with a user question and ending with a user question. Content cannot be empty. An example of the order of roles: [system (optional) user assistant user assistant user...].
39
+
40
+ * @type {Array.<Message> || null}
41
+ */
42
+ this.Messages = null;
43
+
44
+ /**
45
+ * Whether it is streaming output.
46
+ * @type {boolean || null}
47
+ */
48
+ this.Stream = null;
49
+
50
+ /**
51
+ * Controls the randomness of the generated content. a relatively high value generates more diversified output.
52
+ * @type {number || null}
53
+ */
54
+ this.Temperature = null;
55
+
56
+ /**
57
+ * Maximum number of generated tokens.
58
+ * @type {number || null}
59
+ */
60
+ this.MaxTokens = null;
61
+
62
+ /**
63
+ *
64
+ * @type {boolean || null}
65
+ */
66
+ this.EnableSearch = null;
67
+
68
+ }
69
+
70
+ /**
71
+ * @private
72
+ */
73
+ deserialize(params) {
74
+ if (!params) {
75
+ return;
76
+ }
77
+ this.Model = 'Model' in params ? params.Model : null;
78
+
79
+ if (params.Messages) {
80
+ this.Messages = new Array();
81
+ for (let z in params.Messages) {
82
+ let obj = new Message();
83
+ obj.deserialize(params.Messages[z]);
84
+ this.Messages.push(obj);
85
+ }
86
+ }
87
+ this.Stream = 'Stream' in params ? params.Stream : null;
88
+ this.Temperature = 'Temperature' in params ? params.Temperature : null;
89
+ this.MaxTokens = 'MaxTokens' in params ? params.MaxTokens : null;
90
+ this.EnableSearch = 'EnableSearch' in params ? params.EnableSearch : null;
91
+
92
+ }
93
+ }
94
+
19
95
  /**
20
96
  * CreateSplitDocumentFlow request structure.
21
97
  * @class
@@ -320,6 +396,67 @@ class Usage extends AbstractModel {
320
396
  }
321
397
  }
322
398
 
399
+ /**
400
+ * The returned response. Supports multiple responses.
401
+ * @class
402
+ */
403
+ class Choice extends AbstractModel {
404
+ constructor(){
405
+ super();
406
+
407
+ /**
408
+ * The end flag, which can be "stop" or "content_filter."
409
+ "Stop" indicates normal output end.
410
+ "Content_filter" appears only when streaming output review is enabled, indicating that the security review has not passed.
411
+ * @type {string || null}
412
+ */
413
+ this.FinishReason = null;
414
+
415
+ /**
416
+ * Incremental return value, used when making streaming calls.
417
+ * @type {Delta || null}
418
+ */
419
+ this.Delta = null;
420
+
421
+ /**
422
+ * Return value, used when making non-streaming calls.
423
+ * @type {Message || null}
424
+ */
425
+ this.Message = null;
426
+
427
+ /**
428
+ * Index value, used when making streaming calls.
429
+ * @type {number || null}
430
+ */
431
+ this.Index = null;
432
+
433
+ }
434
+
435
+ /**
436
+ * @private
437
+ */
438
+ deserialize(params) {
439
+ if (!params) {
440
+ return;
441
+ }
442
+ this.FinishReason = 'FinishReason' in params ? params.FinishReason : null;
443
+
444
+ if (params.Delta) {
445
+ let obj = new Delta();
446
+ obj.deserialize(params.Delta)
447
+ this.Delta = obj;
448
+ }
449
+
450
+ if (params.Message) {
451
+ let obj = new Message();
452
+ obj.deserialize(params.Message)
453
+ this.Message = obj;
454
+ }
455
+ this.Index = 'Index' in params ? params.Index : null;
456
+
457
+ }
458
+ }
459
+
323
460
  /**
324
461
  * CreateSplitDocumentFlow response structure.
325
462
  * @class
@@ -484,6 +621,18 @@ class GetReconstructDocumentResultResponse extends AbstractModel {
484
621
  */
485
622
  this.FailedPages = null;
486
623
 
624
+ /**
625
+ * Amount of document parsing task.
626
+ * @type {DocumentUsage || null}
627
+ */
628
+ this.Usage = null;
629
+
630
+ /**
631
+ * Error message for failed document parsing task. When a document parsing task fails, a specific error message will be returned.
632
+ * @type {ErrorInfo || null}
633
+ */
634
+ this.Error = null;
635
+
487
636
  /**
488
637
  * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
489
638
  * @type {string || null}
@@ -510,6 +659,18 @@ class GetReconstructDocumentResultResponse extends AbstractModel {
510
659
  this.FailedPages.push(obj);
511
660
  }
512
661
  }
662
+
663
+ if (params.Usage) {
664
+ let obj = new DocumentUsage();
665
+ obj.deserialize(params.Usage)
666
+ this.Usage = obj;
667
+ }
668
+
669
+ if (params.Error) {
670
+ let obj = new ErrorInfo();
671
+ obj.deserialize(params.Error)
672
+ this.Error = obj;
673
+ }
513
674
  this.RequestId = 'RequestId' in params ? params.RequestId : null;
514
675
 
515
676
  }
@@ -601,6 +762,90 @@ class RunRerankRequest extends AbstractModel {
601
762
  }
602
763
  }
603
764
 
765
+ /**
766
+ * Consumption.
767
+ * @class
768
+ */
769
+ class ChatUsage extends AbstractModel {
770
+ constructor(){
771
+ super();
772
+
773
+ /**
774
+ * Number of input tokens.
775
+ * @type {number || null}
776
+ */
777
+ this.PromptTokens = null;
778
+
779
+ /**
780
+ * Number of output tokens.
781
+ * @type {number || null}
782
+ */
783
+ this.CompletionTokens = null;
784
+
785
+ /**
786
+ * Total number of tokens.
787
+ * @type {number || null}
788
+ */
789
+ this.TotalTokens = null;
790
+
791
+ }
792
+
793
+ /**
794
+ * @private
795
+ */
796
+ deserialize(params) {
797
+ if (!params) {
798
+ return;
799
+ }
800
+ this.PromptTokens = 'PromptTokens' in params ? params.PromptTokens : null;
801
+ this.CompletionTokens = 'CompletionTokens' in params ? params.CompletionTokens : null;
802
+ this.TotalTokens = 'TotalTokens' in params ? params.TotalTokens : null;
803
+
804
+ }
805
+ }
806
+
807
+ /**
808
+ * Returned content.
809
+ * @class
810
+ */
811
+ class Delta extends AbstractModel {
812
+ constructor(){
813
+ super();
814
+
815
+ /**
816
+ * Role name.
817
+ * @type {string || null}
818
+ */
819
+ this.Role = null;
820
+
821
+ /**
822
+ * Content details.
823
+ * @type {string || null}
824
+ */
825
+ this.Content = null;
826
+
827
+ /**
828
+ * Chain of thought content. The ReasoningConent parameter only supports output parameters, and is only returned by the deepseek-r1 model.
829
+ * @type {string || null}
830
+ */
831
+ this.ReasoningContent = null;
832
+
833
+ }
834
+
835
+ /**
836
+ * @private
837
+ */
838
+ deserialize(params) {
839
+ if (!params) {
840
+ return;
841
+ }
842
+ this.Role = 'Role' in params ? params.Role : null;
843
+ this.Content = 'Content' in params ? params.Content : null;
844
+ this.ReasoningContent = 'ReasoningContent' in params ? params.ReasoningContent : null;
845
+
846
+ }
847
+ }
848
+
604
849
  /**
605
850
  * ReconstructDocumentSSE request structure.
606
851
  * @class
@@ -1119,6 +1364,53 @@ class CreateReconstructDocumentFlowResponse extends AbstractModel {
1119
1364
  }
1120
1365
  }
1121
1366
 
1367
+ /**
1368
+ * QueryRewrite response structure.
1369
+ * @class
1370
+ */
1371
+ class QueryRewriteResponse extends AbstractModel {
1372
+ constructor(){
1373
+ super();
1374
+
1375
+ /**
1376
+ * Rewritten result.
1377
+ * @type {string || null}
1378
+ */
1379
+ this.Content = null;
1380
+
1381
+ /**
1382
+ * Consumption. The numbers of input tokens, output tokens, and total tokens will be returned.
1383
+ * @type {Usage || null}
1384
+ */
1385
+ this.Usage = null;
1386
+
1387
+ /**
1388
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
1389
+ * @type {string || null}
1390
+ */
1391
+ this.RequestId = null;
1392
+
1393
+ }
1394
+
1395
+ /**
1396
+ * @private
1397
+ */
1398
+ deserialize(params) {
1399
+ if (!params) {
1400
+ return;
1401
+ }
1402
+ this.Content = 'Content' in params ? params.Content : null;
1403
+
1404
+ if (params.Usage) {
1405
+ let obj = new Usage();
1406
+ obj.deserialize(params.Usage)
1407
+ this.Usage = obj;
1408
+ }
1409
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
1410
+
1411
+ }
1412
+ }
1413
+
1122
1414
  /**
1123
1415
  * GetSplitDocumentResult request structure.
1124
1416
  * @class
@@ -1218,27 +1510,81 @@ class Message extends AbstractModel {
1218
1510
  }
1219
1511
 
1220
1512
  /**
1221
- * QueryRewrite response structure.
1513
+ *
1222
1514
  * @class
1223
1515
  */
1224
- class QueryRewriteResponse extends AbstractModel {
1516
+ class ErrorInfo extends AbstractModel {
1225
1517
  constructor(){
1226
1518
  super();
1227
1519
 
1228
1520
  /**
1229
- * Rewritten result.
1521
+ *
1230
1522
  * @type {string || null}
1231
1523
  */
1232
- this.Content = null;
1524
+ this.Code = null;
1233
1525
 
1234
1526
  /**
1235
- * Consumption. The numbers of input tokens, output tokens, and total tokens will be returned.
1236
- * @type {Usage || null}
1527
+ *
1528
+ * @type {string || null}
1529
+ */
1530
+ this.Message = null;
1531
+
1532
+ }
1533
+
1534
+ /**
1535
+ * @private
1536
+ */
1537
+ deserialize(params) {
1538
+ if (!params) {
1539
+ return;
1540
+ }
1541
+ this.Code = 'Code' in params ? params.Code : null;
1542
+ this.Message = 'Message' in params ? params.Message : null;
1543
+
1544
+ }
1545
+ }
1546
+
1547
+ /**
1548
+ * ChatCompletions response structure.
1549
+ * @class
1550
+ */
1551
+ class ChatCompletionsResponse extends AbstractModel {
1552
+ constructor(){
1553
+ super();
1554
+
1555
+ /**
1556
+ * Unix timestamp, in seconds.
1557
+ * @type {number || null}
1558
+ */
1559
+ this.Created = null;
1560
+
1561
+ /**
1562
+ * Token statistical information.
1563
+ Charges are based on the total Token quantity.
1564
+ * @type {ChatUsage || null}
1237
1565
  */
1238
1566
  this.Usage = null;
1239
1567
 
1240
1568
  /**
1241
- * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
1569
+ * RequestId for this request.
1570
+ * @type {string || null}
1571
+ */
1572
+ this.Id = null;
1573
+
1574
+ /**
1575
+ * Response content.
1576
+ * @type {Array.<Choice> || null}
1577
+ */
1578
+ this.Choices = null;
1579
+
1580
+ /**
1581
+ * Model name.
1582
+ * @type {string || null}
1583
+ */
1584
+ this.Model = null;
1585
+
1586
+ /**
1587
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. As a streaming response API, when the request is successfully completed, the RequestId will be placed in the Header "X-TC-RequestId" of the HTTP response.
1242
1588
  * @type {string || null}
1243
1589
  */
1244
1590
  this.RequestId = null;
@@ -1252,30 +1598,45 @@ class QueryRewriteResponse extends AbstractModel {
1252
1598
  if (!params) {
1253
1599
  return;
1254
1600
  }
1255
- this.Content = 'Content' in params ? params.Content : null;
1601
+ this.Created = 'Created' in params ? params.Created : null;
1256
1602
 
1257
1603
  if (params.Usage) {
1258
- let obj = new Usage();
1604
+ let obj = new ChatUsage();
1259
1605
  obj.deserialize(params.Usage)
1260
1606
  this.Usage = obj;
1261
1607
  }
1608
+ this.Id = 'Id' in params ? params.Id : null;
1609
+
1610
+ if (params.Choices) {
1611
+ this.Choices = new Array();
1612
+ for (let z in params.Choices) {
1613
+ let obj = new Choice();
1614
+ obj.deserialize(params.Choices[z]);
1615
+ this.Choices.push(obj);
1616
+ }
1617
+ }
1618
+ this.Model = 'Model' in params ? params.Model : null;
1262
1619
  this.RequestId = 'RequestId' in params ? params.RequestId : null;
1263
1620
 
1264
1621
  }
1265
1622
  }
1266
1623
 
1267
1624
  module.exports = {
1625
+ ChatCompletionsRequest: ChatCompletionsRequest,
1268
1626
  CreateSplitDocumentFlowRequest: CreateSplitDocumentFlowRequest,
1269
1627
  ReconstructDocumentSSEResponse: ReconstructDocumentSSEResponse,
1270
1628
  GetEmbeddingRequest: GetEmbeddingRequest,
1271
1629
  GetReconstructDocumentResultRequest: GetReconstructDocumentResultRequest,
1272
1630
  Usage: Usage,
1631
+ Choice: Choice,
1273
1632
  CreateSplitDocumentFlowResponse: CreateSplitDocumentFlowResponse,
1274
1633
  ReconstructDocumentSSEConfig: ReconstructDocumentSSEConfig,
1275
1634
  DocumentUsage: DocumentUsage,
1276
1635
  GetReconstructDocumentResultResponse: GetReconstructDocumentResultResponse,
1277
1636
  CreateReconstructDocumentFlowConfig: CreateReconstructDocumentFlowConfig,
1278
1637
  RunRerankRequest: RunRerankRequest,
1638
+ ChatUsage: ChatUsage,
1639
+ Delta: Delta,
1279
1640
  ReconstructDocumentSSERequest: ReconstructDocumentSSERequest,
1280
1641
  CreateReconstructDocumentFlowRequest: CreateReconstructDocumentFlowRequest,
1281
1642
  GetSplitDocumentResultResponse: GetSplitDocumentResultResponse,
@@ -1286,9 +1647,11 @@ module.exports = {
1286
1647
  CreateSplitDocumentFlowConfig: CreateSplitDocumentFlowConfig,
1287
1648
  RunRerankResponse: RunRerankResponse,
1288
1649
  CreateReconstructDocumentFlowResponse: CreateReconstructDocumentFlowResponse,
1650
+ QueryRewriteResponse: QueryRewriteResponse,
1289
1651
  GetSplitDocumentResultRequest: GetSplitDocumentResultRequest,
1290
1652
  EmbeddingObject: EmbeddingObject,
1291
1653
  Message: Message,
1292
- QueryRewriteResponse: QueryRewriteResponse,
1654
+ ErrorInfo: ErrorInfo,
1655
+ ChatCompletionsResponse: ChatCompletionsResponse,
1293
1656
 
1294
1657
  }
@@ -32031,7 +32031,7 @@ class ExportZoneConfigRequest extends AbstractModel {
32031
32031
  this.ZoneId = null;
32032
32032
 
32033
32033
  /**
32034
- * Export the type list of configuration items. Leave it blank to export all types of configurations. Currently supported values include: <li>L7AccelerationConfig: means exporting the Layer-7 acceleration configuration, corresponding to the console "Site Acceleration - Global Acceleration Configuration" and "Site Acceleration - Rule Engine".</li><li>WebSecurity: refers to exporting the Web protection configuration.</li> Note: Types supported for future export will increase with iterations. When exporting all types, pay attention to export file size. It is recommended to specify the configuration types to be exported to control the request and response packet payload size.
32034
+ * Export the type list of configuration items. Leave it blank to export all types of configurations. Currently supported values include: <li>L7AccelerationConfig: Exporting the Layer-7 acceleration configuration, corresponding to the console "Site Acceleration - Global Acceleration Configuration" and "Site Acceleration - Rule Engine".</li><li>WebSecurity: Exporting the web protection configuration.</li><li>AccelerationDomain: Exporting the acceleration domain configuration, corresponding to the console "DNS - Domain Name Management" and "DNS - Shared CNAME Management".</li><li>Origin: Exporting the origin configuration, corresponding to the console "Origin Configuration - Origin Group" and "Origin Configuration - Load Balancing".</li> Note: Types supported for future export will increase with iterations. When exporting all types, pay attention to export file size. It is recommended to specify the configuration types to be exported to control the request and response packet payload size.
32035
32035
  * @type {Array.<string> || null}
32036
32036
  */
32037
32037
  this.Types = null;
@@ -7513,7 +7513,7 @@ class SearchConditionInstanceNew extends AbstractModel {
7513
7513
  this.ExecutionSpace = null;
7514
7514
 
7515
7515
  /**
7516
- * Business Products, options: <DATA_DEV / DATA_QUALITY / DATA_INTEGRATION, default DATA_DEV. Non-empty. Default own project
7516
+ * Business Products, options: DATA_DEV, DATA_QUALITY, DATA_INTEGRATION, default DATA_DEV. Non-empty. Default own project
7517
7517
  * @type {string || null}
7518
7518
  */
7519
7519
  this.ProductName = null;