tccli 3.0.1266.1__py2.py3-none-any.whl → 3.0.1268.1__py2.py3-none-any.whl
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.
- tccli/__init__.py +1 -1
- tccli/services/antiddos/v20200309/api.json +206 -142
- tccli/services/antiddos/v20200309/examples.json +17 -17
- tccli/services/bi/v20220105/api.json +1 -1
- tccli/services/cbs/v20170312/api.json +18 -0
- tccli/services/ccc/v20200210/api.json +2 -2
- tccli/services/cdn/v20180606/api.json +3 -0
- tccli/services/cloudaudit/v20190319/api.json +3 -3
- tccli/services/cloudaudit/v20190319/examples.json +1 -1
- tccli/services/cwp/v20180228/api.json +11 -1
- tccli/services/emr/v20190103/api.json +11 -1
- tccli/services/ess/ess_client.py +159 -0
- tccli/services/ess/v20201111/api.json +350 -2
- tccli/services/ess/v20201111/examples.json +36 -0
- tccli/services/gme/v20180711/api.json +77 -39
- tccli/services/gme/v20180711/examples.json +2 -2
- tccli/services/hunyuan/v20230901/api.json +5 -5
- tccli/services/hunyuan/v20230901/examples.json +6 -6
- tccli/services/lcic/lcic_client.py +61 -8
- tccli/services/lcic/v20220817/api.json +71 -18
- tccli/services/lcic/v20220817/examples.json +8 -0
- tccli/services/lighthouse/v20200324/api.json +14 -14
- tccli/services/live/v20180801/api.json +60 -4
- tccli/services/lkeap/v20240522/api.json +3 -3
- tccli/services/mps/v20190612/api.json +40 -0
- tccli/services/ocr/v20181119/api.json +63 -24
- tccli/services/postgres/v20170312/api.json +1 -1
- tccli/services/redis/v20180412/api.json +40 -40
- tccli/services/rum/v20210622/api.json +1 -1
- tccli/services/smh/v20210712/api.json +50 -30
- tccli/services/smop/v20201203/api.json +34 -34
- tccli/services/tdmq/v20200217/api.json +97 -0
- tccli/services/teo/v20220901/api.json +3 -3
- tccli/services/thpc/v20230321/api.json +19 -0
- tccli/services/trocket/v20230308/api.json +130 -11
- tccli/services/vms/v20200902/api.json +2 -2
- tccli/services/vpc/v20170312/api.json +1012 -17
- tccli/services/vpc/v20170312/examples.json +100 -4
- tccli/services/vpc/vpc_client.py +690 -54
- tccli/services/wedata/v20210820/api.json +108 -12
- tccli/services/wedata/v20210820/examples.json +3 -3
- {tccli-3.0.1266.1.dist-info → tccli-3.0.1268.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1266.1.dist-info → tccli-3.0.1268.1.dist-info}/RECORD +46 -46
- {tccli-3.0.1266.1.dist-info → tccli-3.0.1268.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1266.1.dist-info → tccli-3.0.1268.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1266.1.dist-info → tccli-3.0.1268.1.dist-info}/license_files/LICENSE +0 -0
@@ -281,33 +281,33 @@
|
|
281
281
|
"members": [
|
282
282
|
{
|
283
283
|
"disabled": false,
|
284
|
-
"document": "
|
284
|
+
"document": "实时语音统计数据",
|
285
285
|
"example": "{\"MainLandPcu\":1,\"OverseaDuration\":1,\"OverseaPcu\":1,\"OverseaDau\":1,\"MainLandDuration\":1,\"MainLandDau\":1}",
|
286
286
|
"member": "RealTimeSpeechStatisticsItem",
|
287
287
|
"name": "RealtimeSpeechStatisticsItem",
|
288
288
|
"output_required": true,
|
289
289
|
"type": "object",
|
290
|
-
"value_allowed_null":
|
290
|
+
"value_allowed_null": false
|
291
291
|
},
|
292
292
|
{
|
293
293
|
"disabled": false,
|
294
|
-
"document": "
|
294
|
+
"document": "语音消息统计数据",
|
295
295
|
"example": "{\"Dau\":1018}",
|
296
296
|
"member": "VoiceMessageStatisticsItem",
|
297
297
|
"name": "VoiceMessageStatisticsItem",
|
298
298
|
"output_required": true,
|
299
299
|
"type": "object",
|
300
|
-
"value_allowed_null":
|
300
|
+
"value_allowed_null": false
|
301
301
|
},
|
302
302
|
{
|
303
303
|
"disabled": false,
|
304
|
-
"document": "
|
304
|
+
"document": "语音过滤统计数据",
|
305
305
|
"example": "{\"Duration\" : 18000}",
|
306
306
|
"member": "VoiceFilterStatisticsItem",
|
307
307
|
"name": "VoiceFilterStatisticsItem",
|
308
308
|
"output_required": true,
|
309
309
|
"type": "object",
|
310
|
-
"value_allowed_null":
|
310
|
+
"value_allowed_null": false
|
311
311
|
},
|
312
312
|
{
|
313
313
|
"disabled": false,
|
@@ -321,43 +321,43 @@
|
|
321
321
|
},
|
322
322
|
{
|
323
323
|
"disabled": false,
|
324
|
-
"document": "
|
324
|
+
"document": "录音转文本用量统计数据",
|
325
325
|
"example": "{\"Data\":0}",
|
326
326
|
"member": "AudioTextStatisticsItem",
|
327
327
|
"name": "AudioTextStatisticsItem",
|
328
328
|
"output_required": true,
|
329
329
|
"type": "object",
|
330
|
-
"value_allowed_null":
|
330
|
+
"value_allowed_null": false
|
331
331
|
},
|
332
332
|
{
|
333
333
|
"disabled": false,
|
334
|
-
"document": "
|
334
|
+
"document": "流式转文本用量数据",
|
335
335
|
"example": "{\"Data\":0}",
|
336
336
|
"member": "StreamTextStatisticsItem",
|
337
337
|
"name": "StreamTextStatisticsItem",
|
338
338
|
"output_required": true,
|
339
339
|
"type": "object",
|
340
|
-
"value_allowed_null":
|
340
|
+
"value_allowed_null": false
|
341
341
|
},
|
342
342
|
{
|
343
343
|
"disabled": false,
|
344
|
-
"document": "
|
344
|
+
"document": "海外转文本用量数据",
|
345
345
|
"example": "{\"Data\":0}",
|
346
346
|
"member": "OverseaTextStatisticsItem",
|
347
347
|
"name": "OverseaTextStatisticsItem",
|
348
348
|
"output_required": true,
|
349
349
|
"type": "object",
|
350
|
-
"value_allowed_null":
|
350
|
+
"value_allowed_null": false
|
351
351
|
},
|
352
352
|
{
|
353
353
|
"disabled": false,
|
354
|
-
"document": "
|
354
|
+
"document": "实时语音转文本用量数据",
|
355
355
|
"example": "{\"Data\":0}",
|
356
356
|
"member": "RealtimeTextStatisticsItem",
|
357
357
|
"name": "RealtimeTextStatisticsItem",
|
358
358
|
"output_required": true,
|
359
359
|
"type": "object",
|
360
|
-
"value_allowed_null":
|
360
|
+
"value_allowed_null": false
|
361
361
|
}
|
362
362
|
],
|
363
363
|
"usage": "out"
|
@@ -595,13 +595,13 @@
|
|
595
595
|
"members": [
|
596
596
|
{
|
597
597
|
"disabled": false,
|
598
|
-
"document": "
|
598
|
+
"document": "统计值,单位:秒",
|
599
599
|
"example": "1.23",
|
600
600
|
"member": "float",
|
601
601
|
"name": "Data",
|
602
|
-
"
|
602
|
+
"output_required": true,
|
603
603
|
"type": "float",
|
604
|
-
"value_allowed_null":
|
604
|
+
"value_allowed_null": false
|
605
605
|
}
|
606
606
|
],
|
607
607
|
"usage": "out"
|
@@ -2511,13 +2511,13 @@
|
|
2511
2511
|
"members": [
|
2512
2512
|
{
|
2513
2513
|
"disabled": false,
|
2514
|
-
"document": "
|
2515
|
-
"example": "
|
2514
|
+
"document": "统计值,单位:秒",
|
2515
|
+
"example": "324.88",
|
2516
2516
|
"member": "float",
|
2517
2517
|
"name": "Data",
|
2518
|
-
"
|
2518
|
+
"output_required": true,
|
2519
2519
|
"type": "float",
|
2520
|
-
"value_allowed_null":
|
2520
|
+
"value_allowed_null": false
|
2521
2521
|
}
|
2522
2522
|
],
|
2523
2523
|
"usage": "out"
|
@@ -2619,13 +2619,13 @@
|
|
2619
2619
|
"members": [
|
2620
2620
|
{
|
2621
2621
|
"disabled": false,
|
2622
|
-
"document": "
|
2623
|
-
"example": "
|
2622
|
+
"document": "统计值,单位:秒",
|
2623
|
+
"example": "451.26",
|
2624
2624
|
"member": "float",
|
2625
2625
|
"name": "Data",
|
2626
|
-
"
|
2626
|
+
"output_required": true,
|
2627
2627
|
"type": "float",
|
2628
|
-
"value_allowed_null":
|
2628
|
+
"value_allowed_null": false
|
2629
2629
|
}
|
2630
2630
|
],
|
2631
2631
|
"usage": "out"
|
@@ -2994,7 +2994,41 @@
|
|
2994
2994
|
},
|
2995
2995
|
"SceneInfo": {
|
2996
2996
|
"document": "SceneInfo场景信息\n'RealTime','实时语音分析',\n'VoiceMessage','语音消息',\n'GMECloudApi':'GME云API接口'",
|
2997
|
-
"members": [
|
2997
|
+
"members": [
|
2998
|
+
{
|
2999
|
+
"disabled": false,
|
3000
|
+
"document": "'RealTime','实时语音分析',\n'VoiceMessage','语音消息',\n'GMECloudApi':'GME云API接口'",
|
3001
|
+
"example": "RealTime",
|
3002
|
+
"member": "string",
|
3003
|
+
"name": "SceneId",
|
3004
|
+
"output_required": true,
|
3005
|
+
"required": true,
|
3006
|
+
"type": "string",
|
3007
|
+
"value_allowed_null": false
|
3008
|
+
},
|
3009
|
+
{
|
3010
|
+
"disabled": false,
|
3011
|
+
"document": "开关状态,true开启/false关闭",
|
3012
|
+
"example": "false",
|
3013
|
+
"member": "bool",
|
3014
|
+
"name": "Status",
|
3015
|
+
"output_required": true,
|
3016
|
+
"required": true,
|
3017
|
+
"type": "bool",
|
3018
|
+
"value_allowed_null": false
|
3019
|
+
},
|
3020
|
+
{
|
3021
|
+
"disabled": false,
|
3022
|
+
"document": "用户回调地址",
|
3023
|
+
"example": "https://0.0.0.0/user_callback",
|
3024
|
+
"member": "string",
|
3025
|
+
"name": "CallbackUrl",
|
3026
|
+
"output_required": true,
|
3027
|
+
"required": false,
|
3028
|
+
"type": "string",
|
3029
|
+
"value_allowed_null": false
|
3030
|
+
}
|
3031
|
+
],
|
2998
3032
|
"usage": "both"
|
2999
3033
|
},
|
3000
3034
|
"ServiceStatus": {
|
@@ -3210,13 +3244,13 @@
|
|
3210
3244
|
"members": [
|
3211
3245
|
{
|
3212
3246
|
"disabled": false,
|
3213
|
-
"document": "
|
3214
|
-
"example": "
|
3247
|
+
"document": "统计值,单位:秒",
|
3248
|
+
"example": "825.31",
|
3215
3249
|
"member": "float",
|
3216
3250
|
"name": "Data",
|
3217
|
-
"
|
3251
|
+
"output_required": true,
|
3218
3252
|
"type": "float",
|
3219
|
-
"value_allowed_null":
|
3253
|
+
"value_allowed_null": false
|
3220
3254
|
}
|
3221
3255
|
],
|
3222
3256
|
"usage": "out"
|
@@ -3227,9 +3261,10 @@
|
|
3227
3261
|
{
|
3228
3262
|
"disabled": false,
|
3229
3263
|
"document": "订阅音频流黑名单,指定不订阅哪几个UserId的音频流,例如[\"1\", \"2\", \"3\"], 代表不订阅UserId 1,2,3的音频流。默认不填订阅房间内所有音频流,订阅列表用户数不超过20。\n注意:只能同时设置UnSubscribeAudioUserIds、SubscribeAudioUserIds 其中1个参数",
|
3230
|
-
"example": "
|
3264
|
+
"example": "7619",
|
3231
3265
|
"member": "string",
|
3232
3266
|
"name": "UnSubscribeUserIds",
|
3267
|
+
"output_required": false,
|
3233
3268
|
"required": false,
|
3234
3269
|
"type": "list",
|
3235
3270
|
"value_allowed_null": false
|
@@ -3237,38 +3272,41 @@
|
|
3237
3272
|
{
|
3238
3273
|
"disabled": false,
|
3239
3274
|
"document": "订阅音频流白名单,指定订阅哪几个UserId的音频流,例如[\"1\", \"2\", \"3\"], 代表订阅UserId 1,2,3的音频流。默认不填订阅房间内所有音频流,订阅列表用户数不超过20。\n注意:只能同时设置UnSubscribeAudioUserIds、SubscribeAudioUserIds 其中1个参数。",
|
3240
|
-
"example": "
|
3275
|
+
"example": "3342",
|
3241
3276
|
"member": "string",
|
3242
3277
|
"name": "SubscribeUserIds",
|
3278
|
+
"output_required": false,
|
3243
3279
|
"required": false,
|
3244
3280
|
"type": "list",
|
3245
3281
|
"value_allowed_null": false
|
3246
3282
|
}
|
3247
3283
|
],
|
3248
|
-
"usage": "
|
3284
|
+
"usage": "both"
|
3249
3285
|
},
|
3250
3286
|
"Tag": {
|
3251
3287
|
"document": "标签列表",
|
3252
3288
|
"members": [
|
3253
3289
|
{
|
3254
3290
|
"disabled": false,
|
3255
|
-
"document": "
|
3256
|
-
"example": "",
|
3291
|
+
"document": "标签键",
|
3292
|
+
"example": "tag_key1",
|
3257
3293
|
"member": "string",
|
3258
3294
|
"name": "TagKey",
|
3295
|
+
"output_required": true,
|
3259
3296
|
"required": false,
|
3260
3297
|
"type": "string",
|
3261
|
-
"value_allowed_null":
|
3298
|
+
"value_allowed_null": false
|
3262
3299
|
},
|
3263
3300
|
{
|
3264
3301
|
"disabled": false,
|
3265
|
-
"document": "
|
3266
|
-
"example": "",
|
3302
|
+
"document": "标签值",
|
3303
|
+
"example": "tag_value1",
|
3267
3304
|
"member": "string",
|
3268
3305
|
"name": "TagValue",
|
3306
|
+
"output_required": true,
|
3269
3307
|
"required": false,
|
3270
3308
|
"type": "string",
|
3271
|
-
"value_allowed_null":
|
3309
|
+
"value_allowed_null": false
|
3272
3310
|
}
|
3273
3311
|
],
|
3274
3312
|
"usage": "both"
|
@@ -11,8 +11,8 @@
|
|
11
11
|
"CreateApp": [
|
12
12
|
{
|
13
13
|
"document": "创建GME应用123,开启实时语音服务,使用高音质;开启离线语音服务; 关闭语音过滤服务;关闭ASR语音转文本服务。",
|
14
|
-
"input": "POST / HTTP/1.1\nHost: gme.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateApp\n<公共请求参数>\n\n{\n \"AppName\": \"123\",\n \"ProjectId\": 0,\n \"EngineList\": [\n \"android\"\n ],\n \"RegionList\": [\n \"mainland\"\n ],\n \"RealtimeSpeechConf\": {\n \"Status\": \"open\",\n \"Quality\": \"high\"\n },\n \"VoiceMessageConf\": {\n \"Status\": \"open\",\n \"Language\": \"all\"\n },\n \"VoiceFilterConf\": {\n \"Status\": \"close\",\n \"SceneInfos\": [\n {},\n {},\n {}\n ]\n },\n \"AsrConf\": {\n \"Status\": \"close\"\n },\n \"Tags\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"abc\"\n }\n ]\n}",
|
15
|
-
"output": "{\n \"Response\": {\n \"Data\": {\n \"AppName\": \"123\",\n \"AsrConf\": {\n \"Status\": \"close\"\n },\n \"BizId\": 1410000000,\n \"CreateTime\": 1681894000,\n \"ProjectId\": 0,\n \"RealtimeSpeechConf\": {\n \"Quality\": \"high\",\n \"Status\": \"open\"\n },\n \"SecretKey\": \"7f9xxac16axxx49x\",\n \"VoiceFilterConf\": {\n \"SceneInfos\": [\n {},\n {},\n {}\n ],\n \"Status\": \"close\"\n },\n \"VoiceMessageConf\": {\n \"Language\": \"all\",\n \"Status\": \"open\"\n }\n },\n \"RequestId\": \"f28xxxfe-8xx8-4xx6-bcxx-22xxxfd00xxx\"\n }\n}",
|
14
|
+
"input": "POST / HTTP/1.1\nHost: gme.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateApp\n<公共请求参数>\n\n{\n \"AppName\": \"123\",\n \"ProjectId\": 0,\n \"EngineList\": [\n \"android\"\n ],\n \"RegionList\": [\n \"mainland\"\n ],\n \"RealtimeSpeechConf\": {\n \"Status\": \"open\",\n \"Quality\": \"high\"\n },\n \"VoiceMessageConf\": {\n \"Status\": \"open\",\n \"Language\": \"all\"\n },\n \"VoiceFilterConf\": {\n \"Status\": \"close\",\n \"SceneInfos\": [\n {\n \"CallbackUrl\": \"http://xxx.xxxrealtimexxx.com\",\n \"SceneId\": \"RealTime\",\n \"Status\": false\n },\n {\n \"CallbackUrl\": \"http://xxx.xxxvoicemessagexxx.com\",\n \"SceneId\": \"VoiceMessage\",\n \"Status\": false\n },\n {\n \"CallbackUrl\": \"http://xxx.xxxgmeapixxx.com\",\n \"SceneId\": \"GMECloudApi\",\n \"Status\": false\n }\n ]\n },\n \"AsrConf\": {\n \"Status\": \"close\"\n },\n \"Tags\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"abc\"\n }\n ]\n}",
|
15
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"AppName\": \"123\",\n \"AsrConf\": {\n \"Status\": \"close\"\n },\n \"BizId\": 1410000000,\n \"CreateTime\": 1681894000,\n \"ProjectId\": 0,\n \"RealtimeSpeechConf\": {\n \"Quality\": \"high\",\n \"Status\": \"open\"\n },\n \"SecretKey\": \"7f9xxac16axxx49x\",\n \"VoiceFilterConf\": {\n \"SceneInfos\": [\n {\n \"CallbackUrl\": \"http://xxx.xxxrealtimexxx.com\",\n \"SceneId\": \"RealTime\",\n \"Status\": false\n },\n {\n \"CallbackUrl\": \"http://xxx.xxxvoicemessagexxx.com\",\n \"SceneId\": \"VoiceMessage\",\n \"Status\": false\n },\n {\n \"CallbackUrl\": \"http://xxx.xxxgmeapixxx.com\",\n \"SceneId\": \"GMECloudApi\",\n \"Status\": false\n }\n ],\n \"Status\": \"close\"\n },\n \"VoiceMessageConf\": {\n \"Language\": \"all\",\n \"Status\": \"open\"\n }\n },\n \"RequestId\": \"f28xxxfe-8xx8-4xx6-bcxx-22xxxfd00xxx\"\n }\n}",
|
16
16
|
"title": "使用自定义配置,创建一个GME应用"
|
17
17
|
}
|
18
18
|
],
|
@@ -173,8 +173,8 @@
|
|
173
173
|
"members": [
|
174
174
|
{
|
175
175
|
"disabled": false,
|
176
|
-
"document": "模型名称,可选值包括 hunyuan-lite、hunyuan-standard、hunyuan-standard-256K、hunyuan-
|
177
|
-
"example": "hunyuan-
|
176
|
+
"document": "模型名称,可选值包括 hunyuan-lite、hunyuan-standard、hunyuan-standard-256K、hunyuan-code、hunyuan-role、hunyuan-functioncall、hunyuan-vision、hunyuan-turbo、hunyuan-turbo-latest、hunyuan-turbo-20241223、hunyuan-turbo-20241120、hunyuan-large、hunyuan-large-longcontext、hunyuan-turbo-vision、hunyuan-standard-vision、hunyuan-lite-vision。\n各模型介绍请阅读 [产品概述](https://cloud.tencent.com/document/product/1729/104753) 中的说明。\n\n注意:\n不同的模型计费不同,请根据 [购买指南](https://cloud.tencent.com/document/product/1729/97731) 按需调用。",
|
177
|
+
"example": "hunyuan-turbo",
|
178
178
|
"member": "string",
|
179
179
|
"name": "Model",
|
180
180
|
"required": true,
|
@@ -236,7 +236,7 @@
|
|
236
236
|
},
|
237
237
|
{
|
238
238
|
"disabled": false,
|
239
|
-
"document": "可调用的工具列表,仅对 hunyuan-
|
239
|
+
"document": "可调用的工具列表,仅对 hunyuan-turbo、hunyuan-functioncall 模型生效。",
|
240
240
|
"example": "无",
|
241
241
|
"member": "Tool",
|
242
242
|
"name": "Tools",
|
@@ -245,7 +245,7 @@
|
|
245
245
|
},
|
246
246
|
{
|
247
247
|
"disabled": false,
|
248
|
-
"document": "工具使用选项,可选值包括 none、auto、custom
|
248
|
+
"document": "工具使用选项,可选值包括 none、auto、custom。说明:1. 仅对 hunyuan-turbo、hunyuan-functioncall 模型生效。2. none:不调用工具;auto:模型自行选择生成回复或调用工具;custom:强制模型调用指定的工具。3. 未设置时,默认值为auto",
|
249
249
|
"example": "auto",
|
250
250
|
"member": "string",
|
251
251
|
"name": "ToolChoice",
|
@@ -1083,7 +1083,7 @@
|
|
1083
1083
|
},
|
1084
1084
|
{
|
1085
1085
|
"disabled": false,
|
1086
|
-
"document": "
|
1086
|
+
"document": "文件链接。目前支持 csv, doc, docx, pdf, ppt, pptx, txt, xls, xlsx 格式,单文件大小限制为100M。",
|
1087
1087
|
"example": "https://main.qcloudimg.com/raw/document/product/pdf/1278_46794_cn.pdf",
|
1088
1088
|
"member": "string",
|
1089
1089
|
"name": "URL",
|
@@ -11,31 +11,31 @@
|
|
11
11
|
"ChatCompletions": [
|
12
12
|
{
|
13
13
|
"document": "推荐使用 API Explorer 调用接口,见本文档顶部说明。该示例说明 system prompt 的使用方法。",
|
14
|
-
"input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChatCompletions\n<公共请求参数>\n\n{\n \"TopP\": 1,\n \"Temperature\": 1,\n \"Model\": \"hunyuan-
|
14
|
+
"input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChatCompletions\n<公共请求参数>\n\n{\n \"TopP\": 1,\n \"Temperature\": 1,\n \"Model\": \"hunyuan-turbo\",\n \"Stream\": true,\n \"Messages\": [\n {\n \"Role\": \"system\",\n \"Content\": \"将英文单词转换为包括中文翻译、英文释义和一个例句的完整解释。请检查所有信息是否准确,并在回答时保持简洁,不需要任何其他反馈。\"\n },\n {\n \"Role\": \"user\",\n \"Content\": \"nice\"\n }\n ]\n}",
|
15
15
|
"output": "HTTP/1.1 200 OK\nCache-Control: no-cache\nConnection: keep-alive\nContent-Type: text/event-stream\nDate: Tue, 21 Nov 2023 06:56:00 GMT\nTransfer-Encoding: chunked\nX-TC-RequestId: 61a8459b-27c8-4868-af8f-f374db0245f8\n\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"很好\"}}],\"Created\":1705634813,\"Id\":\"681ef57e-9f1e-4faa-a2d3-07b655a1fa1f\",\"Usage\":{\"PromptTokens\":36,\"CompletionTokens\":1,\"TotalTokens\":37}}\n\t\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\":\"}}],\"Created\":1705634813,\"Id\":\"681ef57e-9f1e-4faa-a2d3-07b655a1fa1f\",\"Usage\":{\"PromptTokens\":36,\"CompletionTokens\":2,\"TotalTokens\":38}}\n\t\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"nice\"}}],\"Created\":1705634813,\"Id\":\"681ef57e-9f1e-4faa-a2d3-07b655a1fa1f\",\"Usage\":{\"PromptTokens\":36,\"CompletionTokens\":3,\"TotalTokens\":39}}\n\t\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"\\n\"}}],\"Created\":1705634813,\"Id\":\"681ef57e-9f1e-4faa-a2d3-07b655a1fa1f\",\"Usage\":{\"PromptTokens\":36,\"CompletionTokens\":4,\"TotalTokens\":40}}\n\t\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"英文\"}}],\"Created\":1705634814,\"Id\":\"681ef57e-9f1e-4faa-a2d3-07b655a1fa1f\",\"Usage\":{\"PromptTokens\":36,\"CompletionTokens\":5,\"TotalTokens\":41}}\n\t\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"释义\"}}],\"Created\":1705634814,\"Id\":\"681ef57e-9f1e-4faa-a2d3-07b655a1fa1f\",\"Usage\":{\"PromptTokens\":36,\"CompletionTokens\":6,\"TotalTokens\":42}}\n\t\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\":\"}}],\"Created\":1705634814,\"Id\":\"681ef57e-9f1e-4faa-a2d3-07b655a1fa1f\",\"Usage\":{\"PromptTokens\":36,\"CompletionTokens\":7,\"TotalTokens\":43}}\n\t\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"ple\"}}],\"Created\":1705634814,\"Id\":\"681ef57e-9f1e-4faa-a2d3-07b655a1fa1f\",\"Usage\":{\"PromptTokens\":36,\"CompletionTokens\":8,\"TotalTokens\":44}}\n\t\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"asing\"}}],\"Created\":1705634814,\"Id\":\"681ef57e-9f1e-4faa-a2d3-07b655a1fa1f\",\"Usage\":{\"PromptTokens\":36,\"CompletionTokens\":9,\"TotalTokens\":45}}\n\t\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\" or\"}}],\"Created\":1705634814,\"Id\":\"681ef57e-9f1e-4faa-a2d3-07b655a1fa1f\",\"Usage\":{\"PromptTokens\":36,\"CompletionTokens\":10,\"TotalTokens\":46}}\n\t\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\" acceptable\"}}],\"Created\":1705634814,\"Id\":\"681ef57e-9f1e-4faa-a2d3-07b655a1fa1f\",\"Usage\":{\"PromptTokens\":36,\"CompletionTokens\":11,\"TotalTokens\":47}}\n\t\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"\\n\"}}],\"Created\":1705634814,\"Id\":\"681ef57e-9f1e-4faa-a2d3-07b655a1fa1f\",\"Usage\":{\"PromptTokens\":36,\"CompletionTokens\":12,\"TotalTokens\":48}}\n\t\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"例\"}}],\"Created\":1705634814,\"Id\":\"681ef57e-9f1e-4faa-a2d3-07b655a1fa1f\",\"Usage\":{\"PromptTokens\":36,\"CompletionTokens\":13,\"TotalTokens\":49}}\n\t\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"句\"}}],\"Created\":1705634814,\"Id\":\"681ef57e-9f1e-4faa-a2d3-07b655a1fa1f\",\"Usage\":{\"PromptTokens\":36,\"CompletionTokens\":14,\"TotalTokens\":50}}\n\t\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\":\"}}],\"Created\":1705634814,\"Id\":\"681ef57e-9f1e-4faa-a2d3-07b655a1fa1f\",\"Usage\":{\"PromptTokens\":36,\"CompletionTokens\":15,\"TotalTokens\":51}}\n\t\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"She\"}}],\"Created\":1705634814,\"Id\":\"681ef57e-9f1e-4faa-a2d3-07b655a1fa1f\",\"Usage\":{\"PromptTokens\":36,\"CompletionTokens\":16,\"TotalTokens\":52}}\n\t\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\" had\"}}],\"Created\":1705634814,\"Id\":\"681ef57e-9f1e-4faa-a2d3-07b655a1fa1f\",\"Usage\":{\"PromptTokens\":36,\"CompletionTokens\":17,\"TotalTokens\":53}}\n\t\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\" a\"}}],\"Created\":1705634814,\"Id\":\"681ef57e-9f1e-4faa-a2d3-07b655a1fa1f\",\"Usage\":{\"PromptTokens\":36,\"CompletionTokens\":18,\"TotalTokens\":54}}\n\t\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\" nice\"}}],\"Created\":1705634814,\"Id\":\"681ef57e-9f1e-4faa-a2d3-07b655a1fa1f\",\"Usage\":{\"PromptTokens\":36,\"CompletionTokens\":19,\"TotalTokens\":55}}\n\t\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\" smile\"}}],\"Created\":1705634814,\"Id\":\"681ef57e-9f1e-4faa-a2d3-07b655a1fa1f\",\"Usage\":{\"PromptTokens\":36,\"CompletionTokens\":20,\"TotalTokens\":56}}\n\t\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\".\"}}],\"Created\":1705634814,\"Id\":\"681ef57e-9f1e-4faa-a2d3-07b655a1fa1f\",\"Usage\":{\"PromptTokens\":36,\"CompletionTokens\":21,\"TotalTokens\":57}}\n\t\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"stop\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"\"}}],\"Created\":1705634814,\"Id\":\"681ef57e-9f1e-4faa-a2d3-07b655a1fa1f\",\"Usage\":{\"PromptTokens\":36,\"CompletionTokens\":21,\"TotalTokens\":57}}",
|
16
16
|
"title": "system prompt 示例"
|
17
17
|
},
|
18
18
|
{
|
19
19
|
"document": "推荐使用 API Explorer 调用接口,见本文档顶部说明。该示例说明如何给模型传入多轮消息。",
|
20
|
-
"input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChatCompletions\n<公共请求参数>\n\n{\n \"TopP\": 1,\n \"Temperature\": 1,\n \"Model\": \"hunyuan-
|
20
|
+
"input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChatCompletions\n<公共请求参数>\n\n{\n \"TopP\": 1,\n \"Temperature\": 1,\n \"Model\": \"hunyuan-turbo\",\n \"Stream\": true,\n \"Messages\": [\n {\n \"Role\": \"user\",\n \"Content\": \"请介绍下自己\"\n },\n {\n \"Role\": \"assistant\",\n \"Content\": \"我的名字是腾讯混元大模型,是腾讯开发的一款大型语言模型。我能够理解人类语言,擅长提供问答服务、常识推理、文本创作、数学计算和互动问答等服务。如果您需要帮助或有任何问题,请随时向我提问。\"\n },\n {\n \"Role\": \"user\",\n \"Content\": \"请给我讲个字数小于10个字的搞笑笑话\"\n },\n {\n \"Role\": \"assistant\",\n \"Content\": \"猫头鹰遇见眯眯眼,看得眼睛都眯成线。\"\n },\n {\n \"Role\": \"user\",\n \"Content\": \"不好笑,换一个吧\"\n }\n ]\n}",
|
21
21
|
"output": "HTTP/1.1 200 OK\nCache-Control: no-cache\nConnection: keep-alive\nContent-Type: text/event-stream\nDate: Tue, 21 Nov 2023 06:56:00 GMT\nTransfer-Encoding: chunked\nX-TC-RequestId: 61a8459b-27c8-4868-af8f-f374db0245f8\n\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"青蛙\"}}],\"Created\":1705634032,\"Id\":\"9c772634-8824-43e8-bc24-8bc4c19b9151\",\"Usage\":{\"PromptTokens\":85,\"CompletionTokens\":1,\"TotalTokens\":86}}\n\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"跳\"}}],\"Created\":1705634032,\"Id\":\"9c772634-8824-43e8-bc24-8bc4c19b9151\",\"Usage\":{\"PromptTokens\":85,\"CompletionTokens\":2,\"TotalTokens\":87}}\n\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"高\"}}],\"Created\":1705634032,\"Id\":\"9c772634-8824-43e8-bc24-8bc4c19b9151\",\"Usage\":{\"PromptTokens\":85,\"CompletionTokens\":3,\"TotalTokens\":88}}\n\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\",\"}}],\"Created\":1705634032,\"Id\":\"9c772634-8824-43e8-bc24-8bc4c19b9151\",\"Usage\":{\"PromptTokens\":85,\"CompletionTokens\":4,\"TotalTokens\":89}}\n\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"比\"}}],\"Created\":1705634032,\"Id\":\"9c772634-8824-43e8-bc24-8bc4c19b9151\",\"Usage\":{\"PromptTokens\":85,\"CompletionTokens\":5,\"TotalTokens\":90}}\n\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"下马\"}}],\"Created\":1705634032,\"Id\":\"9c772634-8824-43e8-bc24-8bc4c19b9151\",\"Usage\":{\"PromptTokens\":85,\"CompletionTokens\":6,\"TotalTokens\":91}}\n\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"。\"}}],\"Created\":1705634032,\"Id\":\"9c772634-8824-43e8-bc24-8bc4c19b9151\",\"Usage\":{\"PromptTokens\":85,\"CompletionTokens\":7,\"TotalTokens\":92}}\n\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"stop\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"\"}}],\"Created\":1705634032,\"Id\":\"9c772634-8824-43e8-bc24-8bc4c19b9151\",\"Usage\":{\"PromptTokens\":85,\"CompletionTokens\":7,\"TotalTokens\":92}}",
|
22
22
|
"title": "多轮对话示例"
|
23
23
|
},
|
24
24
|
{
|
25
25
|
"document": "推荐使用 API Explorer 调用接口,见本文档顶部说明。该示例给出接口调用失败时的响应例子。",
|
26
|
-
"input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChatCompletions\n<公共请求参数>\n\n{\n \"TopP\": 0,\n \"Temperature\": 4.8,\n \"Model\": \"hunyuan-
|
26
|
+
"input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChatCompletions\n<公共请求参数>\n\n{\n \"TopP\": 0,\n \"Temperature\": 4.8,\n \"Model\": \"hunyuan-turbo\",\n \"Messages\": [\n {\n \"Role\": \"user\",\n \"Content\": \"介绍下自己\"\n }\n ]\n}",
|
27
27
|
"output": "{\n \"Response\": {\n \"RequestId\": \"188cc996-ab09-49a7-aa9f-1df88f11c6b4\",\n \"Error\": {\n \"Code\": \"InvalidParameter\",\n \"Message\": \"Temperature must be 2 or less\"\n }\n }\n}",
|
28
28
|
"title": "请求失败示例"
|
29
29
|
},
|
30
30
|
{
|
31
31
|
"document": "推荐使用 API Explorer 调用接口,见本文档顶部说明。该示例给出接口正常调用时的响应例子。",
|
32
|
-
"input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChatCompletions\n<公共请求参数>\n\n{\n \"TopP\": 1,\n \"Temperature\": 1,\n \"Model\": \"hunyuan-
|
32
|
+
"input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChatCompletions\n<公共请求参数>\n\n{\n \"TopP\": 1,\n \"Temperature\": 1,\n \"Model\": \"hunyuan-turbo\",\n \"Stream\": true,\n \"Messages\": [\n {\n \"Role\": \"user\",\n \"Content\": \"计算1+1\"\n }\n ]\n}",
|
33
33
|
"output": "HTTP/1.1 200 OK\nCache-Control: no-cache\nConnection: keep-alive\nContent-Type: text/event-stream\nDate: Tue, 21 Nov 2023 06:56:00 GMT\nTransfer-Encoding: chunked\nX-TC-RequestId: 61a8459b-27c8-4868-af8f-f374db0245f8\n\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"1\"}}],\"Created\":1700549760,\"Id\":\"148b89ef-14e1-489f-8e70-b767e5b27d56\",\"Usage\":{\"PromptTokens\":4,\"CompletionTokens\":2,\"TotalTokens\":6}}\n\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"+\"}}],\"Created\":1700549760,\"Id\":\"148b89ef-14e1-489f-8e70-b767e5b27d56\",\"Usage\":{\"PromptTokens\":4,\"CompletionTokens\":3,\"TotalTokens\":7}}\n\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"1\"}}],\"Created\":1700549760,\"Id\":\"148b89ef-14e1-489f-8e70-b767e5b27d56\",\"Usage\":{\"PromptTokens\":4,\"CompletionTokens\":4,\"TotalTokens\":8}}\n\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"=\"}}],\"Created\":1700549760,\"Id\":\"148b89ef-14e1-489f-8e70-b767e5b27d56\",\"Usage\":{\"PromptTokens\":4,\"CompletionTokens\":5,\"TotalTokens\":9}}\n\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"2\"}}],\"Created\":1700549760,\"Id\":\"148b89ef-14e1-489f-8e70-b767e5b27d56\",\"Usage\":{\"PromptTokens\":4,\"CompletionTokens\":5,\"TotalTokens\":9}}\n\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"stop\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"\"}}],\"Created\":1700549760,\"Id\":\"148b89ef-14e1-489f-8e70-b767e5b27d56\",\"Usage\":{\"PromptTokens\":4,\"CompletionTokens\":5,\"TotalTokens\":9}}",
|
34
34
|
"title": "流式请求成功示例"
|
35
35
|
},
|
36
36
|
{
|
37
37
|
"document": "推荐使用 API Explorer 调用接口,见本文档顶部说明。该示例说明如何用非流式方式调用接口。",
|
38
|
-
"input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChatCompletions\n<公共请求参数>\n\n{\n \"TopP\": 0,\n \"Stream\": false,\n \"Temperature\": 0,\n \"Model\": \"hunyuan-
|
38
|
+
"input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChatCompletions\n<公共请求参数>\n\n{\n \"TopP\": 0,\n \"Stream\": false,\n \"Temperature\": 0,\n \"Model\": \"hunyuan-turbo\",\n \"Messages\": [\n {\n \"Role\": \"user\",\n \"Content\": \"你好呀!\"\n }\n ]\n}",
|
39
39
|
"output": "{\n \"Note\": \"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\n \"Choices\": [\n {\n \"FinishReason\": \"stop\",\n \"Message\": {\n \"Role\": \"assistant\",\n \"Content\": \"你好!很高兴为您提供帮助。请问有什么问题我可以帮助您解决?\"\n }\n }\n ],\n \"Created\": 1710902312,\n \"Id\": \"e4657570-94a5-45f1-896c-a00ac3471d51\",\n \"Usage\": {\n \"PromptTokens\": 3,\n \"CompletionTokens\": 14,\n \"TotalTokens\": 17\n }\n}",
|
40
40
|
"title": "非流式请求成功示例"
|
41
41
|
},
|
@@ -65,7 +65,7 @@
|
|
65
65
|
},
|
66
66
|
{
|
67
67
|
"document": "推荐使用 API Explorer 调用接口,见本文档顶部说明。该示例说明如何使用深度研究。",
|
68
|
-
"input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChatCompletions\n<公共请求参数>\n\n{\n \"Model\": \"hunyuan-
|
68
|
+
"input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChatCompletions\n<公共请求参数>\n\n{\n \"Model\": \"hunyuan-turbo\",\n \"Messages\": [\n {\n \"Role\": \"user\",\n \"Content\": \"黄金价格为什么上涨?\"\n }\n ],\n \"Stream\": true,\n \"StreamModeration\": true,\n \"EnableEnhancement\": true,\n \"SearchInfo\": true,\n \"Citation\": true,\n \"EnableDeepSearch\": true\n}",
|
69
69
|
"output": "HTTP/1.1 200 OK\nCache-Control: no-cache\nConnection: keep-alive\nContent-Type: text/event-stream\nDate: Wed, 23 Oct 2024 06:42:27 GMT\nTransfer-Encoding: chunked\nX-TC-RequestId: 962eac85-9d4d-47d5-87df-0f68e2c54ffe\n\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"Delta\":{\"Role\":\"assistant\",\"Content\":\"黄金\"},\"FinishReason\":\"\"}],\"SearchInfo\":{\"SearchResults\":[{\"Index\":1,\"Title\":\"什么原因导致黄金价格持续上涨呢?-今日头条\",\"Url\":\"https://www.toutiao.com/article/7405795153295835685/\"},{\"Index\":2,\"Title\":\"黄金价格上涨的背后原因-今日头条\",\"Url\":\"https://www.toutiao.com/article/7343060432250749450/\"},{\"Index\":3,\"Title\":\"黄金为何大涨?背后的逻辑你值得深究 近一年以来,经济界 ...\",\"Url\":\"https://xueqiu.com/9543769156/285918720\"},{\"Index\":4,\"Title\":\"金价为何猛涨u3000-u3000财梯网\",\"Url\":\"https://www.cadforex.com/licai/76040.html\"},{\"Index\":5,\"Title\":\"黄金价格暴涨的多维驱动因素分析_经济_全球_市场\",\"Url\":\"https://www.sohu.com/a/792488534_121983853\"},{\"Index\":6,\"Title\":\"黄金价格与通货膨胀率的关联_因素_市场_影响\",\"Url\":\"https://www.sohu.com/a/795813780_122001933\"},{\"Index\":7,\"Title\":\"通货膨胀与金价的关系是怎样的?_中金在线财经号\",\"Url\":\"http://mp.cnfol.com/58227/article/1724810738-141466711.html\"},{\"Index\":8,\"Title\":\"金价再创新高 地缘政治和美国大选推动避险需求 - 腾讯网\",\"Url\":\"https://new.qq.com/rain/a/20241023A0185900\"},{\"Index\":9,\"Title\":\"中信建投:通胀、货币以及地缘三大因素叠加,构成黄金完美 ...\",\"Url\":\"https://new.qq.com/rain/a/20241023A01G1E00\"},{\"Index\":10,\"Title\":\"黄金价格与美元汇率之间的关系是怎样的-叩富网\",\"Url\":\"https://licai.cofool.com/ask/qa_3396404.html\"},{\"Index\":11,\"Title\":\"金价暴涨释放危险信号:2024年,美元要崩?美债央行美元指数美元汇率黄金价格国际金价_网易订阅\",\"Url\":\"https://www.163.com/dy/article/IMSN07JG0552NMAF.html\"},{\"Index\":12,\"Title\":\"央行购金+投资者配置不足+地缘政治风险,金价明年将涨至 ...\",\"Url\":\"https://finance.sina.com.cn/money/forex/hbfx/2024-10-23/doc-inctnyne0954128.shtml\"},{\"Index\":13,\"Title\":\"黄金价格与全球货币政策的互动_市场关注_经济_中央银行\",\"Url\":\"https://www.sohu.com/a/795813568_122001933\"},{\"Index\":14,\"Title\":\"黄金价格大涨,投资需求显著提升,金价还可以走多远?_财富号_东方财富网\",\"Url\":\"https://caifuhao.eastmoney.com/news/20240306084013570039040\"},{\"Index\":15,\"Title\":\"国际金价再创新高!年内累计涨幅已超30%,机构称中长期 ...\",\"Url\":\"https://new.qq.com/rain/a/20241018A012Y300\"},{\"Index\":16,\"Title\":\"从黄金历史牛市分析和预测黄金价格走势黄金_新浪财经_新浪网\",\"Url\":\"https://finance.sina.com.cn/money/nmetal/hjzx/2024-08-20/doc-inckiaqw3372603.shtml\"},{\"Index\":17,\"Title\":\"以史为鉴!100年黄金走势图显示:长期策略仍是逢低买入 ...\",\"Url\":\"https://finance.sina.com.cn/money/forex/hbfx/2024-02-19/doc-inaipzvn5400083.shtml\"}],\"Outline\":[\"全球经济不确定性\",\"通货膨胀预期上升\",\"美元汇率波动\",\"投资者需求增加\",\"供应端因素\"]},\"Created\":1729665576,\"Id\":\"962eac85-9d4d-47d5-87df-0f68e2c54ffe\",\"Usage\":{\"PromptTokens\":6,\"CompletionTokens\":2,\"TotalTokens\":8}}\n\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"Delta\":{\"Role\":\"assistant\",\"Content\":\"价格\"},\"FinishReason\":\"\"}],\"SearchInfo\":{\"SearchResults\":[{\"Index\":1,\"Title\":\"什么原因导致黄金价格持续上涨呢?-今日头条\",\"Url\":\"https://www.toutiao.com/article/7405795153295835685/\"},{\"Index\":2,\"Title\":\"黄金价格上涨的背后原因-今日头条\",\"Url\":\"https://www.toutiao.com/article/7343060432250749450/\"},{\"Index\":3,\"Title\":\"黄金为何大涨?背后的逻辑你值得深究 近一年以来,经济界 ...\",\"Url\":\"https://xueqiu.com/9543769156/285918720\"},{\"Index\":4,\"Title\":\"金价为何猛涨u3000-u3000财梯网\",\"Url\":\"https://www.cadforex.com/licai/76040.html\"},{\"Index\":5,\"Title\":\"黄金价格暴涨的多维驱动因素分析_经济_全球_市场\",\"Url\":\"https://www.sohu.com/a/792488534_121983853\"},{\"Index\":6,\"Title\":\"黄金价格与通货膨胀率的关联_因素_市场_影响\",\"Url\":\"https://www.sohu.com/a/795813780_122001933\"},{\"Index\":7,\"Title\":\"通货膨胀与金价的关系是怎样的?_中金在线财经号\",\"Url\":\"http://mp.cnfol.com/58227/article/1724810738-141466711.html\"},{\"Index\":8,\"Title\":\"金价再创新高 地缘政治和美国大选推动避险需求 - 腾讯网\",\"Url\":\"https://new.qq.com/rain/a/20241023A0185900\"},{\"Index\":9,\"Title\":\"中信建投:通胀、货币以及地缘三大因素叠加,构成黄金完美 ...\",\"Url\":\"https://new.qq.com/rain/a/20241023A01G1E00\"},{\"Index\":10,\"Title\":\"黄金价格与美元汇率之间的关系是怎样的-叩富网\",\"Url\":\"https://licai.cofool.com/ask/qa_3396404.html\"},{\"Index\":11,\"Title\":\"金价暴涨释放危险信号:2024年,美元要崩?美债央行美元指数美元汇率黄金价格国际金价_网易订阅\",\"Url\":\"https://www.163.com/dy/article/IMSN07JG0552NMAF.html\"},{\"Index\":12,\"Title\":\"央行购金+投资者配置不足+地缘政治风险,金价明年将涨至 ...\",\"Url\":\"https://finance.sina.com.cn/money/forex/hbfx/2024-10-23/doc-inctnyne0954128.shtml\"},{\"Index\":13,\"Title\":\"黄金价格与全球货币政策的互动_市场关注_经济_中央银行\",\"Url\":\"https://www.sohu.com/a/795813568_122001933\"},{\"Index\":14,\"Title\":\"黄金价格大涨,投资需求显著提升,金价还可以走多远?_财富号_东方财富网\",\"Url\":\"https://caifuhao.eastmoney.com/news/20240306084013570039040\"},{\"Index\":15,\"Title\":\"国际金价再创新高!年内累计涨幅已超30%,机构称中长期 ...\",\"Url\":\"https://new.qq.com/rain/a/20241018A012Y300\"},{\"Index\":16,\"Title\":\"从黄金历史牛市分析和预测黄金价格走势黄金_新浪财经_新浪网\",\"Url\":\"https://finance.sina.com.cn/money/nmetal/hjzx/2024-08-20/doc-inckiaqw3372603.shtml\"},{\"Index\":17,\"Title\":\"以史为鉴!100年黄金走势图显示:长期策略仍是逢低买入 ...\",\"Url\":\"https://finance.sina.com.cn/money/forex/hbfx/2024-02-19/doc-inaipzvn5400083.shtml\"}],\"Outline\":[\"全球经济不确定性\",\"通货膨胀预期上升\",\"美元汇率波动\",\"投资者需求增加\",\"供应端因素\"]},\"Created\":1729665576,\"Id\":\"962eac85-9d4d-47d5-87df-0f68e2c54ffe\",\"Usage\":{\"PromptTokens\":6,\"CompletionTokens\":4,\"TotalTokens\":10}}\n\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"Delta\":{\"Role\":\"assistant\",\"Content\":\"\"},\"FinishReason\":\"stop\"}],\"SearchInfo\":{\"SearchResults\":[{\"Index\":1,\"Title\":\"什么原因导致黄金价格持续上涨呢?-今日头条\",\"Url\":\"https://www.toutiao.com/article/7405795153295835685/\"},{\"Index\":2,\"Title\":\"黄金价格上涨的背后原因-今日头条\",\"Url\":\"https://www.toutiao.com/article/7343060432250749450/\"},{\"Index\":3,\"Title\":\"黄金为何大涨?背后的逻辑你值得深究 近一年以来,经济界 ...\",\"Url\":\"https://xueqiu.com/9543769156/285918720\"},{\"Index\":4,\"Title\":\"金价为何猛涨u3000-u3000财梯网\",\"Url\":\"https://www.cadforex.com/licai/76040.html\"},{\"Index\":5,\"Title\":\"黄金价格暴涨的多维驱动因素分析_经济_全球_市场\",\"Url\":\"https://www.sohu.com/a/792488534_121983853\"},{\"Index\":6,\"Title\":\"黄金价格与通货膨胀率的关联_因素_市场_影响\",\"Url\":\"https://www.sohu.com/a/795813780_122001933\"},{\"Index\":7,\"Title\":\"通货膨胀与金价的关系是怎样的?_中金在线财经号\",\"Url\":\"http://mp.cnfol.com/58227/article/1724810738-141466711.html\"},{\"Index\":8,\"Title\":\"金价再创新高 地缘政治和美国大选推动避险需求 - 腾讯网\",\"Url\":\"https://new.qq.com/rain/a/20241023A0185900\"},{\"Index\":9,\"Title\":\"中信建投:通胀、货币以及地缘三大因素叠加,构成黄金完美 ...\",\"Url\":\"https://new.qq.com/rain/a/20241023A01G1E00\"},{\"Index\":10,\"Title\":\"黄金价格与美元汇率之间的关系是怎样的-叩富网\",\"Url\":\"https://licai.cofool.com/ask/qa_3396404.html\"},{\"Index\":11,\"Title\":\"金价暴涨释放危险信号:2024年,美元要崩?美债央行美元指数美元汇率黄金价格国际金价_网易订阅\",\"Url\":\"https://www.163.com/dy/article/IMSN07JG0552NMAF.html\"},{\"Index\":12,\"Title\":\"央行购金+投资者配置不足+地缘政治风险,金价明年将涨至 ...\",\"Url\":\"https://finance.sina.com.cn/money/forex/hbfx/2024-10-23/doc-inctnyne0954128.shtml\"},{\"Index\":13,\"Title\":\"黄金价格与全球货币政策的互动_市场关注_经济_中央银行\",\"Url\":\"https://www.sohu.com/a/795813568_122001933\"},{\"Index\":14,\"Title\":\"黄金价格大涨,投资需求显著提升,金价还可以走多远?_财富号_东方财富网\",\"Url\":\"https://caifuhao.eastmoney.com/news/20240306084013570039040\"},{\"Index\":15,\"Title\":\"国际金价再创新高!年内累计涨幅已超30%,机构称中长期 ...\",\"Url\":\"https://new.qq.com/rain/a/20241018A012Y300\"},{\"Index\":16,\"Title\":\"从黄金历史牛市分析和预测黄金价格走势黄金_新浪财经_新浪网\",\"Url\":\"https://finance.sina.com.cn/money/nmetal/hjzx/2024-08-20/doc-inckiaqw3372603.shtml\"},{\"Index\":17,\"Title\":\"以史为鉴!100年黄金走势图显示:长期策略仍是逢低买入 ...\",\"Url\":\"https://finance.sina.com.cn/money/forex/hbfx/2024-02-19/doc-inaipzvn5400083.shtml\"},{\"Index\":18,\"Title\":\"全球央行热衷“购金”!增持意愿达五年新高,高盛看涨金价至 ...\",\"Url\":\"https://news.qq.com/rain/a/20240619A06NQR00\"},{\"Index\":19,\"Title\":\"避险地缘政治冲突,上半年全球央行增持483吨黄金创纪录黄金_新浪财经_新浪网\",\"Url\":\"https://finance.sina.com.cn/jjxw/2024-08-12/doc-incikrfh1306064.shtml\"},{\"Index\":20,\"Title\":\"黄金热潮:央行增持背后的逻辑与投资机遇黄金价格中国人民银行_网易订阅\",\"Url\":\"https://www.163.com/dy/article/J1PCM2DH0523Q7MN.html\"},{\"Index\":21,\"Title\":\"金价暴涨,央行为何连续17个月增加黄金储备,后续会加仓吗\",\"Url\":\"https://new.qq.com/rain/a/20240407A08EVY00\"},{\"Index\":22,\"Title\":\"央行增持黄金意味着什么u3000-u3000财梯网\",\"Url\":\"https://www.cadforex.com/huangji/135556.html\"},{\"Index\":23,\"Title\":\"央行增持黄金储备如何影响黄金市场行情-指股网\",\"Url\":\"https://www.zhiguf.com/focusnews_detail/1300594\"},{\"Index\":24,\"Title\":\"连续5个月,央行暂停增持黄金! - 经济观察网\",\"Url\":\"http://www.eeo.com.cn/2024/1020/692290.shtml\"},{\"Index\":25,\"Title\":\"央行,继续暂停增持黄金 - 腾讯网\",\"Url\":\"https://new.qq.com/rain/a/20241007A04F7B00\"},{\"Index\":26,\"Title\":\"中国央行连续第五个月暂停增持黄金,分析师:空头将寻求金价跌向2605_外汇动态报道_汇通财经www.fx678.com\",\"Url\":\"https://news.fx678.com/202410071146181057.shtml\"},{\"Index\":27,\"Title\":\"央行增持黄金意味着什么u3000-u3000财梯网\",\"Url\":\"https://www.cadforex.com/huangji/135556.html\"},{\"Index\":28,\"Title\":\"中国央行连续15个月增持黄金,去年净购金量居全球之首\",\"Url\":\"https://finance.sina.com.cn/jjxw/2024-02-07/doc-inahfexi2620119.shtml\"},{\"Index\":29,\"Title\":\"中国央行连续15个月增持黄金,去年净购金量居全球之首 ...\",\"Url\":\"https://www.jiemian.com/article/10790382.html\"},{\"Index\":30,\"Title\":\"中国9月末黄金储备7280万盎司 央行连续第五个月暂停增持黄金\",\"Url\":\"https://new.qq.com/rain/a/20241007A02E5O00\"},{\"Index\":31,\"Title\":\"14连升!我国黄金储备2235.41吨\",\"Url\":\"http://www.gold.org.cn/sc1227/dzsp/202401/t20240108_195543.html\"},{\"Index\":32,\"Title\":\"2264.33吨!中国央行连续第5个月暂停增持黄金储备!原因为何?\",\"Url\":\"https://new.qq.com/rain/a/20241007A077BF00\"}],\"Outline\":[\"全球经济不确定性\",\"通货膨胀预期上升\",\"美元汇率波动\",\"投资者需求增加\",\"供应端因素\"],\"Mindmap\":{\"ThumbUrl\":\"https://hunyuan-plugin-nj-1258344706.cos.ap-nanjing.myqcloud.com/xmind/b70d74171af71b74a9f0b6ea2cb740e0.png\",\"Url\":\"https://hunyuan-plugin-nj-1258344706.cos.ap-nanjing.myqcloud.com/xmind/b70d74171af71b74a9f0b6ea2cb740e0_t.png\"},\"RelevantEvents\":[{\"Title\":\"欧洲央行降息\",\"Content\":\"欧洲央行在今年第三次降息,降息幅度为25个基点,全球货币环境维持宽松,为黄金的购买创造了有利环境,推动金价上涨。\",\"Datetime\":\"2024-10-23\",\"Reference\":[6]},{\"Title\":\"美元汇率走低\",\"Content\":\"美元汇率走低导致美元贬值,以美元计价的黄金价格上涨。此外,全球央行净购黄金创下历史新高,进一步推动了金价上涨。\",\"Datetime\":\"2024-10-13\",\"Reference\":[7,18]},{\"Title\":\"地缘政治紧张局势\",\"Content\":\"俄乌冲突、巴以冲突屡次出现升级迹象,美国大选的不确定性加剧了市场对未来全球经济增长的担忧,推动更多资金流向避险资产黄金。\",\"Datetime\":\"2024-09-21\",\"Reference\":[4]},{\"Title\":\"全球央行大量购金\",\"Content\":\"近两年全球央行开始大量购金,2022年、2023年全球央行及主权机构增持黄金量均超1000吨,约占当年全球黄金产量的三分之一,导致市场供需关系变化,推高了金价。\",\"Datetime\":\"2024-09-01\",\"Reference\":[2,4]},{\"Title\":\"美联储降息预期\",\"Content\":\"随着美国经济下行压力增大,市场普遍预期美联储货币政策将转向宽松周期,降息预期升温,推动黄金价格上涨。\",\"Datetime\":\"2024-09-01\",\"Reference\":[2,4]}],\"RelevantEntities\":[{\"Name\":\"鲍威尔[2](@ref)\",\"Content\":\"美联储主席鲍威尔表示调整货币政策的时机已到,市场对于9月份美联储降息预期更为强烈,这一表态成为黄金价格上涨的重要推手。\",\"Reference\":[2]},{\"Name\":\"特朗普[9](@ref)\",\"Content\":\"特朗普当选的概率上升,市场广泛定价中期通胀中枢上移,特朗普主张的“减税+关税”政策组合导致更高的经济增长、债务增长和通胀前景,推动金价上涨。\",\"Reference\":[9]},{\"Name\":\"国际货币基金组织[5](@ref)\",\"Content\":\"国际货币基金组织长期购买黄金并保持较高储备,提升了其金融安全性,黄金成为最佳的避险资产。\",\"Reference\":[5]},{\"Name\":\"全球央行[2,4](@ref)\",\"Content\":\"近两年全球央行开始大量购金,2022年、2023年全球央行及主权机构增持黄金量均超1000吨,央行购入的黄金作为官方储备资产,推动了黄金价格的长期上涨。\",\"Reference\":[2,4]}],\"Timeline\":[{\"Title\":\"现货黄金一度触及每盎司2450美元再创盘中历史新高\",\"Url\":\"https://new.qq.com/rain/a/20240521A02VPJ00\",\"Datetime\":\"2024-05-21 10:55:22\"},{\"Title\":\"现货黄金涨超1%至2439.19美元/盎司再度刷新历史新高\",\"Url\":\"https://new.qq.com/rain/a/20240520A01GR300\",\"Datetime\":\"2024-05-20 09:12:19\"},{\"Title\":\"现货黄金涨幅扩大至约1.2%重返2370美元/盎司上方\",\"Url\":\"https://new.qq.com/rain/a/20240415A00H6I00\",\"Datetime\":\"2024-04-15 06:42:23\"},{\"Title\":\"现货黄金首次涨穿2300美元/盎司关口\",\"Url\":\"https://new.qq.com/rain/a/20240404A00BDK00\",\"Datetime\":\"2024-04-04 04:48:12\"},{\"Title\":\"现货黄金盘中再创历史新高达2236美元/盎司\",\"Url\":\"https://new.qq.com/rain/a/20240329A00P7I00\",\"Datetime\":\"2024-03-29 07:30:14\"},{\"Title\":\"国内黄金首饰价格突破645元/克\",\"Url\":\"https://new.qq.com/rain/a/20240305A096Z000\",\"Datetime\":\"2024-03-05 20:06:29\"},{\"Title\":\"纽约金价首次收盘站上2100美元\",\"Url\":\"https://new.qq.com/rain/a/20240305A01GFM00\",\"Datetime\":\"2024-03-05 09:18:26\"},{\"Title\":\"CFTC数据显示黄金看涨情绪创三周新高\",\"Url\":\"https://new.qq.com/rain/a/20240302A00ISM00\",\"Datetime\":\"2024-03-02 04:48:30\"}]},\"Created\":1729665606,\"Id\":\"962eac85-9d4d-47d5-87df-0f68e2c54ffe\",\"Usage\":{\"PromptTokens\":6,\"CompletionTokens\":2068,\"TotalTokens\":2074}}",
|
70
70
|
"title": "深度研究示例"
|
71
71
|
}
|
@@ -1473,6 +1473,58 @@ def doGetRoomEvent(args, parsed_globals):
|
|
1473
1473
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1474
1474
|
|
1475
1475
|
|
1476
|
+
def doDeleteUser(args, parsed_globals):
|
1477
|
+
g_param = parse_global_arg(parsed_globals)
|
1478
|
+
|
1479
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1480
|
+
cred = credential.CVMRoleCredential()
|
1481
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1482
|
+
cred = credential.STSAssumeRoleCredential(
|
1483
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1484
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1485
|
+
)
|
1486
|
+
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):
|
1487
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1488
|
+
else:
|
1489
|
+
cred = credential.Credential(
|
1490
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1491
|
+
)
|
1492
|
+
http_profile = HttpProfile(
|
1493
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1494
|
+
reqMethod="POST",
|
1495
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1496
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1497
|
+
)
|
1498
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1499
|
+
if g_param[OptionsDefine.Language]:
|
1500
|
+
profile.language = g_param[OptionsDefine.Language]
|
1501
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1502
|
+
client = mod.LcicClient(cred, g_param[OptionsDefine.Region], profile)
|
1503
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1504
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1505
|
+
model = models.DeleteUserRequest()
|
1506
|
+
model.from_json_string(json.dumps(args))
|
1507
|
+
start_time = time.time()
|
1508
|
+
while True:
|
1509
|
+
rsp = client.DeleteUser(model)
|
1510
|
+
result = rsp.to_json_string()
|
1511
|
+
try:
|
1512
|
+
json_obj = json.loads(result)
|
1513
|
+
except TypeError as e:
|
1514
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1515
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1516
|
+
break
|
1517
|
+
cur_time = time.time()
|
1518
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1519
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1520
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1521
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1522
|
+
else:
|
1523
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1524
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1525
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1526
|
+
|
1527
|
+
|
1476
1528
|
def doDescribeRoom(args, parsed_globals):
|
1477
1529
|
g_param = parse_global_arg(parsed_globals)
|
1478
1530
|
|
@@ -1837,7 +1889,7 @@ def doDeleteSupervisor(args, parsed_globals):
|
|
1837
1889
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1838
1890
|
|
1839
1891
|
|
1840
|
-
def
|
1892
|
+
def doDescribeRoomStatistics(args, parsed_globals):
|
1841
1893
|
g_param = parse_global_arg(parsed_globals)
|
1842
1894
|
|
1843
1895
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1866,11 +1918,11 @@ def doDeleteUser(args, parsed_globals):
|
|
1866
1918
|
client = mod.LcicClient(cred, g_param[OptionsDefine.Region], profile)
|
1867
1919
|
client._sdkVersion += ("_CLI_" + __version__)
|
1868
1920
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1869
|
-
model = models.
|
1921
|
+
model = models.DescribeRoomStatisticsRequest()
|
1870
1922
|
model.from_json_string(json.dumps(args))
|
1871
1923
|
start_time = time.time()
|
1872
1924
|
while True:
|
1873
|
-
rsp = client.
|
1925
|
+
rsp = client.DescribeRoomStatistics(model)
|
1874
1926
|
result = rsp.to_json_string()
|
1875
1927
|
try:
|
1876
1928
|
json_obj = json.loads(result)
|
@@ -1941,7 +1993,7 @@ def doRegisterUser(args, parsed_globals):
|
|
1941
1993
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1942
1994
|
|
1943
1995
|
|
1944
|
-
def
|
1996
|
+
def doDescribeRecordTask(args, parsed_globals):
|
1945
1997
|
g_param = parse_global_arg(parsed_globals)
|
1946
1998
|
|
1947
1999
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1970,11 +2022,11 @@ def doDescribeRoomStatistics(args, parsed_globals):
|
|
1970
2022
|
client = mod.LcicClient(cred, g_param[OptionsDefine.Region], profile)
|
1971
2023
|
client._sdkVersion += ("_CLI_" + __version__)
|
1972
2024
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1973
|
-
model = models.
|
2025
|
+
model = models.DescribeRecordTaskRequest()
|
1974
2026
|
model.from_json_string(json.dumps(args))
|
1975
2027
|
start_time = time.time()
|
1976
2028
|
while True:
|
1977
|
-
rsp = client.
|
2029
|
+
rsp = client.DescribeRecordTask(model)
|
1978
2030
|
result = rsp.to_json_string()
|
1979
2031
|
try:
|
1980
2032
|
json_obj = json.loads(result)
|
@@ -3540,6 +3592,7 @@ ACTION_MAP = {
|
|
3540
3592
|
"ModifyUserProfile": doModifyUserProfile,
|
3541
3593
|
"BatchDeleteGroupMember": doBatchDeleteGroupMember,
|
3542
3594
|
"GetRoomEvent": doGetRoomEvent,
|
3595
|
+
"DeleteUser": doDeleteUser,
|
3543
3596
|
"DescribeRoom": doDescribeRoom,
|
3544
3597
|
"DescribeDocuments": doDescribeDocuments,
|
3545
3598
|
"SendRoomNormalMessage": doSendRoomNormalMessage,
|
@@ -3547,9 +3600,9 @@ ACTION_MAP = {
|
|
3547
3600
|
"CreateGroupWithSubGroup": doCreateGroupWithSubGroup,
|
3548
3601
|
"GetRoomMessage": doGetRoomMessage,
|
3549
3602
|
"DeleteSupervisor": doDeleteSupervisor,
|
3550
|
-
"DeleteUser": doDeleteUser,
|
3551
|
-
"RegisterUser": doRegisterUser,
|
3552
3603
|
"DescribeRoomStatistics": doDescribeRoomStatistics,
|
3604
|
+
"RegisterUser": doRegisterUser,
|
3605
|
+
"DescribeRecordTask": doDescribeRecordTask,
|
3553
3606
|
"BindDocumentToRoom": doBindDocumentToRoom,
|
3554
3607
|
"LoginOriginId": doLoginOriginId,
|
3555
3608
|
"ForbidSendMsg": doForbidSendMsg,
|