tencentcloud-sdk-nodejs-es 4.1.52 → 4.1.62

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-es",
3
- "version": "4.1.52",
3
+ "version": "4.1.62",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "./tencentcloud/index.js",
6
6
  "module": "./es/index.js",
@@ -159,6 +159,16 @@ export interface Usage {
159
159
  */
160
160
  TotalTokens?: number;
161
161
  }
162
+ /**
163
+ * 文档解析配置
164
+ */
165
+ export interface DocumentParseConfig {
166
+ /**
167
+ * 0:图片以链接形式返回
168
+ 1:返回图片中提取的文本内容
169
+ */
170
+ ImageResponseType?: number;
171
+ }
162
172
  /**
163
173
  * ParseDocument返回参数结构体
164
174
  */
@@ -242,6 +252,10 @@ export interface ChunkDocumentResponse {
242
252
  * 无
243
253
  */
244
254
  Chunks?: Array<Chunk>;
255
+ /**
256
+ * token消耗量
257
+ */
258
+ Usage?: Usage;
245
259
  /**
246
260
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
247
261
  */
@@ -347,6 +361,10 @@ export interface ChunkConfig {
347
361
  * 分隔符列表
348
362
  */
349
363
  Delimiters?: Array<string>;
364
+ /**
365
+ * 相邻切片重合字符数,需要小于分片长度
366
+ */
367
+ ChunkOverlap?: number;
350
368
  }
351
369
  /**
352
370
  * 会话内容,按对话时间从旧到新在数组中排列,长度受模型窗口大小限制。
@@ -388,6 +406,18 @@ export interface ParseDocument {
388
406
  支持的图片像素:单边介于20-10000px之间。
389
407
  */
390
408
  FileContent?: string;
409
+ /**
410
+ * 文档解析配置
411
+ */
412
+ DocumentParseConfig?: DocumentParseConfig;
413
+ /**
414
+ * 文档的起始页码
415
+ */
416
+ FileStartPageNumber?: number;
417
+ /**
418
+ * 文档的结束页码
419
+ */
420
+ FileEndPageNumber?: number;
391
421
  }
392
422
  /**
393
423
  * GetDocumentChunkResult返回参数结构体