tccli 3.0.1246.1__py2.py3-none-any.whl → 3.0.1248.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/aca/v20210323/api.json +9 -9
- tccli/services/autoscaling/v20180419/api.json +11 -0
- tccli/services/bh/v20230418/api.json +2 -2
- tccli/services/billing/v20180709/api.json +55 -1
- tccli/services/cam/v20190116/api.json +14 -14
- tccli/services/ccc/v20200210/api.json +61 -1
- tccli/services/clb/v20180317/api.json +29 -1
- tccli/services/clb/v20180317/examples.json +2 -2
- tccli/services/cloudapp/v20220530/api.json +43 -12
- tccli/services/cloudapp/v20220530/examples.json +1 -1
- tccli/services/cls/v20201016/api.json +20 -10
- tccli/services/cls/v20201016/examples.json +4 -4
- tccli/services/cynosdb/v20190107/api.json +64 -0
- tccli/services/cynosdb/v20190107/examples.json +1 -1
- tccli/services/dbbrain/v20210527/api.json +14 -5
- tccli/services/dc/v20180410/api.json +202 -171
- tccli/services/drm/v20181115/api.json +18 -7
- tccli/services/dts/v20211206/api.json +37 -1
- tccli/services/ecm/v20190719/api.json +17 -11
- tccli/services/ecm/v20190719/examples.json +1 -1
- tccli/services/emr/v20190103/api.json +639 -514
- tccli/services/emr/v20190103/examples.json +10 -10
- tccli/services/ess/v20201111/api.json +23 -4
- tccli/services/essbasic/v20210526/api.json +22 -3
- tccli/services/gaap/v20180529/api.json +12 -11
- tccli/services/gaap/v20180529/examples.json +2 -8
- tccli/services/gme/v20180711/api.json +110 -100
- tccli/services/gme/v20180711/examples.json +2 -2
- tccli/services/gwlb/v20240906/api.json +1 -1
- tccli/services/hai/hai_client.py +61 -8
- tccli/services/hai/v20230812/api.json +64 -2
- tccli/services/hai/v20230812/examples.json +10 -2
- tccli/services/hunyuan/v20230901/api.json +4 -4
- tccli/services/keewidb/v20220308/api.json +17 -17
- tccli/services/lcic/v20220817/api.json +111 -112
- tccli/services/lcic/v20220817/examples.json +40 -40
- tccli/services/lkeap/lkeap_client.py +53 -0
- tccli/services/lkeap/v20240522/api.json +91 -0
- tccli/services/lkeap/v20240522/examples.json +9 -1
- tccli/services/mongodb/v20180408/api.json +121 -78
- tccli/services/mongodb/v20180408/examples.json +5 -5
- tccli/services/mongodb/v20190725/api.json +234 -204
- tccli/services/mongodb/v20190725/examples.json +8 -8
- tccli/services/ocr/v20181119/api.json +17 -17
- tccli/services/ocr/v20181119/examples.json +15 -15
- tccli/services/postgres/postgres_client.py +106 -0
- tccli/services/postgres/v20170312/api.json +135 -0
- tccli/services/postgres/v20170312/examples.json +16 -0
- tccli/services/redis/v20180412/api.json +11 -11
- tccli/services/scf/v20180416/api.json +2 -2
- tccli/services/ssl/v20191205/api.json +7 -7
- tccli/services/ssl/v20191205/examples.json +71 -5
- tccli/services/tcb/v20180608/api.json +930 -719
- tccli/services/tcb/v20180608/examples.json +22 -22
- tccli/services/tcbr/v20220217/api.json +46 -13
- tccli/services/tcbr/v20220217/examples.json +2 -8
- tccli/services/tcr/v20190924/api.json +83 -78
- tccli/services/tcr/v20190924/examples.json +44 -44
- tccli/services/tdmq/tdmq_client.py +57 -4
- tccli/services/tdmq/v20200217/api.json +107 -0
- tccli/services/tdmq/v20200217/examples.json +8 -0
- tccli/services/tione/v20211111/api.json +23 -3
- tccli/services/trtc/v20190722/api.json +84 -82
- tccli/services/trtc/v20190722/examples.json +2 -2
- tccli/services/vdb/v20230616/api.json +2 -2
- tccli/services/vpc/v20170312/api.json +56 -33
- tccli/services/vpc/v20170312/examples.json +10 -10
- {tccli-3.0.1246.1.dist-info → tccli-3.0.1248.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1246.1.dist-info → tccli-3.0.1248.1.dist-info}/RECORD +73 -73
- {tccli-3.0.1246.1.dist-info → tccli-3.0.1248.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1246.1.dist-info → tccli-3.0.1248.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1246.1.dist-info → tccli-3.0.1248.1.dist-info}/license_files/LICENSE +0 -0
@@ -19,8 +19,8 @@
|
|
19
19
|
"BatchCreateGroupWithMembers": [
|
20
20
|
{
|
21
21
|
"document": "批量创建群组",
|
22
|
-
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: BatchCreateGroupWithMembers\n<公共请求参数>\n\n{\n \"SdkAppId\": 12345678,\n \"GroupBaseInfos\": [\n {\n \"GroupName\": \"test1\",\n \"TeacherId\": \"
|
23
|
-
"output": "{\n \"Response\": {\n \"GroupIds\": [\n \"
|
22
|
+
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: BatchCreateGroupWithMembers\n<公共请求参数>\n\n{\n \"SdkAppId\": 12345678,\n \"GroupBaseInfos\": [\n {\n \"GroupName\": \"test1\",\n \"TeacherId\": \"2i5WfUzRRC2Eb2uNmLNv96gzxCv\"\n },\n {\n \"GroupName\": \"test2\"\n }\n ],\n \"MemberIds\": [\n \"2d3FgsZRRB2EbRu5Cwe8Rd7R6Bc\",\n \"2aiT64yygupUJ5zrkRi2r3hh54x\"\n ]\n}",
|
23
|
+
"output": "{\n \"Response\": {\n \"GroupIds\": [\n \"2CvDgjRNjylAs\",\n \"BZB4iZc0F6ko\"\n ],\n \"RequestId\": \"e574aae1-lp02-4225-a2f8-9032h7199f5f0\"\n }\n}",
|
24
24
|
"title": "批量创建群组"
|
25
25
|
}
|
26
26
|
],
|
@@ -51,16 +51,16 @@
|
|
51
51
|
"BatchDescribeDocument": [
|
52
52
|
{
|
53
53
|
"document": "批量获取文档详情",
|
54
|
-
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: BatchDescribeDocument\n<公共请求参数>\n\n{\n \"SdkAppId\": 1,\n \"Page\": 0,\n \"Limit\": 0,\n \"Permission\": [\n 1\n ],\n \"Owner\": \"
|
55
|
-
"output": "{\n \"Response\": {\n \"Total\": 0,\n \"Documents\": [\n {\n \"DocumentId\": \"
|
54
|
+
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: BatchDescribeDocument\n<公共请求参数>\n\n{\n \"SdkAppId\": 1,\n \"Page\": 0,\n \"Limit\": 0,\n \"Permission\": [\n 1\n ],\n \"Owner\": \"2kJJBH6G1dfBFUJqXLh0Mg3ELLk\",\n \"Keyword\": \"hello\",\n \"DocumentId\": [\n \"cdockjkj\"\n ]\n}",
|
55
|
+
"output": "{\n \"Response\": {\n \"Total\": 0,\n \"Documents\": [\n {\n \"DocumentId\": \"dej45ee21\",\n \"DocumentUrl\": \"https://www.baidu.com/1.pdf\",\n \"DocumentName\": \"docddabc\",\n \"Owner\": \"2kJJBH6G1dfBFUJqXLh0Mg3ELLk\",\n \"SdkAppId\": 1,\n \"Permission\": 1,\n \"TranscodeResult\": \"success\",\n \"TranscodeType\": 1,\n \"TranscodeProgress\": 1,\n \"TranscodeState\": 1,\n \"TranscodeInfo\": \"llkjkjiijk\",\n \"DocumentType\": \"pdf\",\n \"DocumentSize\": 1,\n \"UpdateTime\": 1,\n \"Pages\": 1,\n \"Width\": 1,\n \"Height\": 1,\n \"Cover\": \"https://www.baidu.com/1.jpg\",\n \"Preview\": \"https://www.baidu.com/preview.jpg\",\n \"Resolution\": \"1280*720\",\n \"MinScaleResolution\": \"1280*720\"\n }\n ],\n \"RequestId\": \"2a117d109a0c533e5ecd37fc221ba7f7\"\n }\n}",
|
56
56
|
"title": "示例"
|
57
57
|
}
|
58
58
|
],
|
59
59
|
"BatchRegister": [
|
60
60
|
{
|
61
61
|
"document": "批量注册用户",
|
62
|
-
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: BatchRegister\n<公共请求参数>\n\n{\n \"Users\": [\n {\n \"SdkAppId\":
|
63
|
-
"output": "{\n \"Response\": {\n \"Users\": [\n {\n \"SdkAppId\":
|
62
|
+
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: BatchRegister\n<公共请求参数>\n\n{\n \"Users\": [\n {\n \"SdkAppId\": 13465287,\n \"Name\": \"userName\",\n \"OriginId\": \"use109\",\n \"Avatar\": \"http://user.com?pic=123\"\n }\n ]\n}",
|
63
|
+
"output": "{\n \"Response\": {\n \"Users\": [\n {\n \"SdkAppId\": 13465287,\n \"UserId\": \"2i5WfUzRRC2Eb2uNmLNv96gzxCv\",\n \"OriginId\": \"use109\"\n }\n ],\n \"RequestId\": \"e574aae1-lp02-4225-a2f8-9032h7199f5f0\"\n }\n}",
|
64
64
|
"title": "示例"
|
65
65
|
}
|
66
66
|
],
|
@@ -75,24 +75,24 @@
|
|
75
75
|
"CreateDocument": [
|
76
76
|
{
|
77
77
|
"document": "",
|
78
|
-
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDocument\n<公共请求参数>\n\n{\n \"SdkAppId\":
|
79
|
-
"output": "{\n \"Response\": {\n \"DocumentId\": \"
|
78
|
+
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDocument\n<公共请求参数>\n\n{\n \"SdkAppId\": 329013,\n \"DocumentUrl\": \"http://4323ba94-27a5bca82d6b.doc\",\n \"DocumentName\": \"课堂文档\",\n \"Owner\": \"Tom\",\n \"TranscodeType\": 1,\n \"Permission\": 1,\n \"DocumentType\": \"doc\",\n \"DocumentSize\": 1,\n \"AutoHandleUnsupportedElement\": true\n}",
|
79
|
+
"output": "{\n \"Response\": {\n \"DocumentId\": \"wuplop\",\n \"RequestId\": \"bb9c8d-4236-419b-8c39-572234jifsns7\"\n }\n}",
|
80
80
|
"title": "创建文档"
|
81
81
|
}
|
82
82
|
],
|
83
83
|
"CreateGroupWithMembers": [
|
84
84
|
{
|
85
85
|
"document": "根据成员列表创建群组",
|
86
|
-
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateGroupWithMembers\n<公共请求参数>\n\n{\n \"GroupName\": \"
|
87
|
-
"output": "{\n \"Response\": {\n \"GroupId\": \"2CvDgjRNjylAsBZB4iZc0F6koXe\",\n \"RequestId\": \"
|
86
|
+
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateGroupWithMembers\n<公共请求参数>\n\n{\n \"GroupName\": \"Group_name\",\n \"SdkAppId\": 3450918,\n \"MemberIds\": [\n \"member_1\",\n \"member_2\"\n ]\n}",
|
87
|
+
"output": "{\n \"Response\": {\n \"GroupId\": \"2CvDgjRNjylAsBZB4iZc0F6koXe\",\n \"RequestId\": \"bb9c8d-4236-419b-8c39-572234jifsns7\"\n }\n}",
|
88
88
|
"title": "创建群组"
|
89
89
|
}
|
90
90
|
],
|
91
91
|
"CreateGroupWithSubGroup": [
|
92
92
|
{
|
93
93
|
"document": "聚合子群组创建联合群组",
|
94
|
-
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateGroupWithSubGroup\n<公共请求参数>\n\n{\n \"GroupName\": \"
|
95
|
-
"output": "{\n \"Response\": {\n \"GroupId\": \"2CvDgjRNjylAsBZB4iZc0F6koXe\",\n \"RequestId\": \"
|
94
|
+
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateGroupWithSubGroup\n<公共请求参数>\n\n{\n \"GroupName\": \"Group_name\",\n \"SdkAppId\": 3450918,\n \"TeacherId\": \"Teacher_98979\",\n \"SubGroupIds\": [\n \"asdasd\",\n \"asdasd\"\n ]\n}",
|
95
|
+
"output": "{\n \"Response\": {\n \"GroupId\": \"2CvDgjRNjylAsBZB4iZc0F6koXe\",\n \"RequestId\": \"bb9c8d-4236-419b-8c39-572234jifsns7\"\n }\n}",
|
96
96
|
"title": "聚合子群组创建联合群组"
|
97
97
|
}
|
98
98
|
],
|
@@ -107,8 +107,8 @@
|
|
107
107
|
"CreateSupervisor": [
|
108
108
|
{
|
109
109
|
"document": "创建巡课教师",
|
110
|
-
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateSupervisor\n<公共请求参数>\n\n{\n \"SdkAppId\":
|
111
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
110
|
+
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateSupervisor\n<公共请求参数>\n\n{\n \"SdkAppId\": 13465287,\n \"Users\": [\n \"2d3FgsZRRB2EbRu5Cwe8Rd7R6Bc\"\n ]\n}",
|
111
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"e574aae1-lp02-4225-a2f8-9032h7199f5f0\"\n }\n}",
|
112
112
|
"title": "创建巡课"
|
113
113
|
}
|
114
114
|
],
|
@@ -163,8 +163,8 @@
|
|
163
163
|
"DeleteSupervisor": [
|
164
164
|
{
|
165
165
|
"document": "刪除巡课",
|
166
|
-
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteSupervisor\n<公共请求参数>\n\n{\n \"SdkAppId\":
|
167
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
166
|
+
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteSupervisor\n<公共请求参数>\n\n{\n \"SdkAppId\": 13465287,\n \"Users\": [\n \"2aiT64yygupUJ5zrkRi2r3hh54x\"\n ]\n}",
|
167
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"e574aae1-lp02-4225-a2f8-9032h7199f5f0\"\n }\n}",
|
168
168
|
"title": "示例"
|
169
169
|
}
|
170
170
|
],
|
@@ -188,15 +188,15 @@
|
|
188
188
|
{
|
189
189
|
"document": "获取应用配置",
|
190
190
|
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAppDetail\n<公共请求参数>\n\n{\n \"ApplicationId\": \"3028839\",\n \"DeveloperId\": \"db5bb499-8691-463f-ac64-1a48f80d968a\"\n}",
|
191
|
-
"output": "{\n \"Response\": {\n \"SdkAppId\": \"
|
191
|
+
"output": "{\n \"Response\": {\n \"SdkAppId\": \"13465287\",\n \"AppConfig\": {\n \"ApplicationId\": \"2CvDgjRNjylAs\",\n \"AppName\": \"appName01\",\n \"State\": 0,\n \"AppVersion\": 0,\n \"CreatedAt\": \"1704074400\",\n \"Callback\": \"http://11.22.33.44:8080/callback\",\n \"CallbackKey\": \"myCallBack\"\n },\n \"SceneConfig\": [\n {\n \"Scene\": \"scene01\",\n \"LogoUrl\": \"http://11.22.33.44:8080/log\",\n \"HomeUrl\": \"http://11.22.33.44:8080/home\",\n \"JSUrl\": \"http://11.22.33.44:8080/js\",\n \"CSSUrl\": \"http://11.22.33.44:8080/css\"\n }\n ],\n \"TransferConfig\": {\n \"State\": 1\n },\n \"RequestId\": \"e574aae1-lp02-4225-a2f8-9032h7199f5f0\"\n }\n}",
|
192
192
|
"title": "获取应用配置"
|
193
193
|
}
|
194
194
|
],
|
195
195
|
"DescribeCurrentMemberList": [
|
196
196
|
{
|
197
197
|
"document": "获取当前房间的成员列表。房间结束或过期后无法使用",
|
198
|
-
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCurrentMemberList\n<公共请求参数>\n\n{\n \"RoomId\":
|
199
|
-
"output": "{\n \"Response\": {\n \"Total\": 1,\n \"MemberRecords\": [\n {\n \"UserId\": \"109912\",\n \"UserName\": \"Name\",\n \"PresentTime\": 1,\n \"Camera\": 1,\n \"Mic\": 1,\n \"Silence\": 1,\n \"AnswerQuestions\": 1,\n \"HandUps\": 1,\n \"FirstJoinTimestamp\": 1,\n \"LastQuitTimestamp\": 1,\n \"Rewords\": 1,\n \"IPAddress\": \"1.1.1.1\",\n \"Location\": \"
|
198
|
+
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCurrentMemberList\n<公共请求参数>\n\n{\n \"RoomId\": 301234567,\n \"Page\": 1,\n \"Limit\": 10\n}",
|
199
|
+
"output": "{\n \"Response\": {\n \"Total\": 1,\n \"MemberRecords\": [\n {\n \"UserId\": \"109912\",\n \"UserName\": \"Name\",\n \"PresentTime\": 1,\n \"Camera\": 1,\n \"Mic\": 1,\n \"Silence\": 1,\n \"AnswerQuestions\": 1,\n \"HandUps\": 1,\n \"FirstJoinTimestamp\": 1,\n \"LastQuitTimestamp\": 1,\n \"Rewords\": 1,\n \"IPAddress\": \"1.1.1.1\",\n \"Location\": \"beijing\",\n \"Device\": 0,\n \"PerMemberMicCount\": 0,\n \"PerMemberMessageCount\": 0,\n \"Role\": 1,\n \"GroupId\": \"2CvDgjRNjylAs\",\n \"SubGroupId\": [\n \"BZB4iZc0F6ko\"\n ],\n \"Stage\": 0,\n \"CurrentState\": 1\n }\n ],\n \"RequestId\": \"e574aae1-lp02-4225-a2f8-9032h7199f5f0\"\n }\n}",
|
200
200
|
"title": "获取当前房间的成员列表"
|
201
201
|
}
|
202
202
|
],
|
@@ -204,7 +204,7 @@
|
|
204
204
|
{
|
205
205
|
"document": "示例",
|
206
206
|
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDeveloper\n<公共请求参数>\n\n{}",
|
207
|
-
"output": "{\n \"Response\": {\n \"DeveloperId\": \"
|
207
|
+
"output": "{\n \"Response\": {\n \"DeveloperId\": \"54243277893542\",\n \"RequestId\": \"bb9c8d-4236-419b-8c39-572234jifsns7\"\n }\n}",
|
208
208
|
"title": "DescribeDeveloper 示例"
|
209
209
|
}
|
210
210
|
],
|
@@ -239,8 +239,8 @@
|
|
239
239
|
"DescribeDocumentsByRoom": [
|
240
240
|
{
|
241
241
|
"document": "获取指定课堂文档",
|
242
|
-
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDocumentsByRoom\n<公共请求参数>\n\n{\n \"RoomId\":
|
243
|
-
"output": "{\n \"Response\": {\n \"Documents\": [\n {\n \"DocumentId\": \"Klpwo90M\",\n \"DocumentUrl\": \"https://www.klpa.com\",\n \"DocumentName\": \"llppqom\",\n \"Owner\": \"
|
242
|
+
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDocumentsByRoom\n<公共请求参数>\n\n{\n \"RoomId\": 2327911,\n \"SdkAppId\": 342109\n}",
|
243
|
+
"output": "{\n \"Response\": {\n \"Documents\": [\n {\n \"DocumentId\": \"Klpwo90M\",\n \"DocumentUrl\": \"https://www.klpa.com\",\n \"DocumentName\": \"llppqom\",\n \"Owner\": \"Tom\",\n \"SdkAppId\": 36281029,\n \"Permission\": 1,\n \"TranscodeResult\": \"https://usfhugsjhkdfjhhsjhakjsl.mp4\",\n \"TranscodeType\": 1,\n \"TranscodeProgress\": 1,\n \"TranscodeState\": 1,\n \"TranscodeInfo\": \"SUCCESS\",\n \"DocumentType\": \"doc\",\n \"DocumentSize\": 1,\n \"UpdateTime\": 19849018,\n \"Pages\": 1,\n \"Width\": 1,\n \"Height\": 1,\n \"Cover\": \"312\",\n \"Preview\": \"1232\",\n \"Resolution\": \"\",\n \"MinScaleResolution\": \"1280x720\"\n }\n ],\n \"Total\": 1,\n \"RequestId\": \"e574aae1-lp02-4225-a2f8-9032h7199f5f0\"\n }\n}",
|
244
244
|
"title": "获取指定课堂文档"
|
245
245
|
}
|
246
246
|
],
|
@@ -332,7 +332,7 @@
|
|
332
332
|
{
|
333
333
|
"document": "获取房间统计信息示例",
|
334
334
|
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRoomStatistics\n<公共请求参数>\n\n{\n \"RoomId\": 1,\n \"Page\": 1,\n \"Limit\": 1\n}",
|
335
|
-
"output": "{\n \"Response\": {\n \"PeakMemberNumber\": 1,\n \"MemberNumber\": 1,\n \"Total\": 1,\n \"MemberRecords\": [\n {\n \"UserId\": \"90813\",\n \"UserName\": \"Name\",\n \"PresentTime\": 1,\n \"Camera\": 1,\n \"Mic\": 1,\n \"Silence\": 1,\n \"AnswerQuestions\": 1,\n \"HandUps\": 1,\n \"FirstJoinTimestamp\": 1,\n \"LastQuitTimestamp\": 1,\n \"Rewords\": 1,\n \"IPAddress\": \"1.1.1.1\",\n \"Location\": \"country\",\n \"Device\": 0,\n \"PerMemberMicCount\": 0,\n \"PerMemberMessageCount\": 0,\n \"Role\": 1,\n \"GroupId\": \"
|
335
|
+
"output": "{\n \"Response\": {\n \"PeakMemberNumber\": 1,\n \"MemberNumber\": 1,\n \"Total\": 1,\n \"MemberRecords\": [\n {\n \"UserId\": \"90813\",\n \"UserName\": \"Name\",\n \"PresentTime\": 1,\n \"Camera\": 1,\n \"Mic\": 1,\n \"Silence\": 1,\n \"AnswerQuestions\": 1,\n \"HandUps\": 1,\n \"FirstJoinTimestamp\": 1,\n \"LastQuitTimestamp\": 1,\n \"Rewords\": 1,\n \"IPAddress\": \"1.1.1.1\",\n \"Location\": \"country\",\n \"Device\": 0,\n \"PerMemberMicCount\": 0,\n \"PerMemberMessageCount\": 0,\n \"Role\": 1,\n \"GroupId\": \"2CvDgjRNjylAs\",\n \"SubGroupId\": [\n \"BZB4iZc0F6ko\"\n ],\n \"Stage\": 0,\n \"CurrentState\": 1\n }\n ],\n \"RealStartTime\": 1,\n \"RealEndTime\": 1,\n \"MessageCount\": 1,\n \"MicCount\": 1,\n \"RequestId\": \"e574aae1-lp02-4225-a2f8-9032h7199f5f0\"\n }\n}",
|
336
336
|
"title": "示例"
|
337
337
|
}
|
338
338
|
],
|
@@ -356,15 +356,15 @@
|
|
356
356
|
{
|
357
357
|
"document": "获取巡课列表",
|
358
358
|
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSupervisors\n<公共请求参数>\n\n{\n \"SdkAppId\": 1,\n \"Limit\": 1,\n \"Page\": 1\n}",
|
359
|
-
"output": "{\n \"Response\": {\n \"Total\": 1,\n \"Page\": 1,\n \"Limit\": 1,\n \"UserIds\": [\n \"
|
359
|
+
"output": "{\n \"Response\": {\n \"Total\": 1,\n \"Page\": 1,\n \"Limit\": 1,\n \"UserIds\": [\n \"2d3FgsZRRB2EbRu5Cwe8Rd7R6Bc\"\n ],\n \"RequestId\": \"e574aae1-lp02-4225-a2f8-9032h7199f5f0\"\n }\n}",
|
360
360
|
"title": "示例"
|
361
361
|
}
|
362
362
|
],
|
363
363
|
"DescribeUser": [
|
364
364
|
{
|
365
365
|
"document": "",
|
366
|
-
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeUser\n<公共请求参数>\n\n{\n \"UserId\": \"
|
367
|
-
"output": "{\n \"Response\": {\n \"SdkAppId\": 1,\n \"UserId\": \"
|
366
|
+
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeUser\n<公共请求参数>\n\n{\n \"UserId\": \"2kJJBH6G1dfBFUJqXLh0Mg3ELLk\"\n}",
|
367
|
+
"output": "{\n \"Response\": {\n \"SdkAppId\": 1,\n \"UserId\": \"2kJJBH6G1dfBFUJqXLh0Mg3ELLk\",\n \"Name\": \"zhagnsan\",\n \"Avatar\": \"https://xxx.com/cat.jpg\",\n \"OriginId\": \"hello-moto\",\n \"RequestId\": \"2a117d109a0c533e5ecd37fc221ba7f7\"\n }\n}",
|
368
368
|
"title": "获取用户信息"
|
369
369
|
}
|
370
370
|
],
|
@@ -387,8 +387,8 @@
|
|
387
387
|
"GetRoomEvent": [
|
388
388
|
{
|
389
389
|
"document": "获取房间事件",
|
390
|
-
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetRoomEvent\n<公共请求参数>\n\n{\n \"RoomId\": 1,\n \"SdkAppId\":
|
391
|
-
"output": "{\n \"Response\": {\n \"Total\": 1,\n \"Events\": [\n {\n \"Timestamp\": 1,\n \"EventType\": \"
|
390
|
+
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetRoomEvent\n<公共请求参数>\n\n{\n \"RoomId\": 1,\n \"SdkAppId\": 13465287,\n \"Page\": 1,\n \"Limit\": 10,\n \"Keyword\": \"\"\n}",
|
391
|
+
"output": "{\n \"Response\": {\n \"Total\": 1,\n \"Events\": [\n {\n \"Timestamp\": 1,\n \"EventType\": \"MemberJoin\",\n \"EventData\": {\n \"RoomId\": 1,\n \"UserId\": \"2d3FgsZRRB2EbRu5Cwe8Rd7R6Bc\"\n }\n }\n ],\n \"RequestId\": \"e574aae1-lp02-4225-a2f8-9032h7199f5f0\"\n }\n}",
|
392
392
|
"title": "获取房间事件"
|
393
393
|
}
|
394
394
|
],
|
@@ -396,7 +396,7 @@
|
|
396
396
|
{
|
397
397
|
"document": "示例",
|
398
398
|
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetRoomMessage\n<公共请求参数>\n\n{\n \"SdkAppId\": 0,\n \"RoomId\": 1,\n \"Seq\": 0,\n \"Limit\": 1\n}",
|
399
|
-
"output": "{\n \"Response\": {\n \"Messages\": [\n {\n \"Timestamp\": 0,\n \"FromAccount\": \"
|
399
|
+
"output": "{\n \"Response\": {\n \"Messages\": [\n {\n \"Timestamp\": 0,\n \"FromAccount\": \"2d3FgsZRRB2EbRu5Cwe8Rd7R6Bc\",\n \"Seq\": 0,\n \"MessageBody\": [\n {\n \"MessageType\": 0,\n \"TextMessage\": \"hello\",\n \"ImageMessage\": \"https://www.image.com/haha.jpg\",\n \"CustomMessage\": {\n \"Data\": \"data\",\n \"Desc\": \"custom_message\",\n \"Ext\": \"CHAT\"\n }\n }\n ]\n }\n ],\n \"RequestId\": \"e574aae1-lp02-4225-a2f8-9032h7199f5f0\"\n }\n}",
|
400
400
|
"title": "示例"
|
401
401
|
}
|
402
402
|
],
|
@@ -411,8 +411,8 @@
|
|
411
411
|
"GetWatermark": [
|
412
412
|
{
|
413
413
|
"document": "获取水印配置",
|
414
|
-
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetWatermark\n<公共请求参数>\n\n{\n \"SdkAppId\":
|
415
|
-
"output": "{\n \"Response\": {\n \"TeacherLogo\": {\n \"Url\": \"https://www.adkadl.com\",\n \"Width\":
|
414
|
+
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetWatermark\n<公共请求参数>\n\n{\n \"SdkAppId\": 13465287\n}",
|
415
|
+
"output": "{\n \"Response\": {\n \"TeacherLogo\": {\n \"Url\": \"http://https://www.adkadl.com\",\n \"Width\": 128,\n \"Height\": 72,\n \"LocationX\": 10,\n \"LocationY\": 10\n },\n \"BoardLogo\": {\n \"Url\": \"http://www.logo.com/logo01.jpg\",\n \"Width\": 128,\n \"Height\": 72,\n \"LocationX\": 100,\n \"LocationY\": 100\n },\n \"BackgroundPicture\": {\n \"Url\": \"http://www.background.com/pic01.jpg\"\n },\n \"Text\": {\n \"Text\": \"welcome\",\n \"Color\": \"black\"\n },\n \"RequestId\": \"e574aae1-lp02-4225-a2f8-9032h7199f5f0\"\n }\n}",
|
416
416
|
"title": "示例"
|
417
417
|
}
|
418
418
|
],
|
@@ -435,15 +435,15 @@
|
|
435
435
|
"LoginUser": [
|
436
436
|
{
|
437
437
|
"document": "",
|
438
|
-
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: LoginUser\n<公共请求参数>\n\n{\n \"UserId\": \"
|
439
|
-
"output": "{\n \"Response\": {\n \"Token\": \"
|
438
|
+
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: LoginUser\n<公共请求参数>\n\n{\n \"UserId\": \"2i5WfUzRRC2Eb2uNmLNv96gzxCv\"\n}",
|
439
|
+
"output": "{\n \"Response\": {\n \"Token\": \"e574aae1lp024225a2f89032h7199f5f0\",\n \"UserId\": \"2i5WfUzRRC2Eb2uNmLNv96gzxCv\",\n \"RequestId\": \"e574aae1-lp02-4225-a2f8-9032h7199f5f0\"\n }\n}",
|
440
440
|
"title": "登录"
|
441
441
|
}
|
442
442
|
],
|
443
443
|
"ModifyApp": [
|
444
444
|
{
|
445
445
|
"document": "修改应用的相关信息",
|
446
|
-
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyApp\n<公共请求参数>\n\n{\n \"SdkAppId\": 1,\n \"Callback\": \"
|
446
|
+
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyApp\n<公共请求参数>\n\n{\n \"SdkAppId\": 1,\n \"Callback\": \"http://www.callback.com/mycallback\",\n \"CallbackKey\": \"mycallback\"\n}",
|
447
447
|
"output": "{\n \"Response\": {\n \"RequestId\": \"e574aae1-lp02-4225-a2f8-9032h7199f5f0\"\n }\n}",
|
448
448
|
"title": "修改应用"
|
449
449
|
}
|
@@ -451,8 +451,8 @@
|
|
451
451
|
"ModifyGroup": [
|
452
452
|
{
|
453
453
|
"document": "根据成员列表创建群组",
|
454
|
-
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyGroup\n<公共请求参数>\n\n{\n \"GroupId\": \"
|
455
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
454
|
+
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyGroup\n<公共请求参数>\n\n{\n \"GroupId\": \"2CvDgjRNjylAs\",\n \"SdkAppId\": 13465287,\n \"GroupName\": \"myGroup\"\n}",
|
455
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"e574aae1-lp02-4225-a2f8-9032h7199f5f0\"\n }\n}",
|
456
456
|
"title": "修改群组"
|
457
457
|
}
|
458
458
|
],
|
@@ -473,8 +473,8 @@
|
|
473
473
|
"ModifyUserProfile": [
|
474
474
|
{
|
475
475
|
"document": "修改用户配置示例",
|
476
|
-
"input": "{\n \"UserId\": \"
|
477
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
476
|
+
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyUserProfile\n<公共请求参数>\n\n{\n \"UserId\": \"2kJJBH6G1dfBFUJqXLh0Mg3ELLk\",\n \"Nickname\": \"zhangsan\"\n}",
|
477
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"2a117d109a0c533e5ecd37fc221ba7f7\"\n }\n}",
|
478
478
|
"title": "修改用户配置"
|
479
479
|
}
|
480
480
|
],
|
@@ -489,8 +489,8 @@
|
|
489
489
|
"SendRoomNormalMessage": [
|
490
490
|
{
|
491
491
|
"document": "",
|
492
|
-
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SendRoomNormalMessage\n<公共请求参数>\n\n{\n \"SdkAppId\": 3520371,\n \"RoomId\": 352320437,\n \"FromAccount\": \"2WqeRoOMJKQqnnL1lILRFHpdFla\",\n \"MsgBody\": [\n {\n \"MsgType\": \"TIMTextElem\",\n \"TextMsgContent\": {\n \"Text\": \"
|
493
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
492
|
+
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SendRoomNormalMessage\n<公共请求参数>\n\n{\n \"SdkAppId\": 3520371,\n \"RoomId\": 352320437,\n \"FromAccount\": \"2WqeRoOMJKQqnnL1lILRFHpdFla\",\n \"MsgBody\": [\n {\n \"MsgType\": \"TIMTextElem\",\n \"TextMsgContent\": {\n \"Text\": \"hello\"\n },\n \"FaceMsgContent\": {\n \"Index\": 1,\n \"Data\": \"haha\"\n },\n \"ImageMsgContent\": {\n \"UUID\": \"494d1feab\",\n \"ImageFormat\": 1,\n \"ImageInfoList\": [\n {\n \"Type\": 1,\n \"Size\": 12033,\n \"Width\": 2048,\n \"Height\": 800,\n \"URL\": \"https://grg-1258699.cos.ap-shanghai.myqcloud.com/room_messages.png\"\n }\n ]\n }\n }\n ],\n \"CloudCustomData\": \"abcsd\"\n}",
|
493
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"e574aae1-lp02-4225-a2f8-9032h7199f5f0\"\n }\n}",
|
494
494
|
"title": "指定用户给房间中发送消息"
|
495
495
|
}
|
496
496
|
],
|
@@ -433,6 +433,58 @@ def doDeleteQAs(args, parsed_globals):
|
|
433
433
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
434
434
|
|
435
435
|
|
436
|
+
def doQueryRewrite(args, parsed_globals):
|
437
|
+
g_param = parse_global_arg(parsed_globals)
|
438
|
+
|
439
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
440
|
+
cred = credential.CVMRoleCredential()
|
441
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
442
|
+
cred = credential.STSAssumeRoleCredential(
|
443
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
444
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
445
|
+
)
|
446
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
447
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
448
|
+
else:
|
449
|
+
cred = credential.Credential(
|
450
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
451
|
+
)
|
452
|
+
http_profile = HttpProfile(
|
453
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
454
|
+
reqMethod="POST",
|
455
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
456
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
457
|
+
)
|
458
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
459
|
+
if g_param[OptionsDefine.Language]:
|
460
|
+
profile.language = g_param[OptionsDefine.Language]
|
461
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
462
|
+
client = mod.LkeapClient(cred, g_param[OptionsDefine.Region], profile)
|
463
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
464
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
465
|
+
model = models.QueryRewriteRequest()
|
466
|
+
model.from_json_string(json.dumps(args))
|
467
|
+
start_time = time.time()
|
468
|
+
while True:
|
469
|
+
rsp = client.QueryRewrite(model)
|
470
|
+
result = rsp.to_json_string()
|
471
|
+
try:
|
472
|
+
json_obj = json.loads(result)
|
473
|
+
except TypeError as e:
|
474
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
475
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
476
|
+
break
|
477
|
+
cur_time = time.time()
|
478
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
479
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
480
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
481
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
482
|
+
else:
|
483
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
484
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
485
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
486
|
+
|
487
|
+
|
436
488
|
def doDeleteAttributeLabels(args, parsed_globals):
|
437
489
|
g_param = parse_global_arg(parsed_globals)
|
438
490
|
|
@@ -1284,6 +1336,7 @@ ACTION_MAP = {
|
|
1284
1336
|
"ReconstructDocumentSSE": doReconstructDocumentSSE,
|
1285
1337
|
"DeleteDocs": doDeleteDocs,
|
1286
1338
|
"DeleteQAs": doDeleteQAs,
|
1339
|
+
"QueryRewrite": doQueryRewrite,
|
1287
1340
|
"DeleteAttributeLabels": doDeleteAttributeLabels,
|
1288
1341
|
"ModifyAttributeLabel": doModifyAttributeLabel,
|
1289
1342
|
"RunRerank": doRunRerank,
|
@@ -133,6 +133,13 @@
|
|
133
133
|
"output": "ModifyQAResponse",
|
134
134
|
"status": "online"
|
135
135
|
},
|
136
|
+
"QueryRewrite": {
|
137
|
+
"document": "多轮改写(QueryRewrite)主要用于多轮对话中,进行指代消解和省略补全。使用本接口,无需输入prompt描述,根据对话历史即可生成更精确的用户查询。在应用场景上,本接口可应用于智能问答、对话式搜索等多种场景。\n开通[产品体验](https://lke.cloud.tencent.com/lke/#/trialProduct)后可获得50wtoken体验额度。本接口(QueryRewrite)有单账号调用上限控制,如您有提高并发限制的需求请 [联系我们](https://cloud.tencent.com/act/event/Online_service) 。",
|
138
|
+
"input": "QueryRewriteRequest",
|
139
|
+
"name": "多轮改写",
|
140
|
+
"output": "QueryRewriteResponse",
|
141
|
+
"status": "online"
|
142
|
+
},
|
136
143
|
"ReconstructDocumentSSE": {
|
137
144
|
"document": "准实时文档解析接口,使用HTTP SSE 协议通信。",
|
138
145
|
"input": "ReconstructDocumentSSERequest",
|
@@ -1123,6 +1130,34 @@
|
|
1123
1130
|
],
|
1124
1131
|
"type": "object"
|
1125
1132
|
},
|
1133
|
+
"Message": {
|
1134
|
+
"document": "会话内容",
|
1135
|
+
"members": [
|
1136
|
+
{
|
1137
|
+
"disabled": false,
|
1138
|
+
"document": "角色",
|
1139
|
+
"example": "user",
|
1140
|
+
"member": "string",
|
1141
|
+
"name": "Role",
|
1142
|
+
"output_required": false,
|
1143
|
+
"required": false,
|
1144
|
+
"type": "string",
|
1145
|
+
"value_allowed_null": false
|
1146
|
+
},
|
1147
|
+
{
|
1148
|
+
"disabled": false,
|
1149
|
+
"document": "内容",
|
1150
|
+
"example": "content",
|
1151
|
+
"member": "string",
|
1152
|
+
"name": "Content",
|
1153
|
+
"output_required": false,
|
1154
|
+
"required": false,
|
1155
|
+
"type": "string",
|
1156
|
+
"value_allowed_null": false
|
1157
|
+
}
|
1158
|
+
],
|
1159
|
+
"usage": "both"
|
1160
|
+
},
|
1126
1161
|
"ModifyAttributeLabelRequest": {
|
1127
1162
|
"document": "ModifyAttributeLabel请求参数结构体",
|
1128
1163
|
"members": [
|
@@ -1249,6 +1284,62 @@
|
|
1249
1284
|
],
|
1250
1285
|
"usage": "both"
|
1251
1286
|
},
|
1287
|
+
"QueryRewriteRequest": {
|
1288
|
+
"document": "QueryRewrite请求参数结构体",
|
1289
|
+
"members": [
|
1290
|
+
{
|
1291
|
+
"disabled": false,
|
1292
|
+
"document": "需要改写的多轮历史会话,每轮历史对话需要包含user(问)和assistant(答)成对输入,由于模型字符限制,最多提供4轮对话。针对最后一轮对话进行改写",
|
1293
|
+
"example": "[{\"Role\":\"user\",\"Content\":\"你家在哪里\"},{\"Role\":\"assistant\",\"Content\":“我家在国内”}]",
|
1294
|
+
"member": "Message",
|
1295
|
+
"name": "Messages",
|
1296
|
+
"required": true,
|
1297
|
+
"type": "list"
|
1298
|
+
},
|
1299
|
+
{
|
1300
|
+
"disabled": false,
|
1301
|
+
"document": "模型名称",
|
1302
|
+
"example": "lke-query-rewrite-base",
|
1303
|
+
"member": "string",
|
1304
|
+
"name": "Model",
|
1305
|
+
"required": false,
|
1306
|
+
"type": "string"
|
1307
|
+
}
|
1308
|
+
],
|
1309
|
+
"type": "object"
|
1310
|
+
},
|
1311
|
+
"QueryRewriteResponse": {
|
1312
|
+
"document": "QueryRewrite返回参数结构体",
|
1313
|
+
"members": [
|
1314
|
+
{
|
1315
|
+
"disabled": false,
|
1316
|
+
"document": "改写结果",
|
1317
|
+
"example": "无",
|
1318
|
+
"member": "string",
|
1319
|
+
"name": "Content",
|
1320
|
+
"output_required": true,
|
1321
|
+
"type": "string",
|
1322
|
+
"value_allowed_null": false
|
1323
|
+
},
|
1324
|
+
{
|
1325
|
+
"disabled": false,
|
1326
|
+
"document": "消耗量,返回输入token数,输出token数以及总token数",
|
1327
|
+
"example": "{\"InputTokens\":45,\"OutputTokens\":6,\"TotalTokens\":51}",
|
1328
|
+
"member": "Usage",
|
1329
|
+
"name": "Usage",
|
1330
|
+
"output_required": false,
|
1331
|
+
"type": "object",
|
1332
|
+
"value_allowed_null": false
|
1333
|
+
},
|
1334
|
+
{
|
1335
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
1336
|
+
"member": "string",
|
1337
|
+
"name": "RequestId",
|
1338
|
+
"type": "string"
|
1339
|
+
}
|
1340
|
+
],
|
1341
|
+
"type": "object"
|
1342
|
+
},
|
1252
1343
|
"ReconstructDocumentFailedPage": {
|
1253
1344
|
"document": "文档解析失败记录",
|
1254
1345
|
"members": [
|
@@ -89,7 +89,7 @@
|
|
89
89
|
"GetEmbedding": [
|
90
90
|
{
|
91
91
|
"document": "",
|
92
|
-
"input": "POST / HTTP/1.1\nHost:
|
92
|
+
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetEmbedding\n<公共请求参数>\n\n{\n \"Model\": \"lke-text-embedding-v1\",\n \"Inputs\": [\n \"你好\"\n ]\n}",
|
93
93
|
"output": "{\n \"Response\": {\n \"Data\": [\n {\n \"Embedding\": [\n 0\n ]\n }\n ],\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\",\n \"Usage\": {\n \"TotalTokens\": 3\n }\n }\n}",
|
94
94
|
"title": "获取特征向量"
|
95
95
|
}
|
@@ -158,6 +158,14 @@
|
|
158
158
|
"title": "修改问答对"
|
159
159
|
}
|
160
160
|
],
|
161
|
+
"QueryRewrite": [
|
162
|
+
{
|
163
|
+
"document": "多轮改写",
|
164
|
+
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: QueryRewrite\n<公共请求参数>\n\n{\n \"Messages\": [\n {\n \"Role\": \"user\",\n \"Content\": \"你家在哪里\"\n },\n {\n \"Role\": \"assistant\",\n \"Content\": \"我家在国内\"\n },\n {\n \"Role\": \"user\",\n \"Content\": \"国内哪里\"\n }\n ]\n}",
|
165
|
+
"output": "{\n \"Response\": {\n \"Content\": \"你家在国内哪里?\",\n \"RequestId\": \"4de60215-13cd-4f90-afc4-9fe4ef63e245\",\n \"Usage\": {\n \"InputTokens\": 45,\n \"OutputTokens\": 6,\n \"TotalTokens\": 51\n }\n }\n}",
|
166
|
+
"title": "多轮改写"
|
167
|
+
}
|
168
|
+
],
|
161
169
|
"ReconstructDocumentSSE": [
|
162
170
|
{
|
163
171
|
"document": "",
|