tccli 3.0.1143.1__py2.py3-none-any.whl → 3.0.1145.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/asr/v20190614/api.json +2 -2
- tccli/services/bpaas/v20181217/api.json +45 -1
- tccli/services/cdb/cdb_client.py +167 -8
- tccli/services/cdb/v20170320/api.json +156 -0
- tccli/services/cdb/v20170320/examples.json +24 -0
- tccli/services/ckafka/v20190819/api.json +1 -1
- tccli/services/ckafka/v20190819/examples.json +2 -2
- tccli/services/cls/v20201016/api.json +37 -0
- tccli/services/cwp/v20180228/api.json +76 -8
- tccli/services/dbbrain/v20210527/api.json +2 -2
- tccli/services/dbdc/v20201029/api.json +14 -12
- tccli/services/dbdc/v20201029/examples.json +1 -1
- tccli/services/dlc/v20210125/api.json +52 -2
- tccli/services/es/es_client.py +61 -8
- tccli/services/es/v20180416/api.json +83 -2
- tccli/services/es/v20180416/examples.json +11 -3
- tccli/services/fmu/v20191213/api.json +6 -6
- tccli/services/hunyuan/v20230901/api.json +253 -3
- tccli/services/hunyuan/v20230901/examples.json +24 -0
- tccli/services/iotexplorer/v20190423/api.json +58 -1
- tccli/services/iotvideo/v20211125/api.json +11 -0
- tccli/services/mps/mps_client.py +228 -16
- tccli/services/mps/v20190612/api.json +474 -1
- tccli/services/mps/v20190612/examples.json +32 -0
- tccli/services/ocr/v20181119/api.json +1 -1
- tccli/services/postgres/v20170312/api.json +31 -21
- tccli/services/postgres/v20170312/examples.json +4 -4
- tccli/services/smpn/v20190822/api.json +10 -10
- tccli/services/ssl/v20191205/api.json +30 -0
- tccli/services/tiia/v20190529/api.json +2 -2
- tccli/services/trocket/v20230308/api.json +60 -48
- tccli/services/trtc/v20190722/api.json +13 -4
- tccli/services/tsi/v20210325/api.json +2 -2
- tccli/services/tts/v20190823/api.json +1 -1
- tccli/services/vod/v20180717/api.json +20 -2
- {tccli-3.0.1143.1.dist-info → tccli-3.0.1145.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1143.1.dist-info → tccli-3.0.1145.1.dist-info}/RECORD +41 -41
- {tccli-3.0.1143.1.dist-info → tccli-3.0.1145.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1143.1.dist-info → tccli-3.0.1145.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1143.1.dist-info → tccli-3.0.1145.1.dist-info}/license_files/LICENSE +0 -0
@@ -175,6 +175,13 @@
|
|
175
175
|
"output": "DescribeServerlessInstancesResponse",
|
176
176
|
"status": "online"
|
177
177
|
},
|
178
|
+
"DescribeServerlessMetrics": {
|
179
|
+
"document": "获取serverless实例对应指标,获取space维度时不需要传入indexid,获取index时不需要传入spaceid",
|
180
|
+
"input": "DescribeServerlessMetricsRequest",
|
181
|
+
"name": "获取实例对应的监控指标",
|
182
|
+
"output": "DescribeServerlessMetricsResponse",
|
183
|
+
"status": "online"
|
184
|
+
},
|
178
185
|
"DescribeServerlessSpaceUser": {
|
179
186
|
"document": "查看Serverless空间子用户",
|
180
187
|
"input": "DescribeServerlessSpaceUserRequest",
|
@@ -1389,6 +1396,15 @@
|
|
1389
1396
|
"name": "CdcId",
|
1390
1397
|
"required": false,
|
1391
1398
|
"type": "string"
|
1399
|
+
},
|
1400
|
+
{
|
1401
|
+
"disabled": false,
|
1402
|
+
"document": "置放群组亲和度,范围[0,10],0表示不开启",
|
1403
|
+
"example": "无",
|
1404
|
+
"member": "uint64",
|
1405
|
+
"name": "DisasterRecoverGroupAffinity",
|
1406
|
+
"required": false,
|
1407
|
+
"type": "int"
|
1392
1408
|
}
|
1393
1409
|
],
|
1394
1410
|
"type": "object"
|
@@ -2947,7 +2963,7 @@
|
|
2947
2963
|
"example": "10",
|
2948
2964
|
"member": "uint64",
|
2949
2965
|
"name": "TotalCount",
|
2950
|
-
"
|
2966
|
+
"output_required": true,
|
2951
2967
|
"type": "int",
|
2952
2968
|
"value_allowed_null": false
|
2953
2969
|
},
|
@@ -2957,7 +2973,7 @@
|
|
2957
2973
|
"example": "[]",
|
2958
2974
|
"member": "InstanceLog",
|
2959
2975
|
"name": "InstanceLogList",
|
2960
|
-
"
|
2976
|
+
"output_required": true,
|
2961
2977
|
"type": "list",
|
2962
2978
|
"value_allowed_null": false
|
2963
2979
|
},
|
@@ -3347,6 +3363,61 @@
|
|
3347
3363
|
],
|
3348
3364
|
"type": "object"
|
3349
3365
|
},
|
3366
|
+
"DescribeServerlessMetricsRequest": {
|
3367
|
+
"document": "DescribeServerlessMetrics请求参数结构体",
|
3368
|
+
"members": [
|
3369
|
+
{
|
3370
|
+
"disabled": false,
|
3371
|
+
"document": "space空间id",
|
3372
|
+
"example": "space-xxxxxx",
|
3373
|
+
"member": "string",
|
3374
|
+
"name": "SpaceId",
|
3375
|
+
"required": false,
|
3376
|
+
"type": "string"
|
3377
|
+
},
|
3378
|
+
{
|
3379
|
+
"disabled": false,
|
3380
|
+
"document": "index索引id",
|
3381
|
+
"example": "index-ex2ap8v0",
|
3382
|
+
"member": "string",
|
3383
|
+
"name": "IndexId",
|
3384
|
+
"required": false,
|
3385
|
+
"type": "string"
|
3386
|
+
},
|
3387
|
+
{
|
3388
|
+
"disabled": false,
|
3389
|
+
"document": "指标类型,暂时只支持Storage",
|
3390
|
+
"example": "[\"Storage\"]",
|
3391
|
+
"member": "string",
|
3392
|
+
"name": "MetricType",
|
3393
|
+
"required": false,
|
3394
|
+
"type": "list"
|
3395
|
+
}
|
3396
|
+
],
|
3397
|
+
"type": "object"
|
3398
|
+
},
|
3399
|
+
"DescribeServerlessMetricsResponse": {
|
3400
|
+
"document": "DescribeServerlessMetrics返回参数结构体",
|
3401
|
+
"members": [
|
3402
|
+
{
|
3403
|
+
"disabled": false,
|
3404
|
+
"document": "storage指标值,单位byte",
|
3405
|
+
"example": "2262158.88",
|
3406
|
+
"member": "float",
|
3407
|
+
"name": "Storage",
|
3408
|
+
"output_required": false,
|
3409
|
+
"type": "float",
|
3410
|
+
"value_allowed_null": false
|
3411
|
+
},
|
3412
|
+
{
|
3413
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
3414
|
+
"member": "string",
|
3415
|
+
"name": "RequestId",
|
3416
|
+
"type": "string"
|
3417
|
+
}
|
3418
|
+
],
|
3419
|
+
"type": "object"
|
3420
|
+
},
|
3350
3421
|
"DescribeServerlessSpaceUserRequest": {
|
3351
3422
|
"document": "DescribeServerlessSpaceUser请求参数结构体",
|
3352
3423
|
"members": [
|
@@ -6006,6 +6077,16 @@
|
|
6006
6077
|
"output_required": false,
|
6007
6078
|
"type": "string",
|
6008
6079
|
"value_allowed_null": true
|
6080
|
+
},
|
6081
|
+
{
|
6082
|
+
"disabled": false,
|
6083
|
+
"document": "置放群组相关参数\n注意:此字段可能返回 null,表示取不到有效值。",
|
6084
|
+
"example": "0",
|
6085
|
+
"member": "uint64",
|
6086
|
+
"name": "DisasterRecoverGroupAffinity",
|
6087
|
+
"output_required": false,
|
6088
|
+
"type": "int",
|
6089
|
+
"value_allowed_null": true
|
6009
6090
|
}
|
6010
6091
|
],
|
6011
6092
|
"usage": "out"
|
@@ -132,7 +132,7 @@
|
|
132
132
|
{
|
133
133
|
"document": "查询实例最新的主日志",
|
134
134
|
"input": "https://es.tencentcloudapi.com/?Action=DescribeInstanceLogs\r\n&InstanceId=es-f5mwm28u\r\n&<公共请求参数>",
|
135
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 71633,\n \"InstanceLogList\": [\n {\n \"Time\": \"2019-01-22T10:45:36.220+08:00\",\n \"Ip\": \"10.0.128.65\",\n \"Level\": \"INFO\",\n \"Message\": \"[o.e.p.o.OPackActionFilter] [1547723102001286009] forbidden request: { ID:cdc62072721547678872c0448c1ecaf9, TYP:MainRequest, USR:null, BRS:false, ACT:cluster:monitor/main, OA:10.0.128.43, IDX:, MET:GET, PTH:/, CNT:<OMITTED, LENGTH=0>, HDR:content-length, EFF:0 } Reason: null\"\n },\n {\n \"Time\": \"2019-01-22T10:45:35.730+08:00\",\n \"Ip\": \"10.0.128.65\",\n \"Level\": \"INFO\",\n \"Message\": \"[o.e.p.o.OPackActionFilter] [1547723102001286009] forbidden request: { ID:1a8a5b7ea41a485ebdd769586c1dcdf6, TYP:MainRequest, USR:null, BRS:false, ACT:cluster:monitor/main, OA:10.0.128.73, IDX:, MET:GET, PTH:/, CNT:<OMITTED, LENGTH=0>, HDR:content-length, EFF:0 } Reason: null\"\n }\n ],\n \"RequestId\": \"783d9290-dc60-4862-9340-10b632605374\"\n }\n}",
|
135
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 71633,\n \"InstanceLogList\": [\n {\n \"Time\": \"2019-01-22T10:45:36.220+08:00\",\n \"Ip\": \"10.0.128.65\",\n \"NodeID\": \"2131414141414\",\n \"Level\": \"INFO\",\n \"Message\": \"[o.e.p.o.OPackActionFilter] [1547723102001286009] forbidden request: { ID:cdc62072721547678872c0448c1ecaf9, TYP:MainRequest, USR:null, BRS:false, ACT:cluster:monitor/main, OA:10.0.128.43, IDX:, MET:GET, PTH:/, CNT:<OMITTED, LENGTH=0>, HDR:content-length, EFF:0 } Reason: null\"\n },\n {\n \"Time\": \"2019-01-22T10:45:35.730+08:00\",\n \"Ip\": \"10.0.128.65\",\n \"NodeID\": \"2131414141414\",\n \"Level\": \"INFO\",\n \"Message\": \"[o.e.p.o.OPackActionFilter] [1547723102001286009] forbidden request: { ID:1a8a5b7ea41a485ebdd769586c1dcdf6, TYP:MainRequest, USR:null, BRS:false, ACT:cluster:monitor/main, OA:10.0.128.73, IDX:, MET:GET, PTH:/, CNT:<OMITTED, LENGTH=0>, HDR:content-length, EFF:0 } Reason: null\"\n }\n ],\n \"RequestId\": \"783d9290-dc60-4862-9340-10b632605374\"\n }\n}",
|
136
136
|
"title": "查询ES集群日志"
|
137
137
|
}
|
138
138
|
],
|
@@ -156,7 +156,7 @@
|
|
156
156
|
{
|
157
157
|
"document": "查询ES集群实例",
|
158
158
|
"input": "POST / HTTP/1.1\nHost: es.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInstances\n<公共请求参数>\n\n{}",
|
159
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"InstanceList\": [\n {\n \"InstanceId\": \"es-7sy7efoi\",\n \"InstanceName\": \"_some_name_\",\n \"InstanceType\": 2,\n \"Region\": \"ap-guangzhou\",\n \"Zone\": \"ap-guangzhou-3\",\n \"AppId\": 130000000,\n \"Uin\": \"100000000\",\n \"VpcUid\": \"vpc-xxxxxx\",\n \"SubnetUid\": \"subnet-xxxxxx\",\n \"Status\": 1,\n \"ChargeType\": \"POSTPAID_BY_HOUR\",\n \"ChargePeriod\": 0,\n \"RenewFlag\": \"\",\n \"NodeInfoList\": [\n {\n \"Type\": \"hotData\",\n \"NodeNum\": 3,\n \"NodeType\": \"ES.SA2.MEDIUM4\",\n \"DiskType\": \"CLOUD_SSD\",\n \"DiskSize\": 20,\n \"DiskEncrypt\": 0,\n \"DiskCount\": 1,\n \"LocalDiskInfo\": null\n }\n ],\n \"NodeType\": \"ES.SA2.MEDIUM4\",\n \"NodeNum\": 3,\n \"CpuNum\": 2,\n \"MemSize\": 4,\n \"DiskType\": \"CLOUD_SSD\",\n \"AutoIndexEnabled\": true,\n \"DiskSize\": 20,\n \"EnableHotWarmMode\": false,\n \"WarmNodeType\": \"\",\n \"WarmNodeNum\": 0,\n \"WarmCpuNum\": 0,\n \"WarmMemSize\": 0,\n \"WarmDiskType\": \"\",\n \"WarmDiskSize\": 0,\n \"ColdNodeType\": \"\",\n \"ColdNodeNum\": 0,\n \"ColdCpuNum\": 0,\n \"ColdMemSize\": 0,\n \"ColdDiskType\": \"\",\n \"ColdDiskSize\": 0,\n \"FrozenNodeType\": \"\",\n \"FrozenNodeNum\": 0,\n \"FrozenCpuNum\": 0,\n \"FrozenMemSize\": 0,\n \"FrozenDiskType\": \"\",\n \"FrozenDiskSize\": 0,\n \"MasterNodeInfo\": {\n \"EnableDedicatedMaster\": false,\n \"MasterNodeType\": \"\",\n \"MasterNodeNum\": 0,\n \"MasterNodeCpuNum\": 0,\n \"MasterNodeMemSize\": 0,\n \"MasterNodeDiskType\": \"\",\n \"MasterNodeDiskSize\": 0\n },\n \"KibanaNodeInfo\": {\n \"KibanaNodeType\": \"ES.SA2.SMALL2\",\n \"KibanaNodeNum\": 1,\n \"KibanaNodeCpuNum\": 1,\n \"KibanaNodeMemSize\": 2,\n \"KibanaNodeDiskType\": \"CLOUD_PREMIUM\",\n \"KibanaNodeDiskSize\": 50\n },\n \"EsDomain\": \"es-7sy7efoi.myelasticsearch.com\",\n \"EsPrivateDomain\": \"es-7sy7efoi-esinternal.kibana.myelasticsearch.com\",\n \"EsVip\": \"{vip}\",\n \"EsPort\": 9200,\n \"KibanaUrl\": \"https://es-7sy7efoi.kibana.myelasticsearch.com:5601\",\n \"KibanaPrivateUrl\": \"\",\n \"PublicAccess\": \"CLOSE\",\n \"KibanaPublicAccess\": \"OPEN\",\n \"KibanaPrivateAccess\": \"CLOSE\",\n \"KibanaAlteringPublicAccess\": \"CLOSE\",\n \"Protocol\": \"\",\n \"SecurityGroups\": [],\n \"EsPublicUrl\": \"\",\n \"EsPrivateUrl\": \"https://es-7sy7efoi-esinternal.kibana.myelasticsearch.com:9200\",\n \"EsVersion\": \"7.14.2\",\n \"EsConfig\": \"{}\",\n \"EsConfigSets\": [],\n \"KibanaConfig\": \"\",\n \"EsAcl\": {\n \"WhiteIpList\": [\n \"127.0.0.1\"\n ],\n \"BlackIpList\": []\n },\n \"EsPublicAcl\": {\n \"WhiteIpList\": [],\n \"BlackIpList\": []\n },\n \"IkConfig\": {\n \"UpdateType\": \"\",\n \"MainDict\": [],\n \"Stopwords\": [],\n \"Synonym\": [],\n \"QQDict\": []\n },\n \"AllowCosBackup\": true,\n \"CosBackup\": {\n \"IsAutoBackup\": false,\n \"BackupTime\": \"\"\n },\n \"DeployMode\": 0,\n \"MultiZoneInfo\": [\n {\n \"Zone\": \"ap-guangzhou-3\",\n \"SubnetId\": \"subnet-q29llw8g\"\n }\n ],\n \"TagList\": [],\n \"HealthStatus\": 0,\n \"SecurityType\": 2,\n \"LicenseType\": \"platinum\",\n \"SceneType\": 1,\n \"Jdk\": \"kona\",\n \"WebNodeTypeInfo\": {\n \"NodeNum\": 1,\n \"NodeType\": \"ES.SA2.SMALL2\"\n },\n \"CreateTime\": \"2022-07-06 20:52:48\",\n \"UpdateTime\": \"2022-07-07 17:35:29\",\n \"Deadline\": \"2017-12-04 00:00:00\",\n \"OperationDuration\": null,\n \"OptionalWebServiceInfos\": [\n {\n \"Status\": 0,\n \"PrivateAccess\": \"abc\",\n \"PublicAccess\": \"abc\",\n \"PrivateUrl\": \"abc\",\n \"Version\": \"abc\",\n \"Type\": \"abc\",\n \"PublicUrl\": \"abc\"\n }\n ],\n \"ProcessPercent\": 0.5,\n \"EnableHybridStorage\": true,\n \"HasKernelUpgrade\": true\n }\n ],\n \"RequestId\": \"xxxx\"\n }\n}",
|
159
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"InstanceList\": [\n {\n \"InstanceId\": \"es-7sy7efoi\",\n \"InstanceName\": \"_some_name_\",\n \"InstanceType\": 2,\n \"Region\": \"ap-guangzhou\",\n \"Zone\": \"ap-guangzhou-3\",\n \"AppId\": 130000000,\n \"Uin\": \"100000000\",\n \"VpcUid\": \"vpc-xxxxxx\",\n \"SubnetUid\": \"subnet-xxxxxx\",\n \"CdcId\": \"cluster-xxxxxxxx\",\n \"Status\": 1,\n \"ChargeType\": \"POSTPAID_BY_HOUR\",\n \"ChargePeriod\": 0,\n \"RenewFlag\": \"\",\n \"NodeInfoList\": [\n {\n \"Type\": \"hotData\",\n \"NodeNum\": 3,\n \"NodeType\": \"ES.SA2.MEDIUM4\",\n \"CpuNum\": 0,\n \"MemSize\": 0,\n \"DiskType\": \"CLOUD_SSD\",\n \"DiskSize\": 20,\n \"DiskEnhance\": 0,\n \"DiskEncrypt\": 0,\n \"DiskCount\": 1,\n \"LocalDiskInfo\": null\n }\n ],\n \"NodeType\": \"ES.SA2.MEDIUM4\",\n \"NodeNum\": 3,\n \"CpuNum\": 2,\n \"MemSize\": 4,\n \"DiskType\": \"CLOUD_SSD\",\n \"AutoIndexEnabled\": true,\n \"DiskSize\": 20,\n \"EnableHotWarmMode\": false,\n \"WarmNodeType\": \"\",\n \"WarmNodeNum\": 0,\n \"WarmCpuNum\": 0,\n \"WarmMemSize\": 0,\n \"WarmDiskType\": \"\",\n \"WarmDiskSize\": 0,\n \"ColdNodeType\": \"\",\n \"ColdNodeNum\": 0,\n \"ColdCpuNum\": 0,\n \"ColdMemSize\": 0,\n \"ColdDiskType\": \"\",\n \"ColdDiskSize\": 0,\n \"FrozenNodeType\": \"\",\n \"FrozenNodeNum\": 0,\n \"FrozenCpuNum\": 0,\n \"FrozenMemSize\": 0,\n \"FrozenDiskType\": \"\",\n \"FrozenDiskSize\": 0,\n \"MasterNodeInfo\": {\n \"EnableDedicatedMaster\": false,\n \"MasterNodeType\": \"\",\n \"MasterNodeNum\": 0,\n \"MasterNodeCpuNum\": 0,\n \"MasterNodeMemSize\": 0,\n \"MasterNodeDiskType\": \"\",\n \"MasterNodeDiskSize\": 0\n },\n \"KibanaNodeInfo\": {\n \"KibanaNodeType\": \"ES.SA2.SMALL2\",\n \"KibanaNodeNum\": 1,\n \"KibanaNodeCpuNum\": 1,\n \"KibanaNodeMemSize\": 2,\n \"KibanaNodeDiskType\": \"CLOUD_PREMIUM\",\n \"KibanaNodeDiskSize\": 50\n },\n \"EsDomain\": \"es-7sy7efoi.myelasticsearch.com\",\n \"EsPrivateDomain\": \"es-7sy7efoi-esinternal.kibana.myelasticsearch.com\",\n \"EsVip\": \"{vip}\",\n \"EsPort\": 9200,\n \"KibanaUrl\": \"https://es-7sy7efoi.kibana.myelasticsearch.com:5601\",\n \"KibanaPrivateUrl\": \"\",\n \"PublicAccess\": \"CLOSE\",\n \"KibanaPublicAccess\": \"OPEN\",\n \"KibanaPrivateAccess\": \"CLOSE\",\n \"KibanaAlteringPublicAccess\": \"CLOSE\",\n \"Protocol\": \"\",\n \"SecurityGroups\": [],\n \"EsPublicUrl\": \"\",\n \"EsPrivateUrl\": \"https://es-7sy7efoi-esinternal.kibana.myelasticsearch.com:9200\",\n \"EsVersion\": \"7.14.2\",\n \"EsConfig\": \"{}\",\n \"EsConfigSets\": [],\n \"KibanaConfig\": \"\",\n \"EsAcl\": {\n \"WhiteIpList\": [\n \"127.0.0.1\"\n ],\n \"BlackIpList\": []\n },\n \"EsPublicAcl\": {\n \"WhiteIpList\": [],\n \"BlackIpList\": []\n },\n \"IkConfig\": {\n \"UpdateType\": \"\",\n \"MainDict\": [],\n \"Stopwords\": [],\n \"Synonym\": [],\n \"QQDict\": []\n },\n \"AllowCosBackup\": true,\n \"CosBackup\": {\n \"IsAutoBackup\": false,\n \"BackupTime\": \"\"\n },\n \"DeployMode\": 0,\n \"MultiZoneInfo\": [\n {\n \"Zone\": \"ap-guangzhou-3\",\n \"SubnetId\": \"subnet-q29llw8g\"\n }\n ],\n \"TagList\": [],\n \"HealthStatus\": 0,\n \"SecurityType\": 2,\n \"LicenseType\": \"platinum\",\n \"SceneType\": 1,\n \"Jdk\": \"kona\",\n \"WebNodeTypeInfo\": {\n \"NodeNum\": 1,\n \"NodeType\": \"ES.SA2.SMALL2\"\n },\n \"CreateTime\": \"2022-07-06 20:52:48\",\n \"UpdateTime\": \"2022-07-07 17:35:29\",\n \"Deadline\": \"2017-12-04 00:00:00\",\n \"OperationDuration\": null,\n \"OptionalWebServiceInfos\": [\n {\n \"Status\": 0,\n \"PrivateAccess\": \"abc\",\n \"PublicAccess\": \"abc\",\n \"PrivateUrl\": \"abc\",\n \"Version\": \"abc\",\n \"Type\": \"abc\",\n \"PublicUrl\": \"abc\"\n }\n ],\n \"ProcessPercent\": 0.5,\n \"EnableHybridStorage\": true,\n \"HasKernelUpgrade\": true\n }\n ],\n \"RequestId\": \"xxxx\"\n }\n}",
|
160
160
|
"title": "查询ES集群实例"
|
161
161
|
}
|
162
162
|
],
|
@@ -164,7 +164,7 @@
|
|
164
164
|
{
|
165
165
|
"document": "",
|
166
166
|
"input": "https://es.tencentcloudapi.com/?Action=DescribeLogstashInstanceLogs\n&InstanceId=ls-f5mwm28u\n&<公共请求参数>",
|
167
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 71633,\n \"InstanceLogList\": [\n {\n \"Time\": \"2019-01-22T10:45:36.220+08:00\",\n \"Ip\": \"10.0.128.65\",\n \"Level\": \"INFO\",\n \"Message\": \"[o.e.p.o.OPackActionFilter] [1547723102001286009] forbidden request: { ID:cdc62072721547678872c0448c1ecaf9, TYP:MainRequest, USR:null, BRS:false, ACT:cluster:monitor/main, OA:10.0.128.43, IDX:, MET:GET, PTH:/, CNT:<OMITTED, LENGTH=0>, HDR:content-length, EFF:0 } Reason: null\"\n },\n {\n \"Time\": \"2019-01-22T10:45:35.730+08:00\",\n \"Ip\": \"10.0.128.65\",\n \"Level\": \"INFO\",\n \"Message\": \"[o.e.p.o.OPackActionFilter] [1547723102001286009] forbidden request: { ID:1a8a5b7ea41a485ebdd769586c1dcdf6, TYP:MainRequest, USR:null, BRS:false, ACT:cluster:monitor/main, OA:10.0.128.73, IDX:, MET:GET, PTH:/, CNT:<OMITTED, LENGTH=0>, HDR:content-length, EFF:0 } Reason: null\"\n }\n ],\n \"RequestId\": \"783d9290-dc60-4862-9340-10b632605374\"\n }\n}",
|
167
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 71633,\n \"InstanceLogList\": [\n {\n \"Time\": \"2019-01-22T10:45:36.220+08:00\",\n \"Ip\": \"10.0.128.65\",\n \"NodeID\": \"12123141441\",\n \"Level\": \"INFO\",\n \"Message\": \"[o.e.p.o.OPackActionFilter] [1547723102001286009] forbidden request: { ID:cdc62072721547678872c0448c1ecaf9, TYP:MainRequest, USR:null, BRS:false, ACT:cluster:monitor/main, OA:10.0.128.43, IDX:, MET:GET, PTH:/, CNT:<OMITTED, LENGTH=0>, HDR:content-length, EFF:0 } Reason: null\"\n },\n {\n \"Time\": \"2019-01-22T10:45:35.730+08:00\",\n \"NodeID\": \"12123141442\",\n \"Ip\": \"10.0.128.65\",\n \"Level\": \"INFO\",\n \"Message\": \"[o.e.p.o.OPackActionFilter] [1547723102001286009] forbidden request: { ID:1a8a5b7ea41a485ebdd769586c1dcdf6, TYP:MainRequest, USR:null, BRS:false, ACT:cluster:monitor/main, OA:10.0.128.73, IDX:, MET:GET, PTH:/, CNT:<OMITTED, LENGTH=0>, HDR:content-length, EFF:0 } Reason: null\"\n }\n ],\n \"RequestId\": \"783d9290-dc60-4862-9340-10b632605374\"\n }\n}",
|
168
168
|
"title": "获取Logstash实例日志"
|
169
169
|
}
|
170
170
|
],
|
@@ -200,6 +200,14 @@
|
|
200
200
|
"title": "Serverless获取索引列表"
|
201
201
|
}
|
202
202
|
],
|
203
|
+
"DescribeServerlessMetrics": [
|
204
|
+
{
|
205
|
+
"document": "",
|
206
|
+
"input": "POST / HTTP/1.1\nHost: es.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeServerlessMetrics\n<公共请求参数>\n\n{\n \"SpaceId\": \"space-18jf9xxx\",\n \"IndexId\": \"index-xxxxxx\",\n \"MetricType\": [\n \"Storage\"\n ]\n}",
|
207
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"30204658-3518-11ef-979c-52540xxxxx\",\n \"Storage\": 2262158.88\n }\n}",
|
208
|
+
"title": "获取serverless space维度过去5min钟新增存储指标值"
|
209
|
+
}
|
210
|
+
],
|
203
211
|
"DescribeServerlessSpaceUser": [
|
204
212
|
{
|
205
213
|
"document": "",
|
@@ -8,18 +8,18 @@
|
|
8
8
|
"status": "online"
|
9
9
|
},
|
10
10
|
"BeautifyVideo": {
|
11
|
-
"document": "视频美颜(此接口目前已下线)",
|
11
|
+
"document": "产品不再维护,准备下线。\n\n视频美颜(此接口目前已下线)",
|
12
12
|
"input": "BeautifyVideoRequest",
|
13
13
|
"name": "视频美颜(此接口目前已下线)",
|
14
14
|
"output": "BeautifyVideoResponse",
|
15
|
-
"status": "
|
15
|
+
"status": "deprecated"
|
16
16
|
},
|
17
17
|
"CancelBeautifyVideoJob": {
|
18
|
-
"document": "撤销视频美颜任务请求",
|
18
|
+
"document": "产品不再维护,准备下线。\n\n撤销视频美颜任务请求",
|
19
19
|
"input": "CancelBeautifyVideoJobRequest",
|
20
20
|
"name": "撤销视频美颜任务(此接口目前已下线)",
|
21
21
|
"output": "CancelBeautifyVideoJobResponse",
|
22
|
-
"status": "
|
22
|
+
"status": "deprecated"
|
23
23
|
},
|
24
24
|
"CreateModel": {
|
25
25
|
"document": "在使用LUT素材的modelid实现试唇色前,您需要先上传 LUT 格式的cube文件注册唇色ID。查看 [LUT文件的使用说明](https://cloud.tencent.com/document/product/1172/41701)。\n\n注:您也可以直接使用 [试唇色接口](https://cloud.tencent.com/document/product/1172/40706),通过输入RGBA模型数值的方式指定唇色,更简单易用。\n",
|
@@ -43,11 +43,11 @@
|
|
43
43
|
"status": "online"
|
44
44
|
},
|
45
45
|
"QueryBeautifyVideoJob": {
|
46
|
-
"document": "查询视频美颜处理进度",
|
46
|
+
"document": "产品不再维护,准备下线。\n\n查询视频美颜处理进度",
|
47
47
|
"input": "QueryBeautifyVideoJobRequest",
|
48
48
|
"name": "查询视频美颜任务(此接口目前已下线)",
|
49
49
|
"output": "QueryBeautifyVideoJobResponse",
|
50
|
-
"status": "
|
50
|
+
"status": "deprecated"
|
51
51
|
},
|
52
52
|
"StyleImage": {
|
53
53
|
"document": "上传一张照片,输出滤镜处理后的图片。",
|
@@ -48,7 +48,7 @@
|
|
48
48
|
"members": [
|
49
49
|
{
|
50
50
|
"disabled": false,
|
51
|
-
"document": "模型名称,可选值包括 hunyuan-lite、hunyuan-standard、hunyuan-standard-256K、hunyuan-pro。\n各模型介绍请阅读 [产品概述](https://cloud.tencent.com/document/product/1729/104753) 中的说明。\n\n注意:\n不同的模型计费不同,请根据 [购买指南](https://cloud.tencent.com/document/product/1729/97731) 按需调用。",
|
51
|
+
"document": "模型名称,可选值包括 hunyuan-lite、hunyuan-standard、hunyuan-standard-256K、hunyuan-pro、 hunyuan-code、 hunyuan-role、 hunyuan-functioncall、 hunyuan-vision。\n各模型介绍请阅读 [产品概述](https://cloud.tencent.com/document/product/1729/104753) 中的说明。\n\n注意:\n不同的模型计费不同,请根据 [购买指南](https://cloud.tencent.com/document/product/1729/97731) 按需调用。",
|
52
52
|
"example": "hunyuan-pro",
|
53
53
|
"member": "string",
|
54
54
|
"name": "Model",
|
@@ -57,7 +57,7 @@
|
|
57
57
|
},
|
58
58
|
{
|
59
59
|
"disabled": false,
|
60
|
-
"document": "聊天上下文信息。\n说明:\n1. 长度最多为 40,按对话时间从旧到新在数组中排列。\n2. Message.Role 可选值:system、user、assistant。\n其中,system 角色可选,如存在则必须位于列表的最开始。user 和 assistant 需交替出现(一问一答),以 user
|
60
|
+
"document": "聊天上下文信息。\n说明:\n1. 长度最多为 40,按对话时间从旧到新在数组中排列。\n2. Message.Role 可选值:system、user、assistant、 tool。\n其中,system 角色可选,如存在则必须位于列表的最开始。user(tool) 和 assistant 需交替出现(一问一答),以 user 提问开始,user(tool)提问结束,且 Content 不能为空。Role 的顺序示例:[system(可选) user assistant user assistant user ...]。\n3. Messages 中 Content 总长度不能超过模型输入长度上限(可参考 [产品概述](https://cloud.tencent.com/document/product/1729/104753) 文档),超过则会截断最前面的内容,只保留尾部内容。",
|
61
61
|
"example": "无",
|
62
62
|
"member": "Message",
|
63
63
|
"name": "Messages",
|
@@ -108,6 +108,33 @@
|
|
108
108
|
"name": "EnableEnhancement",
|
109
109
|
"required": false,
|
110
110
|
"type": "bool"
|
111
|
+
},
|
112
|
+
{
|
113
|
+
"disabled": false,
|
114
|
+
"document": "可调用的工具列表,仅对 hunyuan-functioncall 模型生效。",
|
115
|
+
"example": "无",
|
116
|
+
"member": "Tool",
|
117
|
+
"name": "Tools",
|
118
|
+
"required": false,
|
119
|
+
"type": "list"
|
120
|
+
},
|
121
|
+
{
|
122
|
+
"disabled": false,
|
123
|
+
"document": "工具使用选项,可选值包括 none、auto、custom。\n说明:\n1. 仅对 hunyuan-functioncall 模型生效。\n2. none:不调用工具;auto:模型自行选择生成回复或调用工具;custom:强制模型调用指定的工具。\n3. 未设置时,默认值为auto",
|
124
|
+
"example": "auto",
|
125
|
+
"member": "string",
|
126
|
+
"name": "ToolChoice",
|
127
|
+
"required": false,
|
128
|
+
"type": "string"
|
129
|
+
},
|
130
|
+
{
|
131
|
+
"disabled": false,
|
132
|
+
"document": "强制模型调用指定的工具,当参数ToolChoice为custom时,此参数为必填",
|
133
|
+
"example": "无",
|
134
|
+
"member": "Tool",
|
135
|
+
"name": "CustomTool",
|
136
|
+
"required": false,
|
137
|
+
"type": "object"
|
111
138
|
}
|
112
139
|
],
|
113
140
|
"type": "object"
|
@@ -220,6 +247,45 @@
|
|
220
247
|
],
|
221
248
|
"usage": "out"
|
222
249
|
},
|
250
|
+
"Content": {
|
251
|
+
"document": "可以传入多种类型的内容,如图片或文本。当前只支持传入单张图片,传入多张图片时,以第一个图片为准。",
|
252
|
+
"members": [
|
253
|
+
{
|
254
|
+
"disabled": false,
|
255
|
+
"document": "内容类型\n注意:\n当前只支持传入单张图片,传入多张图片时,以第一个图片为准。\n注意:此字段可能返回 null,表示取不到有效值。",
|
256
|
+
"example": "[\"text\", \"image_url\"]",
|
257
|
+
"member": "string",
|
258
|
+
"name": "Type",
|
259
|
+
"output_required": false,
|
260
|
+
"required": true,
|
261
|
+
"type": "string",
|
262
|
+
"value_allowed_null": true
|
263
|
+
},
|
264
|
+
{
|
265
|
+
"disabled": false,
|
266
|
+
"document": "当 Type 为 text 时使用,表示具体的文本内容\n注意:此字段可能返回 null,表示取不到有效值。",
|
267
|
+
"example": "下面图片中是哪个公司的 Logo?",
|
268
|
+
"member": "string",
|
269
|
+
"name": "Text",
|
270
|
+
"output_required": false,
|
271
|
+
"required": false,
|
272
|
+
"type": "string",
|
273
|
+
"value_allowed_null": true
|
274
|
+
},
|
275
|
+
{
|
276
|
+
"disabled": false,
|
277
|
+
"document": "当 Type 为 image_url 时使用,表示具体的图片内容\n注意:此字段可能返回 null,表示取不到有效值。",
|
278
|
+
"example": "无",
|
279
|
+
"member": "ImageUrl",
|
280
|
+
"name": "ImageUrl",
|
281
|
+
"output_required": false,
|
282
|
+
"required": false,
|
283
|
+
"type": "object",
|
284
|
+
"value_allowed_null": true
|
285
|
+
}
|
286
|
+
],
|
287
|
+
"usage": "both"
|
288
|
+
},
|
223
289
|
"Delta": {
|
224
290
|
"document": "返回的内容(流式返回)",
|
225
291
|
"members": [
|
@@ -242,6 +308,16 @@
|
|
242
308
|
"output_required": false,
|
243
309
|
"type": "string",
|
244
310
|
"value_allowed_null": false
|
311
|
+
},
|
312
|
+
{
|
313
|
+
"disabled": false,
|
314
|
+
"document": "模型生成的工具调用,仅 hunyuan-functioncall 模型支持\n说明:\n对于每一次的输出值应该以Id为标识对Type、Name、Arguments字段进行合并。\n\n注意:此字段可能返回 null,表示取不到有效值。",
|
315
|
+
"example": "无",
|
316
|
+
"member": "ToolCall",
|
317
|
+
"name": "ToolCalls",
|
318
|
+
"output_required": false,
|
319
|
+
"type": "list",
|
320
|
+
"value_allowed_null": true
|
245
321
|
}
|
246
322
|
],
|
247
323
|
"usage": "out"
|
@@ -438,12 +514,29 @@
|
|
438
514
|
],
|
439
515
|
"type": "object"
|
440
516
|
},
|
517
|
+
"ImageUrl": {
|
518
|
+
"document": "具体的图片内容",
|
519
|
+
"members": [
|
520
|
+
{
|
521
|
+
"disabled": false,
|
522
|
+
"document": "图片的 Url(以 http:// 或 https:// 开头)\n注意:此字段可能返回 null,表示取不到有效值。",
|
523
|
+
"example": "https://cloudcache.tencent-cloud.com/qcloud/ui/portal-set/build/About/images/bg-product-series_87d.png",
|
524
|
+
"member": "string",
|
525
|
+
"name": "Url",
|
526
|
+
"output_required": false,
|
527
|
+
"required": true,
|
528
|
+
"type": "string",
|
529
|
+
"value_allowed_null": true
|
530
|
+
}
|
531
|
+
],
|
532
|
+
"usage": "both"
|
533
|
+
},
|
441
534
|
"Message": {
|
442
535
|
"document": "会话内容",
|
443
536
|
"members": [
|
444
537
|
{
|
445
538
|
"disabled": false,
|
446
|
-
"document": "角色,可选值包括 system、user、assistant。",
|
539
|
+
"document": "角色,可选值包括 system、user、assistant、 tool。",
|
447
540
|
"example": "user",
|
448
541
|
"member": "string",
|
449
542
|
"name": "Role",
|
@@ -462,6 +555,39 @@
|
|
462
555
|
"required": false,
|
463
556
|
"type": "string",
|
464
557
|
"value_allowed_null": false
|
558
|
+
},
|
559
|
+
{
|
560
|
+
"disabled": false,
|
561
|
+
"document": "多种类型内容(目前支持图片和文本),仅 hunyuan-vision 模型支持\n注意:此字段可能返回 null,表示取不到有效值。",
|
562
|
+
"example": "无",
|
563
|
+
"member": "Content",
|
564
|
+
"name": "Contents",
|
565
|
+
"output_required": false,
|
566
|
+
"required": false,
|
567
|
+
"type": "list",
|
568
|
+
"value_allowed_null": true
|
569
|
+
},
|
570
|
+
{
|
571
|
+
"disabled": false,
|
572
|
+
"document": "当role为tool时传入,标识具体的函数调用\n注意:此字段可能返回 null,表示取不到有效值。",
|
573
|
+
"example": "call_cpv320k2c3m8fgcs8ja0",
|
574
|
+
"member": "string",
|
575
|
+
"name": "ToolCallId",
|
576
|
+
"output_required": false,
|
577
|
+
"required": false,
|
578
|
+
"type": "string",
|
579
|
+
"value_allowed_null": true
|
580
|
+
},
|
581
|
+
{
|
582
|
+
"disabled": false,
|
583
|
+
"document": "模型生成的工具调用,仅 hunyuan-functioncall 模型支持\n注意:此字段可能返回 null,表示取不到有效值。",
|
584
|
+
"example": "无",
|
585
|
+
"member": "ToolCall",
|
586
|
+
"name": "ToolCalls",
|
587
|
+
"output_required": false,
|
588
|
+
"required": false,
|
589
|
+
"type": "list",
|
590
|
+
"value_allowed_null": true
|
465
591
|
}
|
466
592
|
],
|
467
593
|
"usage": "both"
|
@@ -636,6 +762,130 @@
|
|
636
762
|
],
|
637
763
|
"type": "object"
|
638
764
|
},
|
765
|
+
"Tool": {
|
766
|
+
"document": "用户指定模型使用的工具",
|
767
|
+
"members": [
|
768
|
+
{
|
769
|
+
"disabled": false,
|
770
|
+
"document": "工具类型,当前只支持function",
|
771
|
+
"example": "function",
|
772
|
+
"member": "string",
|
773
|
+
"name": "Type",
|
774
|
+
"required": true,
|
775
|
+
"type": "string"
|
776
|
+
},
|
777
|
+
{
|
778
|
+
"disabled": false,
|
779
|
+
"document": "具体要调用的function",
|
780
|
+
"example": "无",
|
781
|
+
"member": "ToolFunction",
|
782
|
+
"name": "Function",
|
783
|
+
"required": true,
|
784
|
+
"type": "object"
|
785
|
+
}
|
786
|
+
],
|
787
|
+
"usage": "in"
|
788
|
+
},
|
789
|
+
"ToolCall": {
|
790
|
+
"document": "模型生成的工具调用",
|
791
|
+
"members": [
|
792
|
+
{
|
793
|
+
"disabled": false,
|
794
|
+
"document": "工具调用id",
|
795
|
+
"example": "call_cpv320k2c3m8fgcs8ja0",
|
796
|
+
"member": "string",
|
797
|
+
"name": "Id",
|
798
|
+
"output_required": true,
|
799
|
+
"required": true,
|
800
|
+
"type": "string",
|
801
|
+
"value_allowed_null": false
|
802
|
+
},
|
803
|
+
{
|
804
|
+
"disabled": false,
|
805
|
+
"document": "工具调用类型,当前只支持function",
|
806
|
+
"example": "function",
|
807
|
+
"member": "string",
|
808
|
+
"name": "Type",
|
809
|
+
"output_required": true,
|
810
|
+
"required": true,
|
811
|
+
"type": "string",
|
812
|
+
"value_allowed_null": false
|
813
|
+
},
|
814
|
+
{
|
815
|
+
"disabled": false,
|
816
|
+
"document": "具体的function调用",
|
817
|
+
"example": "无",
|
818
|
+
"member": "ToolCallFunction",
|
819
|
+
"name": "Function",
|
820
|
+
"output_required": true,
|
821
|
+
"required": true,
|
822
|
+
"type": "object",
|
823
|
+
"value_allowed_null": false
|
824
|
+
}
|
825
|
+
],
|
826
|
+
"usage": "both"
|
827
|
+
},
|
828
|
+
"ToolCallFunction": {
|
829
|
+
"document": "具体的function调用",
|
830
|
+
"members": [
|
831
|
+
{
|
832
|
+
"disabled": false,
|
833
|
+
"document": "function名称",
|
834
|
+
"example": "get_current_weather",
|
835
|
+
"member": "string",
|
836
|
+
"name": "Name",
|
837
|
+
"output_required": true,
|
838
|
+
"required": true,
|
839
|
+
"type": "string",
|
840
|
+
"value_allowed_null": false
|
841
|
+
},
|
842
|
+
{
|
843
|
+
"disabled": false,
|
844
|
+
"document": "function参数,一般为json字符串",
|
845
|
+
"example": "{\\\"location\\\":[\\\"北京\\\",\\\"深圳\\\"],\\\"unit\\\":\\\"celsius\\\"}",
|
846
|
+
"member": "string",
|
847
|
+
"name": "Arguments",
|
848
|
+
"output_required": true,
|
849
|
+
"required": true,
|
850
|
+
"type": "string",
|
851
|
+
"value_allowed_null": false
|
852
|
+
}
|
853
|
+
],
|
854
|
+
"usage": "both"
|
855
|
+
},
|
856
|
+
"ToolFunction": {
|
857
|
+
"document": "function定义",
|
858
|
+
"members": [
|
859
|
+
{
|
860
|
+
"disabled": false,
|
861
|
+
"document": "function名称,只能包含a-z,A-Z,0-9,\\_或-",
|
862
|
+
"example": "get_current_weather",
|
863
|
+
"member": "string",
|
864
|
+
"name": "Name",
|
865
|
+
"required": true,
|
866
|
+
"type": "string"
|
867
|
+
},
|
868
|
+
{
|
869
|
+
"disabled": false,
|
870
|
+
"document": "function参数,一般为json字符串",
|
871
|
+
"example": "无",
|
872
|
+
"member": "string",
|
873
|
+
"name": "Parameters",
|
874
|
+
"required": true,
|
875
|
+
"type": "string"
|
876
|
+
},
|
877
|
+
{
|
878
|
+
"disabled": false,
|
879
|
+
"document": "function的简单描述",
|
880
|
+
"example": "获取当前地点的天气",
|
881
|
+
"member": "string",
|
882
|
+
"name": "Description",
|
883
|
+
"required": false,
|
884
|
+
"type": "string"
|
885
|
+
}
|
886
|
+
],
|
887
|
+
"usage": "in"
|
888
|
+
},
|
639
889
|
"Usage": {
|
640
890
|
"document": "Token 数量",
|
641
891
|
"members": [
|
@@ -30,6 +30,30 @@
|
|
30
30
|
"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-pro\",\n \"Messages\": [\n {\n \"Role\": \"user\",\n \"Content\": \"你好呀!\"\n }\n ]\n}",
|
31
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
32
|
"title": "非流式请求成功示例"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"document": "推荐使用 API Explorer 调用接口,见本文档顶部说明。该示例说明hunyuan-functioncall模型如何用非流式方式调用接口。",
|
36
|
+
"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-functioncall\",\n \"Messages\": [\n {\n \"Role\": \"user\",\n \"Content\": \"北京和深圳今天天气如何\"\n }\n ],\n \"Tools\": [\n {\n \"Type\": \"function\",\n \"Function\": {\n \"Name\": \"get_current_weather\",\n \"Description\": \"获取当前地点的天气\",\n \"Parameters\": \"{\\n \\\"type\\\": \\\"object\\\",\\n \\\"properties\\\": {\\n \\\"location\\\": {\\n \\\"type\\\": \\\"string\\\",\\n \\\"description\\\": \\\"城市名称\\\"\\n },\\n \\\"unit\\\": {\\n \\\"type\\\": \\\"string\\\",\\n \\\"enum\\\": [\\n \\\"celsius\\\",\\n \\\"fahrenheit\\\"\\n ]\\n }\\n },\\n \\\"required\\\": [\\n \\\"location\\\"\\n ]\\n }\"\n }\n }\n ],\n \"ToolChoice\": \"auto\"\n}",
|
37
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"e7f5ce41-87fd-4977-803c-54cded687cd9\",\n \"Note\": \"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\n \"Choices\": [\n {\n \"Message\": {\n \"Role\": \"assistant\",\n \"Content\": \"使用get_current_weather工具来获取北京和深圳的当前天气情况。\\n\\t\\n\\t用户想要知道北京和深圳今天的天气情况。用户的请求是关于天气的查询,需要使用天气查询工具来获取信息。\",\n \"ToolCalls\": [\n {\n \"Type\": \"function\",\n \"Function\": {\n \"Name\": \"get_current_weather\",\n \"Arguments\": \"{\\\"location\\\":[\\\"北京\\\",\\\"深圳\\\"],\\\"unit\\\":\\\"celsius\\\"}\"\n }\n }\n ]\n },\n \"FinishReason\": \"tool_calls\"\n }\n ],\n \"Created\": 1719638614,\n \"Usage\": {\n \"PromptTokens\": 6,\n \"CompletionTokens\": 46,\n \"TotalTokens\": 52\n }\n }\n}",
|
38
|
+
"title": "hunyuan-functioncall模型非流式请求成功示例"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"document": "推荐使用 API Explorer 调用接口,见本文档顶部说明。该示例说明hunyuan-functioncall模型如何用流式方式调用接口。",
|
42
|
+
"input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChatCompletions\n<公共请求参数>\n\n{\n \"Model\": \"hunyuan-functioncall\",\n \"Stream\": true,\n \"Messages\": [\n {\n \"Role\": \"user\",\n \"Content\": \"北京和深圳今天天气如何\"\n }\n ],\n \"Tools\": [\n {\n \"Type\": \"function\",\n \"Function\": {\n \"Name\": \"get_current_weather\",\n \"Description\": \"获取当前地点的天气\",\n \"Parameters\": \"{\\n \\\"type\\\": \\\"object\\\",\\n \\\"properties\\\": {\\n \\\"location\\\": {\\n \\\"type\\\": \\\"string\\\",\\n \\\"description\\\": \\\"城市名称\\\"\\n },\\n \\\"unit\\\": {\\n \\\"type\\\": \\\"string\\\",\\n \\\"enum\\\": [\\n \\\"celsius\\\",\\n \\\"fahrenheit\\\"\\n ]\\n }\\n },\\n \\\"required\\\": [\\n \\\"location\\\"\\n ]\\n }\"\n }\n }\n ],\n \"ToolChoice\": \"auto\"\n}",
|
43
|
+
"output": "说明: 对于Delta.ToolCalls每一次的输出值应该以Id为标识对Type、Name、Arguments字段进行合并,本示例中的ToolCalls 最终值为:[{\"Id\": \"call_cq177uk2c3m1v7ep35dg\",\"Type\": \"function\",\"Function\": {\"Name\": \"get_current_weather\", \"Arguments\": \"{\\\"location\\\":[\\\"北京\\\",\\\"深圳\\\"],\\\"unit\\\":\\\"celsius\\\"}\"}}]\n\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"Delta\":{\"Role\":\"assistant\",\"Content\":\"\",\"ToolCalls\":[{\"Id\":\"call_cq154vk2c3m1v7ep3530\",\"Type\":\"function\",\"Function\":{\"Name\":\"get_current_weather\",\"Arguments\":\"\"}}]},\"FinishReason\":\"\"}],\"Created\":1719816830,\"Id\":\"cd37cf66-089f-4ab2-8118-e18baa238462\",\"Usage\":{\"PromptTokens\":6,\"CompletionTokens\":0,\"TotalTokens\":6}}\n\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"Delta\":{\"Role\":\"assistant\",\"Content\":\"\",\"ToolCalls\":[{\"Id\":\"call_cq154vk2c3m1v7ep3530\",\"Type\":\"function\",\"Function\":{\"Name\":\"\",\"Arguments\":\"{\\\"location\\\":\\\"北京\\\"}\"}}]},\"FinishReason\":\"\"}],\"Created\":1719816830,\"Id\":\"cd37cf66-089f-4ab2-8118-e18baa238462\",\"Usage\":{\"PromptTokens\":6,\"CompletionTokens\":0,\"TotalTokens\":6}}\n\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"Delta\":{\"Role\":\"assistant\",\"Content\":\"计划使用get_current_weather工具来获取北京和深圳的当前天气。\\n\\t\\n\\t用户想要知道北京和深圳今天的天气情况。用户的请求是关于天气的查询,需要使用天气查询工具来获取信息。\"},\"FinishReason\":\"\"}],\"Created\":1719816830,\"Id\":\"cd37cf66-089f-4ab2-8118-e18baa238462\",\"Usage\":{\"PromptTokens\":6,\"CompletionTokens\":46,\"TotalTokens\":52}}\n\ndata: {\"Note\":\"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\"Choices\":[{\"Delta\":{\"Role\":\"assistant\",\"Content\":\"\"},\"FinishReason\":\"tool_calls\"}],\"Created\":1719816830,\"Id\":\"cd37cf66-089f-4ab2-8118-e18baa238462\",\"Usage\":{\"PromptTokens\":6,\"CompletionTokens\":46,\"TotalTokens\":52}}",
|
44
|
+
"title": "hunyuan-functioncall模型流式请求成功示例"
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"document": "推荐使用 API Explorer 调用接口,见本文档顶部说明。该示例说明hunyuan-functioncall模型多轮对话如何调用接口。",
|
48
|
+
"input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChatCompletions\n<公共请求参数>\n\n{\n \"Model\": \"hunyuan-functioncall\",\n \"Messages\": [\n {\n \"Role\": \"user\",\n \"Content\": \"北京和深圳今天天气如何\"\n },\n {\n \"Role\": \"assistant\",\n \"Content\": \"使用get_current_weather工具来获取北京和深圳的当前天气。\\n\\t\\n\\t用户想要知道北京和深圳今天的天气情况。用户提供了两个城市名称,但没有指定温度单位,根据常识,默认用户需要的是摄氏度。\",\n \"ToolCalls\": [\n {\n \"Id\": \"call_cq16e7k2c3m1v7ep35c0\",\n \"Type\": \"function\",\n \"Function\": {\n \"Name\": \"get_current_weather\",\n \"Arguments\": \"{\\\"location\\\":\\\"北京\\\",\\\"unit\\\":\\\"celsius\\\"}\"\n }\n }\n ]\n },\n {\n \"Role\": \"tool\",\n \"ToolCallId\": \"call_cq16e7k2c3m1v7ep35c0\",\n \"Content\": \"{\\\"temperature\\\": 35, \\\"wind\\\": \\\"南\\\", \\\"condition\\\": \\\"暴雨\\\"}\"\n }\n ],\n \"Tools\": [\n {\n \"Type\": \"function\",\n \"Function\": {\n \"Name\": \"get_current_weather\",\n \"Description\": \"获取当前地点的天气\",\n \"Parameters\": \"{\\n \\\"type\\\": \\\"object\\\",\\n \\\"properties\\\": {\\n \\\"location\\\": {\\n \\\"type\\\": \\\"string\\\",\\n \\\"description\\\": \\\"城市名称\\\"\\n },\\n \\\"unit\\\": {\\n \\\"type\\\": \\\"string\\\",\\n \\\"enum\\\": [\\n \\\"celsius\\\",\\n \\\"fahrenheit\\\"\\n ]\\n }\\n },\\n \\\"required\\\": [\\n \\\"location\\\"\\n ]\\n }\"\n }\n }\n ],\n \"ToolChoice\": \"auto\"\n}",
|
49
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"5a112898-d802-4bca-8ba2-7ce2388b98e8\",\n \"Note\": \"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\n \"Choices\": [\n {\n \"Message\": {\n \"Role\": \"assistant\",\n \"Content\": \"北京今天的天气情况是:\\n温度:35摄氏度\\n风向:南\\n天气状况:暴雨\\n\\n深圳今天的天气情况是:\\n温度:35摄氏度\\n风向:南\\n天气状况:暴雨\"\n },\n \"FinishReason\": \"stop\"\n }\n ],\n \"Created\": 1719822322,\n \"Id\": \"5a112898-d802-4bca-8ba2-7ce2388b98e8\",\n \"Usage\": {\n \"PromptTokens\": 71,\n \"CompletionTokens\": 42,\n \"TotalTokens\": 113\n }\n }\n}",
|
50
|
+
"title": "hunyuan-functioncall模型多轮对话示例"
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"document": "推荐使用 API Explorer 调用接口,见本文档顶部说明。该示例说明hunyuan-vision模型如何调用接口。",
|
54
|
+
"input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChatCompletions\n<公共请求参数>\n\n{\n \"Model\": \"hunyuan-vision\",\n \"Messages\": [\n {\n \"Role\": \"user\",\n \"Contents\": [\n {\n \"Type\": \"text\",\n \"Text\": \"下面图片中是哪个公司的 Logo?\"\n },\n {\n \"Type\": \"image_url\",\n \"ImageUrl\": {\n \"Url\": \"https://cloudcache.tencent-cloud.com/qcloud/ui/portal-set/build/About/images/bg-product-series_87d.png\"\n }\n }\n ]\n }\n ],\n \"Stream\": false\n}",
|
55
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"a21f9d7e-c18a-438b-bfb4-7941a2adf8ae\",\n \"Note\": \"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\",\n \"Choices\": [\n {\n \"Message\": {\n \"Role\": \"assistant\",\n \"Content\": \"这张图片中展示的Logo属于腾讯公司。\"\n },\n \"FinishReason\": \"stop\"\n }\n ],\n \"Created\": 1714290436,\n \"Id\": \"a21f9d7e-c18a-438b-bfb4-7941a2adf8ae\",\n \"Usage\": {\n \"PromptTokens\": 7,\n \"CompletionTokens\": 10,\n \"TotalTokens\": 17\n }\n }\n}",
|
56
|
+
"title": "图片理解示例"
|
33
57
|
}
|
34
58
|
],
|
35
59
|
"GetEmbedding": [
|