tccli 3.0.1090.1__py2.py3-none-any.whl → 3.0.1092.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/examples/ccc/v20200210/UploadIvrAudio.md +16 -1
- tccli/examples/cdb/v20170320/CheckMigrateCluster.md +18 -0
- tccli/examples/cdb/v20170320/DescribeClusterInfo.md +59 -0
- tccli/examples/csip/v20221121/DescribeAssetViewVulRiskList.md +5 -302
- tccli/examples/domain/v20180808/BidPreDomains.md +21 -0
- tccli/examples/domain/v20180808/DescribeReservedBidInfo.md +43 -0
- tccli/examples/domain/v20180808/DescribeReservedPreDomainInfo.md +31 -0
- tccli/examples/es/v20180416/UpdateInstance.md +27 -27
- tccli/examples/es/v20180416/UpdatePlugins.md +6 -6
- tccli/examples/ess/v20201111/CreateBatchOrganizationRegistrationTasks.md +146 -0
- tccli/examples/ess/v20201111/CreateOrganizationAuthUrl.md +18 -0
- tccli/examples/ess/v20201111/CreateOrganizationBatchSignUrl.md +28 -0
- tccli/examples/gs/v20191118/StartPublishStreamToCSS.md +20 -0
- tccli/examples/hunyuan/v20230901/ChatPro.md +69 -31
- tccli/examples/hunyuan/v20230901/ChatStd.md +40 -1
- tccli/examples/lke/v20231130/CheckAttributeLabelExist.md +24 -0
- tccli/examples/lke/v20231130/CheckAttributeLabelRefer.md +23 -0
- tccli/examples/lke/v20231130/CreateApp.md +24 -0
- tccli/examples/lke/v20231130/CreateAttributeLabel.md +24 -0
- tccli/examples/lke/v20231130/CreateCorp.md +24 -0
- tccli/examples/lke/v20231130/CreateQA.md +24 -0
- tccli/examples/lke/v20231130/CreateQACate.md +26 -0
- tccli/examples/lke/v20231130/CreateRejectedQuestion.md +22 -0
- tccli/examples/lke/v20231130/CreateRelease.md +21 -0
- tccli/examples/lke/v20231130/DeleteApp.md +21 -0
- tccli/examples/lke/v20231130/DeleteAttributeLabel.md +21 -0
- tccli/examples/lke/v20231130/DeleteDoc.md +21 -0
- tccli/examples/lke/v20231130/DeleteQA.md +21 -0
- tccli/examples/lke/v20231130/DeleteQACate.md +21 -0
- tccli/examples/lke/v20231130/DeleteRejectedQuestion.md +21 -0
- tccli/examples/lke/v20231130/DescribeApp.md +29 -0
- tccli/examples/lke/v20231130/DescribeAttributeLabel.md +28 -0
- tccli/examples/lke/v20231130/DescribeCorp.md +21 -0
- tccli/examples/lke/v20231130/DescribeDoc.md +44 -0
- tccli/examples/lke/v20231130/DescribeQA.md +42 -0
- tccli/examples/lke/v20231130/DescribeRefer.md +35 -0
- tccli/examples/lke/v20231130/DescribeRelease.md +25 -0
- tccli/examples/lke/v20231130/DescribeReleaseInfo.md +24 -0
- tccli/examples/lke/v20231130/DescribeRobotBizIDByAppKey.md +21 -0
- tccli/examples/lke/v20231130/DescribeStorageCredential.md +32 -0
- tccli/examples/lke/v20231130/DescribeUnsatisfiedReplyContext.md +121 -0
- tccli/examples/lke/v20231130/ExportAttributeLabel.md +21 -0
- tccli/examples/lke/v20231130/ExportQAList.md +21 -0
- tccli/examples/lke/v20231130/ExportUnsatisfiedReply.md +21 -0
- tccli/examples/lke/v20231130/GenerateQA.md +21 -0
- tccli/examples/lke/v20231130/GetAppKnowledgeCount.md +22 -0
- tccli/examples/lke/v20231130/GetAppSecret.md +24 -0
- tccli/examples/lke/v20231130/GetDocPreview.md +26 -0
- tccli/examples/lke/v20231130/GetEmbedding.md +29 -0
- tccli/examples/lke/v20231130/GetMsgRecord.md +51 -0
- tccli/examples/lke/v20231130/GetTaskStatus.md +0 -0
- tccli/examples/lke/v20231130/GetWsToken.md +44 -0
- tccli/examples/lke/v20231130/GroupQA.md +44 -0
- tccli/examples/lke/v20231130/IgnoreUnsatisfiedReply.md +21 -0
- tccli/examples/lke/v20231130/IsTransferIntent.md +22 -0
- tccli/examples/lke/v20231130/ListApp.md +36 -0
- tccli/examples/lke/v20231130/ListAppCategory.md +25 -0
- tccli/examples/lke/v20231130/ListAttributeLabel.md +33 -0
- tccli/examples/lke/v20231130/ListDoc.md +52 -0
- tccli/examples/lke/v20231130/ListModel.md +31 -0
- tccli/examples/lke/v20231130/ListQA.md +66 -0
- tccli/examples/lke/v20231130/ListQACate.md +41 -0
- tccli/examples/lke/v20231130/ListRejectedQuestion.md +52 -0
- tccli/examples/lke/v20231130/ListRejectedQuestionPreview.md +37 -0
- tccli/examples/lke/v20231130/ListRelease.md +36 -0
- tccli/examples/lke/v20231130/ListReleaseConfigPreview.md +129 -0
- tccli/examples/lke/v20231130/ListReleaseDocPreview.md +38 -0
- tccli/examples/lke/v20231130/ListReleaseQAPreview.md +107 -0
- tccli/examples/lke/v20231130/ListSelectDoc.md +27 -0
- tccli/examples/lke/v20231130/ListUnsatisfiedReply.md +24 -0
- tccli/examples/lke/v20231130/ModifyApp.md +25 -0
- tccli/examples/lke/v20231130/ModifyAttributeLabel.md +23 -0
- tccli/examples/lke/v20231130/ModifyDoc.md +25 -0
- tccli/examples/lke/v20231130/ModifyDocAttrRange.md +25 -0
- tccli/examples/lke/v20231130/ModifyQA.md +24 -0
- tccli/examples/lke/v20231130/ModifyQAAttrRange.md +25 -0
- tccli/examples/lke/v20231130/ModifyQACate.md +22 -0
- tccli/examples/lke/v20231130/ModifyRejectedQuestion.md +22 -0
- tccli/examples/lke/v20231130/ParseDoc.md +25 -0
- tccli/examples/lke/v20231130/QueryParseDocResult.md +24 -0
- tccli/examples/lke/v20231130/QueryRewrite.md +25 -0
- tccli/examples/lke/v20231130/RateMsgRecord.md +22 -0
- tccli/examples/lke/v20231130/ResetSession.md +20 -0
- tccli/examples/lke/v20231130/RetryDocAudit.md +21 -0
- tccli/examples/lke/v20231130/RetryDocParse.md +21 -0
- tccli/examples/lke/v20231130/RetryRelease.md +21 -0
- tccli/examples/lke/v20231130/SaveDoc.md +34 -0
- tccli/examples/lke/v20231130/StopDocParse.md +21 -0
- tccli/examples/lke/v20231130/UploadAttributeLabel.md +27 -0
- tccli/examples/lke/v20231130/VerifyQA.md +27 -0
- tccli/examples/mna/v20210119/GetFlowPackages.md +3 -1
- tccli/examples/mna/v20210119/GetFlowStatistic.md +42 -0
- tccli/examples/ocr/v20181119/GeneralBasicOCR.md +0 -1
- tccli/examples/organization/v20210331/AddOrganizationNode.md +1 -1
- tccli/examples/organization/v20210331/BindOrganizationMemberAuthAccount.md +3 -3
- tccli/examples/organization/v20210331/CancelOrganizationMemberAuthAccount.md +3 -3
- tccli/examples/organization/v20210331/CheckAccountDelete.md +5 -5
- tccli/examples/organization/v20210331/CreateOrganizationMember.md +2 -2
- tccli/examples/organization/v20210331/CreateOrganizationMemberAuthIdentity.md +1 -1
- tccli/examples/organization/v20210331/CreateOrganizationMemberPolicy.md +5 -5
- tccli/examples/organization/v20210331/CreateOrganizationMembersPolicy.md +2 -2
- tccli/examples/organization/v20210331/DeleteOrganizationMembers.md +1 -1
- tccli/examples/organization/v20210331/DeleteOrganizationNodes.md +1 -1
- tccli/examples/organization/v20210331/DeleteShareUnitResources.md +1 -1
- tccli/examples/organization/v20210331/DescribeOrganizationMemberAuthAccounts.md +2 -2
- tccli/examples/organization/v20210331/DescribeOrganizationMemberPolicies.md +1 -1
- tccli/examples/organization/v20210331/MoveOrganizationNodeMembers.md +2 -2
- tccli/examples/organization/v20210331/QuitOrganization.md +1 -1
- tccli/examples/organization/v20210331/UpdateOrganizationMember.md +2 -2
- tccli/examples/organization/v20210331/UpdateOrganizationMemberEmailBind.md +3 -3
- tccli/examples/organization/v20210331/UpdateOrganizationNode.md +3 -2
- tccli/examples/sqlserver/v20180328/DescribeDBInstancesAttribute.md +7 -1
- tccli/examples/sqlserver/v20180328/DescribeRestoreTimeRange.md +23 -0
- tccli/examples/ssl/v20191205/DeployCertificateInstance.md +26 -1
- tccli/examples/tione/v20211111/CreateBatchTask.md +1 -0
- tccli/services/__init__.py +3 -0
- tccli/services/aiart/v20221229/api.json +7 -7
- tccli/services/antiddos/v20200309/api.json +10 -0
- tccli/services/asr/v20190614/api.json +6 -6
- tccli/services/captcha/v20190722/api.json +75 -31
- tccli/services/ccc/v20200210/api.json +10 -0
- tccli/services/ccc/v20200210/examples.json +1 -1
- tccli/services/cdb/cdb_client.py +106 -0
- tccli/services/cdb/v20170320/api.json +255 -0
- tccli/services/cdb/v20170320/examples.json +16 -0
- tccli/services/cdn/v20180606/api.json +4 -4
- tccli/services/cfg/v20210820/api.json +30 -33
- tccli/services/ckafka/v20190819/api.json +29 -24
- tccli/services/csip/v20221121/api.json +17 -11
- tccli/services/csip/v20221121/examples.json +1 -1
- tccli/services/domain/domain_client.py +114 -8
- tccli/services/domain/v20180808/api.json +174 -1
- tccli/services/domain/v20180808/examples.json +22 -0
- tccli/services/dts/v20211206/api.json +22 -2
- tccli/services/es/v20180416/api.json +12 -12
- tccli/services/es/v20180416/examples.json +21 -21
- tccli/services/ess/ess_client.py +149 -43
- tccli/services/ess/v20201111/api.json +215 -5
- tccli/services/ess/v20201111/examples.json +34 -0
- tccli/services/essbasic/v20210526/api.json +15 -15
- tccli/services/faceid/v20180301/api.json +14 -5
- tccli/services/gs/gs_client.py +53 -0
- tccli/services/gs/v20191118/api.json +43 -0
- tccli/services/gs/v20191118/examples.json +8 -0
- tccli/services/hunyuan/v20230901/api.json +67 -21
- tccli/services/hunyuan/v20230901/examples.json +17 -5
- tccli/services/iai/v20180301/api.json +19 -19
- tccli/services/iss/v20230517/api.json +38 -0
- tccli/services/live/v20180801/api.json +12 -12
- tccli/services/lke/__init__.py +4 -0
- tccli/services/lke/lke_client.py +4117 -0
- tccli/services/lke/v20231130/api.json +9010 -0
- tccli/services/lke/v20231130/examples.json +617 -0
- tccli/services/mna/v20210119/api.json +249 -29
- tccli/services/mna/v20210119/examples.json +7 -1
- tccli/services/monitor/monitor_client.py +0 -53
- tccli/services/monitor/v20180724/api.json +30 -62
- tccli/services/monitor/v20180724/examples.json +0 -8
- tccli/services/ocr/v20181119/api.json +5 -0
- tccli/services/ocr/v20181119/examples.json +1 -1
- tccli/services/organization/v20210331/api.json +128 -119
- tccli/services/organization/v20210331/examples.json +24 -24
- tccli/services/redis/v20180412/api.json +1 -1
- tccli/services/scf/v20180416/api.json +18 -9
- tccli/services/sms/v20210111/api.json +1 -1
- tccli/services/soe/v20180724/api.json +13 -13
- tccli/services/sqlserver/sqlserver_client.py +110 -57
- tccli/services/sqlserver/v20180328/api.json +109 -0
- tccli/services/sqlserver/v20180328/examples.json +9 -1
- tccli/services/ssl/v20191205/examples.json +7 -1
- tccli/services/tione/v20211111/api.json +61 -4
- tccli/services/tione/v20211111/examples.json +1 -1
- tccli/services/trtc/v20190722/api.json +79 -10
- tccli/services/wedata/v20210820/api.json +295 -1437
- tccli/services/wedata/v20210820/examples.json +0 -88
- tccli/services/wedata/wedata_client.py +33 -616
- {tccli-3.0.1090.1.dist-info → tccli-3.0.1092.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1090.1.dist-info → tccli-3.0.1092.1.dist-info}/RECORD +182 -95
- {tccli-3.0.1090.1.dist-info → tccli-3.0.1092.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1090.1.dist-info → tccli-3.0.1092.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1090.1.dist-info → tccli-3.0.1092.1.dist-info}/license_files/LICENSE +0 -0
@@ -28,6 +28,13 @@
|
|
28
28
|
"output": "StartPublishStreamResponse",
|
29
29
|
"status": "online"
|
30
30
|
},
|
31
|
+
"StartPublishStreamToCSS": {
|
32
|
+
"document": "开始云端推流",
|
33
|
+
"input": "StartPublishStreamToCSSRequest",
|
34
|
+
"name": "开始云端推流到云直播",
|
35
|
+
"output": "StartPublishStreamToCSSResponse",
|
36
|
+
"status": "online"
|
37
|
+
},
|
31
38
|
"StopGame": {
|
32
39
|
"document": "强制退出游戏",
|
33
40
|
"input": "StopGameRequest",
|
@@ -415,6 +422,42 @@
|
|
415
422
|
],
|
416
423
|
"type": "object"
|
417
424
|
},
|
425
|
+
"StartPublishStreamToCSSRequest": {
|
426
|
+
"document": "StartPublishStreamToCSS请求参数结构体",
|
427
|
+
"members": [
|
428
|
+
{
|
429
|
+
"disabled": false,
|
430
|
+
"document": "唯一用户身份标识,由业务方自定义,平台不予理解。(可根据业务需要决定使用用户的唯一身份标识或是使用时间戳随机生成;在用户重连时应保持UserId不变)",
|
431
|
+
"example": "abc123",
|
432
|
+
"member": "string",
|
433
|
+
"name": "UserId",
|
434
|
+
"required": true,
|
435
|
+
"type": "string"
|
436
|
+
},
|
437
|
+
{
|
438
|
+
"disabled": false,
|
439
|
+
"document": "推流参数,推流时携带自定义参数。",
|
440
|
+
"example": "bar=1&foo=2",
|
441
|
+
"member": "string",
|
442
|
+
"name": "PublishStreamArgs",
|
443
|
+
"required": false,
|
444
|
+
"type": "string"
|
445
|
+
}
|
446
|
+
],
|
447
|
+
"type": "object"
|
448
|
+
},
|
449
|
+
"StartPublishStreamToCSSResponse": {
|
450
|
+
"document": "StartPublishStreamToCSS返回参数结构体",
|
451
|
+
"members": [
|
452
|
+
{
|
453
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
454
|
+
"member": "string",
|
455
|
+
"name": "RequestId",
|
456
|
+
"type": "string"
|
457
|
+
}
|
458
|
+
],
|
459
|
+
"type": "object"
|
460
|
+
},
|
418
461
|
"StopGameRequest": {
|
419
462
|
"document": "StopGame请求参数结构体",
|
420
463
|
"members": [
|
@@ -32,6 +32,14 @@
|
|
32
32
|
"title": "开始云端推流"
|
33
33
|
}
|
34
34
|
],
|
35
|
+
"StartPublishStreamToCSS": [
|
36
|
+
{
|
37
|
+
"document": "",
|
38
|
+
"input": "POST / HTTP/1.1\nHost: gs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartPublishStreamToCSS\n<公共请求参数>\n\n{\n \"UserId\": \"abc123\"\n}",
|
39
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"4eb17e58-68da-4e9a-b298-0894723c9022\"\n }\n}",
|
40
|
+
"title": "StartPublishStreamToCSS 示例"
|
41
|
+
}
|
42
|
+
],
|
35
43
|
"StopGame": [
|
36
44
|
{
|
37
45
|
"document": "",
|
@@ -1,14 +1,14 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
3
|
"ChatPro": {
|
4
|
-
"document": "
|
4
|
+
"document": "腾讯混元大模型高级版是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。\n\n 1. 本接口暂不支持返回图片内容。\n 2. 默认单账号限制并发数为 5 路,如您有提高并发限制的需求请 [联系我们](https://cloud.tencent.com/act/event/Online_service) 。\n 3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。",
|
5
5
|
"input": "ChatProRequest",
|
6
6
|
"name": "腾讯混元大模型高级版",
|
7
7
|
"output": "ChatProResponse",
|
8
8
|
"status": "online"
|
9
9
|
},
|
10
10
|
"ChatStd": {
|
11
|
-
"document": "
|
11
|
+
"document": "腾讯混元大模型标准版是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。\n\n 1. 本接口暂不支持返回图片内容。\n 2. 默认单账号限制并发数为 5 路,如您有提高并发限制的需求请 [联系我们](https://cloud.tencent.com/act/event/Online_service) 。\n 3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。",
|
12
12
|
"input": "ChatStdRequest",
|
13
13
|
"name": "腾讯混元大模型标准版",
|
14
14
|
"output": "ChatStdResponse",
|
@@ -41,7 +41,7 @@
|
|
41
41
|
"members": [
|
42
42
|
{
|
43
43
|
"disabled": false,
|
44
|
-
"document": "聊天上下文信息。\n说明:\n1
|
44
|
+
"document": "聊天上下文信息。\n说明:\n1. 长度最多为 40,按对话时间从旧到新在数组中排列。\n2. Message 的 Role 当前可选值:system、user、assistant。其中,system 角色是可选的,如果存在,必须位于列表的最开始。此外,user 和 assistant 需交替出现(一问一答),以 user 提问开始和结束,且 Content 不能为空。Role 的顺序示例:[system(可选) user assistant user assistant user ...]。\n3. Messages 中 Content 总长度不超过 16000 Token,超过则会截断最前面的内容,只保留尾部内容。建议不超过 4000 Token。",
|
45
45
|
"example": "无",
|
46
46
|
"member": "Message",
|
47
47
|
"name": "Messages",
|
@@ -50,7 +50,7 @@
|
|
50
50
|
},
|
51
51
|
{
|
52
52
|
"disabled": false,
|
53
|
-
"document": "说明:\n1
|
53
|
+
"document": "说明:\n1. 影响输出文本的多样性,取值越大,生成文本的多样性越强。\n2. 默认 1.0,取值区间为 [0.0, 1.0]。\n3. 非必要不建议使用,不合理的取值会影响效果。",
|
54
54
|
"example": "无",
|
55
55
|
"member": "float",
|
56
56
|
"name": "TopP",
|
@@ -59,12 +59,30 @@
|
|
59
59
|
},
|
60
60
|
{
|
61
61
|
"disabled": false,
|
62
|
-
"document": "说明:\n1
|
62
|
+
"document": "说明:\n1. 较高的数值会使输出更加随机,而较低的数值会使其更加集中和确定。\n2. 默认 1.0,取值区间为 [0.0,2.0]。\n3. 非必要不建议使用,不合理的取值会影响效果。",
|
63
63
|
"example": "无",
|
64
64
|
"member": "float",
|
65
65
|
"name": "Temperature",
|
66
66
|
"required": false,
|
67
67
|
"type": "float"
|
68
|
+
},
|
69
|
+
{
|
70
|
+
"disabled": false,
|
71
|
+
"document": "流式调用开关。\n说明:\n1. 未传值时默认为流式调用。\n2. 流式调用时以 SSE 协议增量返回结果。\n3. 非流式调用时接口响应耗时较长,非必要不建议使用。\n4. 非流式调用时只返回一次最终结果,调用方式与普通 HTTP 请求无异。",
|
72
|
+
"example": "true",
|
73
|
+
"member": "bool",
|
74
|
+
"name": "Stream",
|
75
|
+
"required": false,
|
76
|
+
"type": "bool"
|
77
|
+
},
|
78
|
+
{
|
79
|
+
"disabled": false,
|
80
|
+
"document": "流式输出审核开关。\n说明:\n1. 当 Stream 字段值为 true 时,该字段有效。\n2. 未传值时默认不使用流式输出审核。\n3. 如果值为 true,将对输出内容进行分段审核,审核通过的内容流式输出返回。如果出现审核不过,响应中的 finish_reason 值为 sensitive。\n4. 如果值为 false,则需要审核完所有输出内容后再返回结果。\n\n注意:\n当选择流式输出审核时,可能会出现部分内容已输出,但中间某一段响应中的 finish_reason 值为 sensitive,此时说明安全审核未通过。如果业务场景有实时文字上屏的需求,需要自行撤回已上屏的内容,并建议自定义替换为一条提示语,如 “这个问题我不方便回答,不如我们换个话题试试”,以保障终端体验。",
|
81
|
+
"example": "false",
|
82
|
+
"member": "bool",
|
83
|
+
"name": "StreamModeration",
|
84
|
+
"required": false,
|
85
|
+
"type": "bool"
|
68
86
|
}
|
69
87
|
],
|
70
88
|
"type": "object"
|
@@ -74,7 +92,7 @@
|
|
74
92
|
"members": [
|
75
93
|
{
|
76
94
|
"disabled": false,
|
77
|
-
"document": "
|
95
|
+
"document": "Unix 时间戳,单位为秒。",
|
78
96
|
"example": "无",
|
79
97
|
"member": "int64",
|
80
98
|
"name": "Created",
|
@@ -84,7 +102,7 @@
|
|
84
102
|
},
|
85
103
|
{
|
86
104
|
"disabled": false,
|
87
|
-
"document": "
|
105
|
+
"document": "Token 统计信息。\n按照总 Token 数量计费。",
|
88
106
|
"example": "无",
|
89
107
|
"member": "Usage",
|
90
108
|
"name": "Usage",
|
@@ -104,7 +122,7 @@
|
|
104
122
|
},
|
105
123
|
{
|
106
124
|
"disabled": false,
|
107
|
-
"document": "本轮对话的
|
125
|
+
"document": "本轮对话的 ID。",
|
108
126
|
"example": "无",
|
109
127
|
"member": "string",
|
110
128
|
"name": "Id",
|
@@ -146,7 +164,7 @@
|
|
146
164
|
"members": [
|
147
165
|
{
|
148
166
|
"disabled": false,
|
149
|
-
"document": "聊天上下文信息。\n说明:\n1
|
167
|
+
"document": "聊天上下文信息。\n说明:\n1. 长度最多为 40,按对话时间从旧到新在数组中排列。\n2. Message 的 Role 当前可选值:user、assistant。其中,user 和 assistant 需交替出现(一问一答),以 user 提问开始和结束,且 Content 不能为空。Role 的顺序示例:[user assistant user assistant user ...]。\n3. Messages 中 Content 总长度不超过 16000 Token,超过则会截断最前面的内容,只保留尾部内容。建议不超过 4000 Token。\n",
|
150
168
|
"example": "无",
|
151
169
|
"member": "Message",
|
152
170
|
"name": "Messages",
|
@@ -155,7 +173,7 @@
|
|
155
173
|
},
|
156
174
|
{
|
157
175
|
"disabled": false,
|
158
|
-
"document": "说明:\n1
|
176
|
+
"document": "说明:\n1. 影响输出文本的多样性,取值越大,生成文本的多样性越强。\n2. 默认 1.0,取值区间为 [0.0, 1.0]。\n3. 非必要不建议使用,不合理的取值会影响效果。",
|
159
177
|
"example": "无",
|
160
178
|
"member": "float",
|
161
179
|
"name": "TopP",
|
@@ -164,12 +182,30 @@
|
|
164
182
|
},
|
165
183
|
{
|
166
184
|
"disabled": false,
|
167
|
-
"document": "说明:\n1
|
185
|
+
"document": "说明:\n1. 较高的数值会使输出更加随机,而较低的数值会使其更加集中和确定。\n2. 默认 1.0,取值区间为 [0.0,2.0]。\n3. 非必要不建议使用,不合理的取值会影响效果。",
|
168
186
|
"example": "无",
|
169
187
|
"member": "float",
|
170
188
|
"name": "Temperature",
|
171
189
|
"required": false,
|
172
190
|
"type": "float"
|
191
|
+
},
|
192
|
+
{
|
193
|
+
"disabled": false,
|
194
|
+
"document": "流式调用开关。\n说明:\n1. 未传值时默认为流式调用。\n2. 流式调用时以 SSE 协议增量返回结果。\n3. 非流式调用时接口响应耗时较长,非必要不建议使用。\n4. 非流式调用时只返回一次最终结果,调用方式与普通 HTTP 请求无异。",
|
195
|
+
"example": "true",
|
196
|
+
"member": "bool",
|
197
|
+
"name": "Stream",
|
198
|
+
"required": false,
|
199
|
+
"type": "bool"
|
200
|
+
},
|
201
|
+
{
|
202
|
+
"disabled": false,
|
203
|
+
"document": "流式输出审核开关。\n说明:\n1. 当 Stream 字段值为 true 时,该字段有效。\n2. 未传值时默认不使用流式输出审核。\n3. 如果值为 true,将对输出内容进行分段审核,审核通过的内容流式输出返回。如果出现审核不过,响应中的 finish_reason 值为 sensitive。\n4. 如果值为 false,则需要审核完所有输出内容后再返回结果。\n\n注意:\n当选择流式输出审核时,可能会出现部分内容已输出,但中间某一段响应中的 finish_reason 值为 sensitive,此时说明安全审核未通过。如果业务场景有实时文字上屏的需求,需要自行撤回已上屏的内容,并建议自定义替换为一条提示语,如 “这个问题我不方便回答,不如我们换个话题试试”,以保障终端体验。",
|
204
|
+
"example": "false",
|
205
|
+
"member": "bool",
|
206
|
+
"name": "StreamModeration",
|
207
|
+
"required": false,
|
208
|
+
"type": "bool"
|
173
209
|
}
|
174
210
|
],
|
175
211
|
"type": "object"
|
@@ -179,7 +215,7 @@
|
|
179
215
|
"members": [
|
180
216
|
{
|
181
217
|
"disabled": false,
|
182
|
-
"document": "
|
218
|
+
"document": "Unix 时间戳,单位为秒。",
|
183
219
|
"example": "无",
|
184
220
|
"member": "int64",
|
185
221
|
"name": "Created",
|
@@ -189,7 +225,7 @@
|
|
189
225
|
},
|
190
226
|
{
|
191
227
|
"disabled": false,
|
192
|
-
"document": "
|
228
|
+
"document": "Token 统计信息。\n按照总 Token 数量计费。",
|
193
229
|
"example": "无",
|
194
230
|
"member": "Usage",
|
195
231
|
"name": "Usage",
|
@@ -209,7 +245,7 @@
|
|
209
245
|
},
|
210
246
|
{
|
211
247
|
"disabled": false,
|
212
|
-
"document": "本轮对话的
|
248
|
+
"document": "本轮对话的 ID。",
|
213
249
|
"example": "无",
|
214
250
|
"member": "string",
|
215
251
|
"name": "Id",
|
@@ -251,7 +287,7 @@
|
|
251
287
|
"members": [
|
252
288
|
{
|
253
289
|
"disabled": false,
|
254
|
-
"document": "
|
290
|
+
"document": "结束标志位,为 stop 则表示尾包。",
|
255
291
|
"example": "无",
|
256
292
|
"member": "string",
|
257
293
|
"name": "FinishReason",
|
@@ -261,13 +297,23 @@
|
|
261
297
|
},
|
262
298
|
{
|
263
299
|
"disabled": false,
|
264
|
-
"document": "
|
300
|
+
"document": "增量返回值,流式调用时使用该字段。\n注意:此字段可能返回 null,表示取不到有效值。",
|
265
301
|
"example": "无",
|
266
302
|
"member": "Delta",
|
267
303
|
"name": "Delta",
|
268
304
|
"output_required": false,
|
269
305
|
"type": "object",
|
270
|
-
"value_allowed_null":
|
306
|
+
"value_allowed_null": true
|
307
|
+
},
|
308
|
+
{
|
309
|
+
"disabled": false,
|
310
|
+
"document": "返回值,非流式调用时使用该字段。\n注意:此字段可能返回 null,表示取不到有效值。",
|
311
|
+
"example": "无",
|
312
|
+
"member": "Message",
|
313
|
+
"name": "Message",
|
314
|
+
"output_required": false,
|
315
|
+
"type": "object",
|
316
|
+
"value_allowed_null": true
|
271
317
|
}
|
272
318
|
],
|
273
319
|
"usage": "out"
|
@@ -491,12 +537,12 @@
|
|
491
537
|
"type": "object"
|
492
538
|
},
|
493
539
|
"Message": {
|
494
|
-
"document": "
|
540
|
+
"document": "单条消息",
|
495
541
|
"members": [
|
496
542
|
{
|
497
543
|
"disabled": false,
|
498
544
|
"document": "角色",
|
499
|
-
"example": "
|
545
|
+
"example": "[\"system\", \"user\", \"assistant\"]",
|
500
546
|
"member": "string",
|
501
547
|
"name": "Role",
|
502
548
|
"output_required": false,
|
@@ -506,8 +552,8 @@
|
|
506
552
|
},
|
507
553
|
{
|
508
554
|
"disabled": false,
|
509
|
-
"document": "
|
510
|
-
"example": "
|
555
|
+
"document": "消息内容",
|
556
|
+
"example": "你好!",
|
511
557
|
"member": "string",
|
512
558
|
"name": "Content",
|
513
559
|
"output_required": false,
|
@@ -4,13 +4,13 @@
|
|
4
4
|
{
|
5
5
|
"document": "system提示词",
|
6
6
|
"input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChatPro\n<公共请求参数>\n\n{\n \"TopP\": 1,\n \"Temperature\": 1,\n \"Messages\": [\n {\n \"Role\": \"system\",\n \"Content\": \"将英文单词转换为包括中文翻译、英文释义和一个例句的完整解释。请检查所有信息是否准确,并在回答时保持简洁,不需要任何其他反馈。\"\n },\n {\n \"Role\": \"user\",\n \"Content\": \"nice\"\n }\n ]\n}",
|
7
|
-
"output": "
|
7
|
+
"output": "{\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"很好\"}}],\"Created\":1705634813,\"Id\":\"681ef57e-9f1e-4faa-a2d3-07b655a1fa1f\",\"Usage\":{\"PromptTokens\":36,\"CompletionTokens\":1,\"TotalTokens\":37}}\n{\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\":\"}}],\"Created\":1705634813,\"Id\":\"681ef57e-9f1e-4faa-a2d3-07b655a1fa1f\",\"Usage\":{\"PromptTokens\":36,\"CompletionTokens\":2,\"TotalTokens\":38}}\n{\"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{\"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{\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"英文\"}}],\"Created\":1705634814,\"Id\":\"681ef57e-9f1e-4faa-a2d3-07b655a1fa1f\",\"Usage\":{\"PromptTokens\":36,\"CompletionTokens\":5,\"TotalTokens\":41}}\n{\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"释义\"}}],\"Created\":1705634814,\"Id\":\"681ef57e-9f1e-4faa-a2d3-07b655a1fa1f\",\"Usage\":{\"PromptTokens\":36,\"CompletionTokens\":6,\"TotalTokens\":42}}\n{\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\":\"}}],\"Created\":1705634814,\"Id\":\"681ef57e-9f1e-4faa-a2d3-07b655a1fa1f\",\"Usage\":{\"PromptTokens\":36,\"CompletionTokens\":7,\"TotalTokens\":43}}\n{\"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{\"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{\"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{\"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{\"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{\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"例\"}}],\"Created\":1705634814,\"Id\":\"681ef57e-9f1e-4faa-a2d3-07b655a1fa1f\",\"Usage\":{\"PromptTokens\":36,\"CompletionTokens\":13,\"TotalTokens\":49}}\n{\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"句\"}}],\"Created\":1705634814,\"Id\":\"681ef57e-9f1e-4faa-a2d3-07b655a1fa1f\",\"Usage\":{\"PromptTokens\":36,\"CompletionTokens\":14,\"TotalTokens\":50}}\n{\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\":\"}}],\"Created\":1705634814,\"Id\":\"681ef57e-9f1e-4faa-a2d3-07b655a1fa1f\",\"Usage\":{\"PromptTokens\":36,\"CompletionTokens\":15,\"TotalTokens\":51}}\n{\"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{\"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{\"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{\"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{\"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{\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\".\"}}],\"Created\":1705634814,\"Id\":\"681ef57e-9f1e-4faa-a2d3-07b655a1fa1f\",\"Usage\":{\"PromptTokens\":36,\"CompletionTokens\":21,\"TotalTokens\":57}}\n{\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"stop\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"\"}}],\"Created\":1705634814,\"Id\":\"681ef57e-9f1e-4faa-a2d3-07b655a1fa1f\",\"Usage\":{\"PromptTokens\":36,\"CompletionTokens\":21,\"TotalTokens\":57}}",
|
8
8
|
"title": "system参数示例"
|
9
9
|
},
|
10
10
|
{
|
11
11
|
"document": "多轮对话场景",
|
12
12
|
"input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChatPro\n<公共请求参数>\n\n{\n \"TopP\": 1,\n \"Temperature\": 1,\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}",
|
13
|
-
"output": "
|
13
|
+
"output": "{\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"青蛙\"}}],\"Created\":1705634032,\"Id\":\"9c772634-8824-43e8-bc24-8bc4c19b9151\",\"Usage\":{\"PromptTokens\":85,\"CompletionTokens\":1,\"TotalTokens\":86}}\n{\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"跳\"}}],\"Created\":1705634032,\"Id\":\"9c772634-8824-43e8-bc24-8bc4c19b9151\",\"Usage\":{\"PromptTokens\":85,\"CompletionTokens\":2,\"TotalTokens\":87}}\n{\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"高\"}}],\"Created\":1705634032,\"Id\":\"9c772634-8824-43e8-bc24-8bc4c19b9151\",\"Usage\":{\"PromptTokens\":85,\"CompletionTokens\":3,\"TotalTokens\":88}}\n{\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\",\"}}],\"Created\":1705634032,\"Id\":\"9c772634-8824-43e8-bc24-8bc4c19b9151\",\"Usage\":{\"PromptTokens\":85,\"CompletionTokens\":4,\"TotalTokens\":89}}\n{\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"比\"}}],\"Created\":1705634032,\"Id\":\"9c772634-8824-43e8-bc24-8bc4c19b9151\",\"Usage\":{\"PromptTokens\":85,\"CompletionTokens\":5,\"TotalTokens\":90}}\n{\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"下马\"}}],\"Created\":1705634032,\"Id\":\"9c772634-8824-43e8-bc24-8bc4c19b9151\",\"Usage\":{\"PromptTokens\":85,\"CompletionTokens\":6,\"TotalTokens\":91}}\n{\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"。\"}}],\"Created\":1705634032,\"Id\":\"9c772634-8824-43e8-bc24-8bc4c19b9151\",\"Usage\":{\"PromptTokens\":85,\"CompletionTokens\":7,\"TotalTokens\":92}}\n{\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"FinishReason\":\"stop\",\"Delta\":{\"Role\":\"assistant\",\"Content\":\"\"}}],\"Created\":1705634032,\"Id\":\"9c772634-8824-43e8-bc24-8bc4c19b9151\",\"Usage\":{\"PromptTokens\":85,\"CompletionTokens\":7,\"TotalTokens\":92}}",
|
14
14
|
"title": "多轮对话示例"
|
15
15
|
},
|
16
16
|
{
|
@@ -23,7 +23,13 @@
|
|
23
23
|
"document": "",
|
24
24
|
"input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChatPro\n<公共请求参数>\n\n{\n \"TopP\": 1,\n \"Temperature\": 1,\n \"Messages\": [\n {\n \"Role\": \"user\",\n \"Content\": \"计算1+1\"\n }\n ]\n}",
|
25
25
|
"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}}",
|
26
|
-
"title": "
|
26
|
+
"title": "流式请求成功示例"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"document": "",
|
30
|
+
"input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChatPro\n<公共请求参数>\n\n{\n \"TopP\": 0,\n \"Stream\": false,\n \"Temperature\": 0,\n \"Messages\": [\n {\n \"Role\": \"user\",\n \"Content\": \"你好呀!\"\n }\n ]\n}",
|
31
|
+
"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}",
|
32
|
+
"title": "非流式请求成功示例"
|
27
33
|
}
|
28
34
|
],
|
29
35
|
"ChatStd": [
|
@@ -41,9 +47,15 @@
|
|
41
47
|
},
|
42
48
|
{
|
43
49
|
"document": "",
|
44
|
-
"input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChatStd\n<公共请求参数>\n\n{\n \"TopP\": 0,\n \"Temperature\": 0,\n \"Messages\": [\n {\n \"Role\": \"user\",\n \"Content\": \"计算1+1\"\n }\n ]\n}",
|
50
|
+
"input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChatStd\n<公共请求参数>\n\n{\n \"TopP\": 0,\n \"Stream\": true,\n \"Temperature\": 0,\n \"Messages\": [\n {\n \"Role\": \"user\",\n \"Content\": \"计算1+1\"\n }\n ]\n}",
|
45
51
|
"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}}",
|
46
|
-
"title": "
|
52
|
+
"title": "流式请求成功示例"
|
53
|
+
},
|
54
|
+
{
|
55
|
+
"document": "",
|
56
|
+
"input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChatStd\n<公共请求参数>\n\n{\n \"TopP\": 0,\n \"Stream\": false,\n \"Temperature\": 0,\n \"Messages\": [\n {\n \"Role\": \"user\",\n \"Content\": \"你好呀!\"\n }\n ]\n}",
|
57
|
+
"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}",
|
58
|
+
"title": "非流式请求成功示例"
|
47
59
|
}
|
48
60
|
],
|
49
61
|
"GetEmbedding": [
|
@@ -2345,95 +2345,95 @@
|
|
2345
2345
|
"usage": "out"
|
2346
2346
|
},
|
2347
2347
|
"FaceShape": {
|
2348
|
-
"document": "
|
2348
|
+
"document": "五官定位(人脸关键点)具体信息。\n![image](https://iai-face-demo-default-1254418846.cos.ap-guangzhou.myqcloud.com/130pts.jpg)",
|
2349
2349
|
"members": [
|
2350
2350
|
{
|
2351
2351
|
"disabled": false,
|
2352
2352
|
"document": "描述脸型轮廓的 21 点。",
|
2353
|
-
"example": "",
|
2353
|
+
"example": "无",
|
2354
2354
|
"member": "Point",
|
2355
2355
|
"name": "FaceProfile",
|
2356
|
-
"
|
2356
|
+
"output_required": true,
|
2357
2357
|
"type": "list",
|
2358
2358
|
"value_allowed_null": false
|
2359
2359
|
},
|
2360
2360
|
{
|
2361
2361
|
"disabled": false,
|
2362
2362
|
"document": "描述左侧眼睛轮廓的 8 点。",
|
2363
|
-
"example": "",
|
2363
|
+
"example": "无",
|
2364
2364
|
"member": "Point",
|
2365
2365
|
"name": "LeftEye",
|
2366
|
-
"
|
2366
|
+
"output_required": true,
|
2367
2367
|
"type": "list",
|
2368
2368
|
"value_allowed_null": false
|
2369
2369
|
},
|
2370
2370
|
{
|
2371
2371
|
"disabled": false,
|
2372
2372
|
"document": "描述右侧眼睛轮廓的 8 点。",
|
2373
|
-
"example": "",
|
2373
|
+
"example": "无",
|
2374
2374
|
"member": "Point",
|
2375
2375
|
"name": "RightEye",
|
2376
|
-
"
|
2376
|
+
"output_required": true,
|
2377
2377
|
"type": "list",
|
2378
2378
|
"value_allowed_null": false
|
2379
2379
|
},
|
2380
2380
|
{
|
2381
2381
|
"disabled": false,
|
2382
2382
|
"document": "描述左侧眉毛轮廓的 8 点。",
|
2383
|
-
"example": "",
|
2383
|
+
"example": "无",
|
2384
2384
|
"member": "Point",
|
2385
2385
|
"name": "LeftEyeBrow",
|
2386
|
-
"
|
2386
|
+
"output_required": true,
|
2387
2387
|
"type": "list",
|
2388
2388
|
"value_allowed_null": false
|
2389
2389
|
},
|
2390
2390
|
{
|
2391
2391
|
"disabled": false,
|
2392
2392
|
"document": "描述右侧眉毛轮廓的 8 点。",
|
2393
|
-
"example": "",
|
2393
|
+
"example": "无",
|
2394
2394
|
"member": "Point",
|
2395
2395
|
"name": "RightEyeBrow",
|
2396
|
-
"
|
2396
|
+
"output_required": true,
|
2397
2397
|
"type": "list",
|
2398
2398
|
"value_allowed_null": false
|
2399
2399
|
},
|
2400
2400
|
{
|
2401
2401
|
"disabled": false,
|
2402
2402
|
"document": "描述嘴巴轮廓的 22 点。",
|
2403
|
-
"example": "",
|
2403
|
+
"example": "无",
|
2404
2404
|
"member": "Point",
|
2405
2405
|
"name": "Mouth",
|
2406
|
-
"
|
2406
|
+
"output_required": true,
|
2407
2407
|
"type": "list",
|
2408
2408
|
"value_allowed_null": false
|
2409
2409
|
},
|
2410
2410
|
{
|
2411
2411
|
"disabled": false,
|
2412
2412
|
"document": "描述鼻子轮廓的 13 点。",
|
2413
|
-
"example": "",
|
2413
|
+
"example": "无",
|
2414
2414
|
"member": "Point",
|
2415
2415
|
"name": "Nose",
|
2416
|
-
"
|
2416
|
+
"output_required": true,
|
2417
2417
|
"type": "list",
|
2418
2418
|
"value_allowed_null": false
|
2419
2419
|
},
|
2420
2420
|
{
|
2421
2421
|
"disabled": false,
|
2422
2422
|
"document": "左瞳孔轮廓的 1 个点。",
|
2423
|
-
"example": "",
|
2423
|
+
"example": "无",
|
2424
2424
|
"member": "Point",
|
2425
2425
|
"name": "LeftPupil",
|
2426
|
-
"
|
2426
|
+
"output_required": true,
|
2427
2427
|
"type": "list",
|
2428
2428
|
"value_allowed_null": false
|
2429
2429
|
},
|
2430
2430
|
{
|
2431
2431
|
"disabled": false,
|
2432
2432
|
"document": "右瞳孔轮廓的 1 个点。",
|
2433
|
-
"example": "",
|
2433
|
+
"example": "无",
|
2434
2434
|
"member": "Point",
|
2435
2435
|
"name": "RightPupil",
|
2436
|
-
"
|
2436
|
+
"output_required": true,
|
2437
2437
|
"type": "list",
|
2438
2438
|
"value_allowed_null": false
|
2439
2439
|
}
|
@@ -3806,6 +3806,26 @@
|
|
3806
3806
|
"output_required": true,
|
3807
3807
|
"type": "string",
|
3808
3808
|
"value_allowed_null": true
|
3809
|
+
},
|
3810
|
+
{
|
3811
|
+
"disabled": false,
|
3812
|
+
"document": "音频关开(0:关闭;1:开启)关闭时丢弃音频\t\n注意:此字段可能返回 null,表示取不到有效值。",
|
3813
|
+
"example": "0",
|
3814
|
+
"member": "int64",
|
3815
|
+
"name": "AudioSwitch",
|
3816
|
+
"output_required": false,
|
3817
|
+
"type": "int",
|
3818
|
+
"value_allowed_null": true
|
3819
|
+
},
|
3820
|
+
{
|
3821
|
+
"disabled": false,
|
3822
|
+
"document": "订阅开关(0:关闭;1:开启)默认开启,开启状态下会订阅设备通道变化,仅国标NVR设备有效\t\n注意:此字段可能返回 null,表示取不到有效值。",
|
3823
|
+
"example": "1",
|
3824
|
+
"member": "int64",
|
3825
|
+
"name": "SubscribeSwitch",
|
3826
|
+
"output_required": false,
|
3827
|
+
"type": "int",
|
3828
|
+
"value_allowed_null": true
|
3809
3829
|
}
|
3810
3830
|
],
|
3811
3831
|
"usage": "out"
|
@@ -10173,6 +10193,24 @@
|
|
10173
10193
|
"name": "ProtocolType",
|
10174
10194
|
"required": false,
|
10175
10195
|
"type": "int"
|
10196
|
+
},
|
10197
|
+
{
|
10198
|
+
"disabled": false,
|
10199
|
+
"document": "音频关开(0:关闭;1:开启)默认开启,关闭时丢弃音频",
|
10200
|
+
"example": "1",
|
10201
|
+
"member": "int64",
|
10202
|
+
"name": "AudioSwitch",
|
10203
|
+
"required": false,
|
10204
|
+
"type": "int"
|
10205
|
+
},
|
10206
|
+
{
|
10207
|
+
"disabled": false,
|
10208
|
+
"document": "订阅开关(0:关闭;1:开启)默认开启,开启状态下会订阅设备通道变化,仅国标NVR设备有效",
|
10209
|
+
"example": "1",
|
10210
|
+
"member": "int64",
|
10211
|
+
"name": "SubscribeSwitch",
|
10212
|
+
"required": false,
|
10213
|
+
"type": "int"
|
10176
10214
|
}
|
10177
10215
|
],
|
10178
10216
|
"type": "object"
|