tencentcloud-sdk-nodejs-lke 4.1.2 → 4.1.8
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/README.md
CHANGED
|
@@ -44,11 +44,19 @@ npm install tencentcloud-sdk-nodejs-vpc --save
|
|
|
44
44
|
|
|
45
45
|
### 安装全产品 SDK
|
|
46
46
|
|
|
47
|
+
如果项目依赖的云产品较多,可以引入全产品 SDK。
|
|
48
|
+
|
|
47
49
|
```
|
|
48
50
|
npm install tencentcloud-sdk-nodejs --save
|
|
49
51
|
```
|
|
50
52
|
|
|
51
|
-
全产品 SDK
|
|
53
|
+
全产品 SDK 包含所有云产品调用代码和 TypeScript 类型文件,体积偏大。对于体积敏感的场景,推荐安装指定产品 SDK。
|
|
54
|
+
|
|
55
|
+
如果既希望全产品调用,又对包体积比较敏感,可以使用 Slim 版本 SDK。Slim SDK 移除类型文件,并进行了代码压缩,适合体积敏感场景使用:
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
npm install tencentcloud-sdk-slim-nodejs --save
|
|
59
|
+
```
|
|
52
60
|
|
|
53
61
|
## 通过源码包安装
|
|
54
62
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tencentcloud-sdk-nodejs-lke",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.8",
|
|
4
4
|
"description": "腾讯云 API NODEJS SDK",
|
|
5
5
|
"main": "./tencentcloud/index.js",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"build": "concurrently 'npm:build:cjs' 'npm:build:es'",
|
|
11
11
|
"build:cjs": "tsc -p tsconfig.json",
|
|
12
12
|
"build:es": "tsc -p tsconfig.es.json",
|
|
13
|
+
"build:slim": "node ./scripts/build_slim.js",
|
|
13
14
|
"prettier": "prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'",
|
|
14
15
|
"clean": "rimraf tencentcloud es"
|
|
15
16
|
},
|
|
@@ -53,6 +54,7 @@
|
|
|
53
54
|
"babel-eslint": "^10.0.2",
|
|
54
55
|
"chai": "^4.2.0",
|
|
55
56
|
"concurrently": "^6.5.1",
|
|
57
|
+
"esbuild": "^0.25.0",
|
|
56
58
|
"eslint": "^6.8.0",
|
|
57
59
|
"eslint-plugin-react": "^7.17.0",
|
|
58
60
|
"mocha": "^8.4.0",
|
|
@@ -306,8 +306,8 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
306
306
|
/**
|
|
307
307
|
* 知识库文档问答保存。
|
|
308
308
|
将文件存储到应用的知识库内需要三步:
|
|
309
|
-
1.获取临时密钥,参考[接口文档](https://cloud.tencent.com/document/product/1759/105050)
|
|
310
|
-
2.调用腾讯云提供的 cos 存储接口,将文件存储到知识引擎 cos
|
|
309
|
+
1.获取临时密钥,参考[接口文档](https://cloud.tencent.com/document/product/1759/105050)。获取临时密钥不同参数组合权限不一样,可参考 [知识引擎操作 cos 指南](https://cloud.tencent.com/document/product/1759/116238)
|
|
310
|
+
2.调用腾讯云提供的 cos 存储接口,将文件存储到知识引擎 cos 中:具体可参考[ COS SDK 概览](https://cloud.tencent.com/document/product/436/6474), 注意使用的是临时密钥的方式操作 COS
|
|
311
311
|
3.调用本接口,将文件的基础信息存储到知识引擎中。
|
|
312
312
|
以上步骤可参考[文档](https://cloud.tencent.com/document/product/1759/108903),文档最后有[代码demo](https://cloud.tencent.com/document/product/1759/108903#demo),可作为参考。
|
|
313
313
|
*/
|
|
@@ -474,8 +474,8 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
474
474
|
/**
|
|
475
475
|
* 知识库文档问答保存。
|
|
476
476
|
将文件存储到应用的知识库内需要三步:
|
|
477
|
-
1.获取临时密钥,参考[接口文档](https://cloud.tencent.com/document/product/1759/105050)
|
|
478
|
-
2.调用腾讯云提供的 cos 存储接口,将文件存储到知识引擎 cos
|
|
477
|
+
1.获取临时密钥,参考[接口文档](https://cloud.tencent.com/document/product/1759/105050)。获取临时密钥不同参数组合权限不一样,可参考 [知识引擎操作 cos 指南](https://cloud.tencent.com/document/product/1759/116238)
|
|
478
|
+
2.调用腾讯云提供的 cos 存储接口,将文件存储到知识引擎 cos 中:具体可参考[ COS SDK 概览](https://cloud.tencent.com/document/product/436/6474), 注意使用的是临时密钥的方式操作 COS
|
|
479
479
|
3.调用本接口,将文件的基础信息存储到知识引擎中。
|
|
480
480
|
以上步骤可参考[文档](https://cloud.tencent.com/document/product/1759/108903),文档最后有[代码demo](https://cloud.tencent.com/document/product/1759/108903#demo),可作为参考。
|
|
481
481
|
*/
|
|
@@ -140,8 +140,7 @@ export interface DescribeQAResponse {
|
|
|
140
140
|
*/
|
|
141
141
|
CustomParam?: string;
|
|
142
142
|
/**
|
|
143
|
-
* 来源
|
|
144
|
-
|
|
143
|
+
* 来源 1-文档生成问答对 2-批量导入问答对 3-单条手动录入问答对
|
|
145
144
|
*/
|
|
146
145
|
Source?: number;
|
|
147
146
|
/**
|
|
@@ -155,8 +154,7 @@ export interface DescribeQAResponse {
|
|
|
155
154
|
*/
|
|
156
155
|
UpdateTime?: string;
|
|
157
156
|
/**
|
|
158
|
-
* 状态
|
|
159
|
-
|
|
157
|
+
* 状态 <br>1-未校验 2-未发布 3-发布中 4-已发布 5-发布失败 6-不采纳 7-审核中 8-审核失败 9-审核失败申诉后人工审核中 11-审核失败申诉后人工审核不通过 12-已过期 13-超量失效 14-超量失效恢复 19-学习中 20-学习失败
|
|
160
158
|
*/
|
|
161
159
|
Status?: number;
|
|
162
160
|
/**
|
|
@@ -5217,7 +5215,7 @@ export interface ModelInfo {
|
|
|
5217
5215
|
*/
|
|
5218
5216
|
MaxTokens?: ModelParameter;
|
|
5219
5217
|
/**
|
|
5220
|
-
* 模型来源 Hunyuan:腾讯混元大模型,Industry:腾讯云行业大模型,Experience
|
|
5218
|
+
* 模型来源 Hunyuan:腾讯混元大模型,Industry:腾讯云行业大模型,Experience:新模型体验,Custom自定义模型
|
|
5221
5219
|
*/
|
|
5222
5220
|
Source?: string;
|
|
5223
5221
|
/**
|
|
@@ -5228,6 +5226,20 @@ export interface ModelInfo {
|
|
|
5228
5226
|
* 是否免费
|
|
5229
5227
|
*/
|
|
5230
5228
|
IsFree?: boolean;
|
|
5229
|
+
/**
|
|
5230
|
+
* 模型对话框可输入的上限
|
|
5231
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
5232
|
+
*/
|
|
5233
|
+
InputLenLimit?: number;
|
|
5234
|
+
/**
|
|
5235
|
+
* 支持工作流的类型 0:模型不支持; 1: 模型支持工作流; 2: 模型支持效果不佳;
|
|
5236
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
5237
|
+
*/
|
|
5238
|
+
SupportWorkflowStatus?: number;
|
|
5239
|
+
/**
|
|
5240
|
+
* 模型类别 generate:生成模型,thought:思考模型
|
|
5241
|
+
*/
|
|
5242
|
+
ModelCategory?: string;
|
|
5231
5243
|
}
|
|
5232
5244
|
/**
|
|
5233
5245
|
* DeleteRejectedQuestion请求参数结构体
|