tccli 3.0.1181.1__py2.py3-none-any.whl → 3.0.1183.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/__init__.py +3 -0
- tccli/services/ams/v20201229/api.json +20 -0
- tccli/services/ams/v20201229/examples.json +1 -1
- tccli/services/asr/asr_client.py +229 -17
- tccli/services/asr/v20190614/api.json +379 -0
- tccli/services/asr/v20190614/examples.json +32 -0
- tccli/services/batch/v20170312/api.json +1 -1
- tccli/services/bi/v20220105/api.json +10 -0
- tccli/services/cdb/cdb_client.py +106 -0
- tccli/services/cdb/v20170320/api.json +185 -0
- tccli/services/cdb/v20170320/examples.json +17 -1
- tccli/services/cdwdoris/v20211228/api.json +70 -8
- tccli/services/cdwdoris/v20211228/examples.json +2 -2
- tccli/services/cfg/v20210820/api.json +134 -11
- tccli/services/cfw/cfw_client.py +53 -0
- tccli/services/cfw/v20190904/api.json +44 -0
- tccli/services/cfw/v20190904/examples.json +8 -0
- tccli/services/ckafka/v20190819/api.json +46 -16
- tccli/services/ckafka/v20190819/examples.json +8 -8
- tccli/services/clb/v20180317/api.json +99 -2
- tccli/services/cls/v20201016/api.json +1 -1
- tccli/services/controlcenter/__init__.py +4 -0
- tccli/services/controlcenter/controlcenter_client.py +195 -0
- tccli/services/controlcenter/v20230110/api.json +82 -0
- tccli/services/controlcenter/v20230110/examples.json +13 -0
- tccli/services/csip/v20221121/api.json +308 -1
- tccli/services/cvm/v20170312/api.json +20 -20
- tccli/services/cvm/v20170312/examples.json +1 -1
- tccli/services/cwp/v20180228/api.json +3 -3
- tccli/services/cwp/v20180228/examples.json +1 -1
- tccli/services/cynosdb/cynosdb_client.py +110 -4
- tccli/services/cynosdb/v20190107/api.json +296 -11
- tccli/services/cynosdb/v20190107/examples.json +19 -3
- tccli/services/dasb/v20191018/api.json +20 -1
- tccli/services/dbbrain/v20210527/api.json +15 -15
- tccli/services/dc/v20180410/api.json +117 -73
- tccli/services/dc/v20180410/examples.json +11 -11
- tccli/services/dcdb/dcdb_client.py +53 -0
- tccli/services/dcdb/v20180411/api.json +54 -0
- tccli/services/dcdb/v20180411/examples.json +8 -0
- tccli/services/emr/emr_client.py +53 -0
- tccli/services/emr/v20190103/api.json +52 -0
- tccli/services/emr/v20190103/examples.json +8 -0
- tccli/services/es/es_client.py +53 -0
- tccli/services/es/v20180416/api.json +64 -1
- tccli/services/es/v20180416/examples.json +8 -0
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/essbasic/v20210526/api.json +9 -9
- tccli/services/hunyuan/hunyuan_client.py +106 -0
- tccli/services/hunyuan/v20230901/api.json +236 -1
- tccli/services/hunyuan/v20230901/examples.json +16 -0
- tccli/services/ims/v20201229/api.json +1 -1
- tccli/services/iotexplorer/v20190423/api.json +2 -2
- tccli/services/iss/v20230517/api.json +18 -0
- tccli/services/iss/v20230517/examples.json +3 -3
- tccli/services/lke/v20231130/api.json +141 -2
- tccli/services/mariadb/mariadb_client.py +57 -4
- tccli/services/mariadb/v20170312/api.json +54 -0
- tccli/services/mariadb/v20170312/examples.json +8 -0
- tccli/services/oceanus/v20190422/api.json +10 -0
- tccli/services/ocr/v20181119/api.json +7 -7
- tccli/services/organization/organization_client.py +53 -0
- tccli/services/organization/v20210331/api.json +43 -0
- tccli/services/organization/v20210331/examples.json +8 -0
- tccli/services/postgres/v20170312/api.json +3 -0
- tccli/services/redis/v20180412/api.json +16 -16
- tccli/services/scf/v20180416/api.json +26 -16
- tccli/services/ses/v20201002/api.json +148 -11
- tccli/services/sms/v20190711/api.json +49 -49
- tccli/services/sms/v20190711/examples.json +2 -2
- tccli/services/ssl/v20191205/api.json +3 -3
- tccli/services/ssl/v20191205/examples.json +2 -2
- tccli/services/tdmq/v20200217/api.json +180 -93
- tccli/services/tdmq/v20200217/examples.json +8 -8
- tccli/services/tke/v20180525/api.json +14 -2
- tccli/services/tke/v20180525/examples.json +3 -3
- tccli/services/tms/tms_client.py +0 -53
- tccli/services/tms/v20201229/api.json +2 -46
- tccli/services/tms/v20201229/examples.json +0 -8
- tccli/services/tmt/v20180321/api.json +4 -4
- tccli/services/trocket/v20230308/api.json +62 -12
- tccli/services/vpc/v20170312/api.json +23 -0
- tccli/services/wedata/v20210820/api.json +1909 -175
- tccli/services/wedata/v20210820/examples.json +62 -0
- tccli/services/wedata/wedata_client.py +387 -16
- {tccli-3.0.1181.1.dist-info → tccli-3.0.1183.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1181.1.dist-info → tccli-3.0.1183.1.dist-info}/RECORD +91 -87
- {tccli-3.0.1181.1.dist-info → tccli-3.0.1183.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1181.1.dist-info → tccli-3.0.1183.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1181.1.dist-info → tccli-3.0.1183.1.dist-info}/license_files/LICENSE +0 -0
@@ -17,6 +17,58 @@ from tencentcloud.hunyuan.v20230901 import models as models_v20230901
|
|
17
17
|
from jmespath import search
|
18
18
|
import time
|
19
19
|
|
20
|
+
def doQueryHunyuanImageChatJob(args, parsed_globals):
|
21
|
+
g_param = parse_global_arg(parsed_globals)
|
22
|
+
|
23
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
24
|
+
cred = credential.CVMRoleCredential()
|
25
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
26
|
+
cred = credential.STSAssumeRoleCredential(
|
27
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
28
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
29
|
+
)
|
30
|
+
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):
|
31
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
32
|
+
else:
|
33
|
+
cred = credential.Credential(
|
34
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
35
|
+
)
|
36
|
+
http_profile = HttpProfile(
|
37
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
38
|
+
reqMethod="POST",
|
39
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
40
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
41
|
+
)
|
42
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
43
|
+
if g_param[OptionsDefine.Language]:
|
44
|
+
profile.language = g_param[OptionsDefine.Language]
|
45
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
46
|
+
client = mod.HunyuanClient(cred, g_param[OptionsDefine.Region], profile)
|
47
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
48
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
49
|
+
model = models.QueryHunyuanImageChatJobRequest()
|
50
|
+
model.from_json_string(json.dumps(args))
|
51
|
+
start_time = time.time()
|
52
|
+
while True:
|
53
|
+
rsp = client.QueryHunyuanImageChatJob(model)
|
54
|
+
result = rsp.to_json_string()
|
55
|
+
try:
|
56
|
+
json_obj = json.loads(result)
|
57
|
+
except TypeError as e:
|
58
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
59
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
60
|
+
break
|
61
|
+
cur_time = time.time()
|
62
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
63
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
64
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
65
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
66
|
+
else:
|
67
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
68
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
69
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
70
|
+
|
71
|
+
|
20
72
|
def doSubmitHunyuanImageJob(args, parsed_globals):
|
21
73
|
g_param = parse_global_arg(parsed_globals)
|
22
74
|
|
@@ -173,6 +225,58 @@ def doGetTokenCount(args, parsed_globals):
|
|
173
225
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
174
226
|
|
175
227
|
|
228
|
+
def doSubmitHunyuanImageChatJob(args, parsed_globals):
|
229
|
+
g_param = parse_global_arg(parsed_globals)
|
230
|
+
|
231
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
232
|
+
cred = credential.CVMRoleCredential()
|
233
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
234
|
+
cred = credential.STSAssumeRoleCredential(
|
235
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
236
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
237
|
+
)
|
238
|
+
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):
|
239
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
240
|
+
else:
|
241
|
+
cred = credential.Credential(
|
242
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
243
|
+
)
|
244
|
+
http_profile = HttpProfile(
|
245
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
246
|
+
reqMethod="POST",
|
247
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
248
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
249
|
+
)
|
250
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
251
|
+
if g_param[OptionsDefine.Language]:
|
252
|
+
profile.language = g_param[OptionsDefine.Language]
|
253
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
254
|
+
client = mod.HunyuanClient(cred, g_param[OptionsDefine.Region], profile)
|
255
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
256
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
257
|
+
model = models.SubmitHunyuanImageChatJobRequest()
|
258
|
+
model.from_json_string(json.dumps(args))
|
259
|
+
start_time = time.time()
|
260
|
+
while True:
|
261
|
+
rsp = client.SubmitHunyuanImageChatJob(model)
|
262
|
+
result = rsp.to_json_string()
|
263
|
+
try:
|
264
|
+
json_obj = json.loads(result)
|
265
|
+
except TypeError as e:
|
266
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
267
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
268
|
+
break
|
269
|
+
cur_time = time.time()
|
270
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
271
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
272
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
273
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
274
|
+
else:
|
275
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
276
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
277
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
278
|
+
|
279
|
+
|
176
280
|
def doChatCompletions(args, parsed_globals):
|
177
281
|
g_param = parse_global_arg(parsed_globals)
|
178
282
|
|
@@ -444,9 +548,11 @@ MODELS_MAP = {
|
|
444
548
|
}
|
445
549
|
|
446
550
|
ACTION_MAP = {
|
551
|
+
"QueryHunyuanImageChatJob": doQueryHunyuanImageChatJob,
|
447
552
|
"SubmitHunyuanImageJob": doSubmitHunyuanImageJob,
|
448
553
|
"QueryHunyuanImageJob": doQueryHunyuanImageJob,
|
449
554
|
"GetTokenCount": doGetTokenCount,
|
555
|
+
"SubmitHunyuanImageChatJob": doSubmitHunyuanImageChatJob,
|
450
556
|
"ChatCompletions": doChatCompletions,
|
451
557
|
"GetEmbedding": doGetEmbedding,
|
452
558
|
"SetPayMode": doSetPayMode,
|
@@ -28,6 +28,13 @@
|
|
28
28
|
"output": "GetTokenCountResponse",
|
29
29
|
"status": "online"
|
30
30
|
},
|
31
|
+
"QueryHunyuanImageChatJob": {
|
32
|
+
"document": "混元生图(多轮对话)接口基于混元大模型,将根据输入的文本描述生成图像,支持通过多轮对话的方式不断调整图像内容。分为提交任务和查询任务2个接口。\n提交任务:输入文本和前置对话 ID 等,提交一个混元生图多轮对话异步任务,获得任务 ID。\n查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得在上一轮对话基础上继续生成的图像结果。\n混元生图(多轮对话)默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。",
|
33
|
+
"input": "QueryHunyuanImageChatJobRequest",
|
34
|
+
"name": "查询混元生图(多轮对话)任务",
|
35
|
+
"output": "QueryHunyuanImageChatJobResponse",
|
36
|
+
"status": "online"
|
37
|
+
},
|
31
38
|
"QueryHunyuanImageJob": {
|
32
39
|
"document": "混元生图接口基于混元大模型,将根据输入的文本描述,智能生成与之相关的结果图。分为提交任务和查询任务2个接口。\n提交任务:输入文本等,提交一个混元生图异步任务,获得任务 ID。\n查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。\n并发任务数(并发)说明:并发任务数指能同时处理的任务数量。混元生图默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。",
|
33
40
|
"input": "QueryHunyuanImageJobRequest",
|
@@ -42,6 +49,13 @@
|
|
42
49
|
"output": "SetPayModeResponse",
|
43
50
|
"status": "online"
|
44
51
|
},
|
52
|
+
"SubmitHunyuanImageChatJob": {
|
53
|
+
"document": "混元生图(多轮对话)接口基于混元大模型,将根据输入的文本描述生成图像,支持通过多轮对话的方式不断调整图像内容。分为提交任务和查询任务2个接口。\n提交任务:输入文本和前置对话 ID 等,提交一个混元生图多轮对话异步任务,获得任务 ID。\n查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得在上一轮对话基础上继续生成的图像结果。\n混元生图(多轮对话)默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。",
|
54
|
+
"input": "SubmitHunyuanImageChatJobRequest",
|
55
|
+
"name": "提交混元生图(多轮对话)任务",
|
56
|
+
"output": "SubmitHunyuanImageChatJobResponse",
|
57
|
+
"status": "online"
|
58
|
+
},
|
45
59
|
"SubmitHunyuanImageJob": {
|
46
60
|
"document": "混元生图接口基于混元大模型,将根据输入的文本描述,智能生成与之相关的结果图。分为提交任务和查询任务2个接口。\n提交任务:输入文本等,提交一个混元生图异步任务,获得任务 ID。\n查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。\n并发任务数(并发)说明:并发任务数指能同时处理的任务数量。混元生图默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。",
|
47
61
|
"input": "SubmitHunyuanImageJobRequest",
|
@@ -96,7 +110,7 @@
|
|
96
110
|
"members": [
|
97
111
|
{
|
98
112
|
"disabled": false,
|
99
|
-
"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) 按需调用。",
|
113
|
+
"document": "模型名称,可选值包括 hunyuan-lite、hunyuan-standard、hunyuan-standard-256K、hunyuan-pro、 hunyuan-code、 hunyuan-role、 hunyuan-functioncall、 hunyuan-vision、 hunyuan-turbo。\n各模型介绍请阅读 [产品概述](https://cloud.tencent.com/document/product/1729/104753) 中的说明。\n\n注意:\n不同的模型计费不同,请根据 [购买指南](https://cloud.tencent.com/document/product/1729/97731) 按需调用。",
|
100
114
|
"example": "hunyuan-pro",
|
101
115
|
"member": "string",
|
102
116
|
"name": "Model",
|
@@ -609,6 +623,56 @@
|
|
609
623
|
],
|
610
624
|
"type": "object"
|
611
625
|
},
|
626
|
+
"History": {
|
627
|
+
"document": "混元生图多轮对话历史记录。",
|
628
|
+
"members": [
|
629
|
+
{
|
630
|
+
"disabled": false,
|
631
|
+
"document": "对话的 ID,用于唯一标识一轮对话\n注意:此字段可能返回 null,表示取不到有效值。",
|
632
|
+
"example": "无",
|
633
|
+
"member": "string",
|
634
|
+
"name": "ChatId",
|
635
|
+
"output_required": false,
|
636
|
+
"required": false,
|
637
|
+
"type": "string",
|
638
|
+
"value_allowed_null": true
|
639
|
+
},
|
640
|
+
{
|
641
|
+
"disabled": false,
|
642
|
+
"document": "原始输入的 Prompt 文本\n注意:此字段可能返回 null,表示取不到有效值。",
|
643
|
+
"example": "无",
|
644
|
+
"member": "string",
|
645
|
+
"name": "Prompt",
|
646
|
+
"output_required": false,
|
647
|
+
"required": false,
|
648
|
+
"type": "string",
|
649
|
+
"value_allowed_null": true
|
650
|
+
},
|
651
|
+
{
|
652
|
+
"disabled": false,
|
653
|
+
"document": "扩写后的 Prompt 文本\n注意:此字段可能返回 null,表示取不到有效值。",
|
654
|
+
"example": "无",
|
655
|
+
"member": "string",
|
656
|
+
"name": "RevisedPrompt",
|
657
|
+
"output_required": false,
|
658
|
+
"required": false,
|
659
|
+
"type": "string",
|
660
|
+
"value_allowed_null": true
|
661
|
+
},
|
662
|
+
{
|
663
|
+
"disabled": false,
|
664
|
+
"document": "生成图的随机种子\n注意:此字段可能返回 null,表示取不到有效值。",
|
665
|
+
"example": "无",
|
666
|
+
"member": "int64",
|
667
|
+
"name": "Seed",
|
668
|
+
"output_required": false,
|
669
|
+
"required": false,
|
670
|
+
"type": "int",
|
671
|
+
"value_allowed_null": true
|
672
|
+
}
|
673
|
+
],
|
674
|
+
"usage": "both"
|
675
|
+
},
|
612
676
|
"ImageUrl": {
|
613
677
|
"document": "具体的图片内容",
|
614
678
|
"members": [
|
@@ -762,6 +826,113 @@
|
|
762
826
|
],
|
763
827
|
"usage": "both"
|
764
828
|
},
|
829
|
+
"QueryHunyuanImageChatJobRequest": {
|
830
|
+
"document": "QueryHunyuanImageChatJob请求参数结构体",
|
831
|
+
"members": [
|
832
|
+
{
|
833
|
+
"disabled": false,
|
834
|
+
"document": "任务 ID。",
|
835
|
+
"example": "无",
|
836
|
+
"member": "string",
|
837
|
+
"name": "JobId",
|
838
|
+
"required": false,
|
839
|
+
"type": "string"
|
840
|
+
}
|
841
|
+
],
|
842
|
+
"type": "object"
|
843
|
+
},
|
844
|
+
"QueryHunyuanImageChatJobResponse": {
|
845
|
+
"document": "QueryHunyuanImageChatJob返回参数结构体",
|
846
|
+
"members": [
|
847
|
+
{
|
848
|
+
"disabled": false,
|
849
|
+
"document": "当前任务状态码:\n1:等待中、2:运行中、4:处理失败、5:处理完成。",
|
850
|
+
"example": "无",
|
851
|
+
"member": "string",
|
852
|
+
"name": "JobStatusCode",
|
853
|
+
"output_required": false,
|
854
|
+
"type": "string",
|
855
|
+
"value_allowed_null": false
|
856
|
+
},
|
857
|
+
{
|
858
|
+
"disabled": false,
|
859
|
+
"document": "当前任务状态:排队中、处理中、处理失败或者处理完成。\n",
|
860
|
+
"example": "无",
|
861
|
+
"member": "string",
|
862
|
+
"name": "JobStatusMsg",
|
863
|
+
"output_required": false,
|
864
|
+
"type": "string",
|
865
|
+
"value_allowed_null": false
|
866
|
+
},
|
867
|
+
{
|
868
|
+
"disabled": false,
|
869
|
+
"document": "任务处理失败错误码。\n",
|
870
|
+
"example": "无",
|
871
|
+
"member": "string",
|
872
|
+
"name": "JobErrorCode",
|
873
|
+
"output_required": false,
|
874
|
+
"type": "string",
|
875
|
+
"value_allowed_null": false
|
876
|
+
},
|
877
|
+
{
|
878
|
+
"disabled": false,
|
879
|
+
"document": "任务处理失败错误信息。\n",
|
880
|
+
"example": "无",
|
881
|
+
"member": "string",
|
882
|
+
"name": "JobErrorMsg",
|
883
|
+
"output_required": false,
|
884
|
+
"type": "string",
|
885
|
+
"value_allowed_null": false
|
886
|
+
},
|
887
|
+
{
|
888
|
+
"disabled": false,
|
889
|
+
"document": "本轮对话的 ChatId,ChatId 用于唯一标识一轮对话。\n一个对话组中,最多支持进行100轮对话。\n每轮对话数据有效期为7天,到期后 ChatId 失效,有效期内的历史对话数据可通过 History 查询,如有长期使用需求请及时保存输入输出数据。",
|
890
|
+
"example": "无",
|
891
|
+
"member": "string",
|
892
|
+
"name": "ChatId",
|
893
|
+
"output_required": false,
|
894
|
+
"type": "string",
|
895
|
+
"value_allowed_null": false
|
896
|
+
},
|
897
|
+
{
|
898
|
+
"disabled": false,
|
899
|
+
"document": "生成图 URL 列表,有效期7天,请及时保存。",
|
900
|
+
"example": "无",
|
901
|
+
"member": "string",
|
902
|
+
"name": "ResultImage",
|
903
|
+
"output_required": false,
|
904
|
+
"type": "list",
|
905
|
+
"value_allowed_null": false
|
906
|
+
},
|
907
|
+
{
|
908
|
+
"disabled": false,
|
909
|
+
"document": "结果 detail 数组,Success 代表成功。\n",
|
910
|
+
"example": "无",
|
911
|
+
"member": "string",
|
912
|
+
"name": "ResultDetails",
|
913
|
+
"output_required": false,
|
914
|
+
"type": "list",
|
915
|
+
"value_allowed_null": false
|
916
|
+
},
|
917
|
+
{
|
918
|
+
"disabled": false,
|
919
|
+
"document": "本轮对话前置的历史对话数据(不含生成图)。",
|
920
|
+
"example": "无",
|
921
|
+
"member": "History",
|
922
|
+
"name": "History",
|
923
|
+
"output_required": false,
|
924
|
+
"type": "list",
|
925
|
+
"value_allowed_null": false
|
926
|
+
},
|
927
|
+
{
|
928
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
929
|
+
"member": "string",
|
930
|
+
"name": "RequestId",
|
931
|
+
"type": "string"
|
932
|
+
}
|
933
|
+
],
|
934
|
+
"type": "object"
|
935
|
+
},
|
765
936
|
"QueryHunyuanImageJobRequest": {
|
766
937
|
"document": "QueryHunyuanImageJob请求参数结构体",
|
767
938
|
"members": [
|
@@ -942,6 +1113,70 @@
|
|
942
1113
|
],
|
943
1114
|
"type": "object"
|
944
1115
|
},
|
1116
|
+
"SubmitHunyuanImageChatJobRequest": {
|
1117
|
+
"document": "SubmitHunyuanImageChatJob请求参数结构体",
|
1118
|
+
"members": [
|
1119
|
+
{
|
1120
|
+
"disabled": false,
|
1121
|
+
"document": "本轮对话的文本描述。\n提交一个任务请求对应发起一轮生图对话,每轮对话中可输入一条 Prompt,生成一张图像,支持通过多轮输入 Prompt 来不断调整图像内容。\n推荐使用中文,最多可传1024个 utf-8 字符。\n输入示例:\n<li> 第一轮对话:一颗红色的苹果 </li>\n<li> 第二轮对话:将苹果改为绿色 </li>\n<li> 第三轮对话:苹果放在桌子上 </li>",
|
1122
|
+
"example": "无",
|
1123
|
+
"member": "string",
|
1124
|
+
"name": "Prompt",
|
1125
|
+
"required": true,
|
1126
|
+
"type": "string"
|
1127
|
+
},
|
1128
|
+
{
|
1129
|
+
"disabled": false,
|
1130
|
+
"document": "上传上一轮对话的 ChatId,本轮对话将在指定的上一轮对话结果基础上继续生成图像。\n如果不传代表新建一个对话组,重新开启一轮新的对话。\n一个对话组中,最多支持进行100轮对话。",
|
1131
|
+
"example": "无",
|
1132
|
+
"member": "string",
|
1133
|
+
"name": "ChatId",
|
1134
|
+
"required": false,
|
1135
|
+
"type": "string"
|
1136
|
+
},
|
1137
|
+
{
|
1138
|
+
"disabled": false,
|
1139
|
+
"document": "为生成结果图添加显式水印标识的开关,默认为1。 \n1:添加。 \n0:不添加。 \n其他数值:默认按1处理。 \n建议您使用显著标识来提示结果图使用了 AI 绘画技术,是 AI 生成的图片。",
|
1140
|
+
"example": "无",
|
1141
|
+
"member": "int64",
|
1142
|
+
"name": "LogoAdd",
|
1143
|
+
"required": false,
|
1144
|
+
"type": "int"
|
1145
|
+
},
|
1146
|
+
{
|
1147
|
+
"disabled": false,
|
1148
|
+
"document": "标识内容设置。\n默认在生成结果图右下角添加“图片由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。",
|
1149
|
+
"example": "无",
|
1150
|
+
"member": "LogoParam",
|
1151
|
+
"name": "LogoParam",
|
1152
|
+
"required": false,
|
1153
|
+
"type": "object"
|
1154
|
+
}
|
1155
|
+
],
|
1156
|
+
"type": "object"
|
1157
|
+
},
|
1158
|
+
"SubmitHunyuanImageChatJobResponse": {
|
1159
|
+
"document": "SubmitHunyuanImageChatJob返回参数结构体",
|
1160
|
+
"members": [
|
1161
|
+
{
|
1162
|
+
"disabled": false,
|
1163
|
+
"document": "任务 ID。",
|
1164
|
+
"example": "无",
|
1165
|
+
"member": "string",
|
1166
|
+
"name": "JobId",
|
1167
|
+
"output_required": false,
|
1168
|
+
"type": "string",
|
1169
|
+
"value_allowed_null": false
|
1170
|
+
},
|
1171
|
+
{
|
1172
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
1173
|
+
"member": "string",
|
1174
|
+
"name": "RequestId",
|
1175
|
+
"type": "string"
|
1176
|
+
}
|
1177
|
+
],
|
1178
|
+
"type": "object"
|
1179
|
+
},
|
945
1180
|
"SubmitHunyuanImageJobRequest": {
|
946
1181
|
"document": "SubmitHunyuanImageJob请求参数结构体",
|
947
1182
|
"members": [
|
@@ -80,6 +80,14 @@
|
|
80
80
|
"title": "调用接口成功案例"
|
81
81
|
}
|
82
82
|
],
|
83
|
+
"QueryHunyuanImageChatJob": [
|
84
|
+
{
|
85
|
+
"document": "成功查询",
|
86
|
+
"input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: QueryHunyuanImageChatJob\n<公共请求参数>\n\n{\n \"JobId\": \"test\"\n}",
|
87
|
+
"output": "{\n \"Response\": {\n \"ChatId\": \"1219898325508988928\",\n \"History\": [\n {\n \"ChatId\": \"1219898325508988928\",\n \"Prompt\": \"雪山\",\n \"RevisedPrompt\": \"摄影风格,画面主要描述一座雄伟的山峰,山顶覆盖着白雪,阳光照耀下闪耀着光芒,背景是蔚蓝的天空,镜头是全景\",\n \"Seed\": 1763557528\n }\n ],\n \"JobErrorCode\": \"\",\n \"JobErrorMsg\": \"\",\n \"JobStatusCode\": \"5\",\n \"JobStatusMsg\": \"处理完成\",\n \"RequestId\": \"da0634c6-7b6b-4115-9081-bd2d20a860ca\",\n \"ResultDetails\": [\n \"Success\"\n ],\n \"ResultImage\": [\n \"https:/result.jpg\"\n ]\n }\n}",
|
88
|
+
"title": "成功查询"
|
89
|
+
}
|
90
|
+
],
|
83
91
|
"QueryHunyuanImageJob": [
|
84
92
|
{
|
85
93
|
"document": "成功查询",
|
@@ -96,6 +104,14 @@
|
|
96
104
|
"title": "示例\t"
|
97
105
|
}
|
98
106
|
],
|
107
|
+
"SubmitHunyuanImageChatJob": [
|
108
|
+
{
|
109
|
+
"document": "调用成功",
|
110
|
+
"input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SubmitHunyuanImageChatJob\n<公共请求参数>\n\n{\n \"Prompt\": \"雪山\"\n}",
|
111
|
+
"output": "{\n \"Response\": {\n \"JobId\": \"test\",\n \"RequestId\": \"9723dd95-d217-46ff-a556-2cc760142737\"\n }\n}",
|
112
|
+
"title": "调用成功"
|
113
|
+
}
|
114
|
+
],
|
99
115
|
"SubmitHunyuanImageJob": [
|
100
116
|
{
|
101
117
|
"document": "调用成功",
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
3
|
"CreateImageModerationAsyncTask": {
|
4
|
-
"document": "本接口用于提交图片文件进行异步智能审核任务。使用前请您使用腾讯云主账号登录控制台 [开通图片内容安全服务](https://console.cloud.tencent.com/cms/image/package) 并调整好对应的业务配置。\n### 接口使用说明:\n- 前往“[内容安全控制台-图片内容安全](https://console.cloud.tencent.com/cms/image/package)”开启使用图片内容安全服务,首次开通服务的用户可免费领用试用套餐包,包含**3000张图片**识别额度,有效期为15天。\n- 该接口为收费接口,计费方式敬请参见 [腾讯云图片内容安全定价](https://cloud.tencent.com/product/ims/pricing)。\n\n### 接口功能说明:\n- 支持对图片文件或链接进行检测,通过深度学习技术,识别可能令人反感、不安全或不适宜的违规图片内容;\n-
|
4
|
+
"document": "本接口用于提交图片文件进行异步智能审核任务。使用前请您使用腾讯云主账号登录控制台 [开通图片内容安全服务](https://console.cloud.tencent.com/cms/image/package) 并调整好对应的业务配置。\n### 接口使用说明:\n- 前往“[内容安全控制台-图片内容安全](https://console.cloud.tencent.com/cms/image/package)”开启使用图片内容安全服务,首次开通服务的用户可免费领用试用套餐包,包含**3000张图片**识别额度,有效期为15天。\n- 该接口为收费接口,计费方式敬请参见 [腾讯云图片内容安全定价](https://cloud.tencent.com/product/ims/pricing)。\n\n### 接口功能说明:\n- 支持对图片文件或链接进行检测,通过深度学习技术,识别可能令人反感、不安全或不适宜的违规图片内容;\n- 支持对长图进行拆分检测;\n- 支持识别多种违规场景,包括:低俗、违法违规、色情、广告等场景;\n- 支持多种物体检测(实体、广告台标、二维码等)及图片中文本的OCR文本识别;\n- 支持根据不同的业务场景配置自定义的审核策略;\n- 支持用户自定义选择图片风险库,打击自定义识别类型的违规图片(目前仅支持黑名单配置);\n- 支持在审核图片内容时同时关联账号或设备信息,可识别违规风险账号或设备。\n### 接口调用说明:\n- 图片文件大小限制:**Base64编码内容应小于10MB**;**图片资源应小于100MB**\n- 图片尺寸支持:**长和宽 需>50分辨率且<40000分辨率,并且图片长宽比<90:1;**\n- 图片文件分辨率支持:建议**分辨率大于256x256**,否则可能会影响识别效果;\n- 图片文件支持格式:PNG、JPG、JPEG、BMP、GIF、WEBP格式;\n- 图片文件链接支持的传输协议:HTTP、HTTPS;\n- 若传入图片文件的访问链接,则需要注意**图片异步接口下载超时时间为15秒,失败后重试1次为3 秒,共18秒下载时间**,为保障被检测图片的稳定性和可靠性,建议您使用腾讯云COS存储或者CDN缓存等;\n- 默认接口请求频率限制:**20次/秒**,超过此调用频率则会报错。\n- ### 接口回调格式:\n- 图片异步检测接口回调格式同[图片同步检测接口输出参数](https://cloud.tencent.com/document/product/1125/53273#3.-.E8.BE.93.E5.87.BA.E5.8F.82.E6.95.B0)",
|
5
5
|
"input": "CreateImageModerationAsyncTaskRequest",
|
6
6
|
"name": "图片异步检测",
|
7
7
|
"output": "CreateImageModerationAsyncTaskResponse",
|
@@ -1213,8 +1213,8 @@
|
|
1213
1213
|
},
|
1214
1214
|
{
|
1215
1215
|
"disabled": false,
|
1216
|
-
"document": "License
|
1217
|
-
"example": "
|
1216
|
+
"document": "License数,只支持50,500,1000,5000,10000,20000,50000",
|
1217
|
+
"example": "50",
|
1218
1218
|
"member": "int64",
|
1219
1219
|
"name": "DeductNum",
|
1220
1220
|
"required": true,
|
@@ -5842,6 +5842,24 @@
|
|
5842
5842
|
"name": "IsInternal",
|
5843
5843
|
"required": false,
|
5844
5844
|
"type": "bool"
|
5845
|
+
},
|
5846
|
+
{
|
5847
|
+
"disabled": false,
|
5848
|
+
"document": "设置URL的有效期, 最小值是1秒, 最大值是86400秒, 不设置的话, 默认是600秒",
|
5849
|
+
"example": "600",
|
5850
|
+
"member": "int64",
|
5851
|
+
"name": "Expires",
|
5852
|
+
"required": false,
|
5853
|
+
"type": "int"
|
5854
|
+
},
|
5855
|
+
{
|
5856
|
+
"disabled": false,
|
5857
|
+
"document": "下载的MP4文件是否支持G711音频编码. \n注意: 如果云端录像中的音频编码为AAC, 那么下载的MP4默认是支持AAC编码的\n如果云端录像中的音频编码为G711且 IsSupportG711设置为true时, 下载的MP4是支持G711音频编码\n如果云端录像中的音频编码为G711且 IsSupportG711设置为false时, 下载的MP4是不支持G711音频编码\n该参数只对FileType为mp4才有效, 不设置的话, 默认是false",
|
5858
|
+
"example": "false",
|
5859
|
+
"member": "bool",
|
5860
|
+
"name": "IsSupportG711",
|
5861
|
+
"required": false,
|
5862
|
+
"type": "bool"
|
5845
5863
|
}
|
5846
5864
|
],
|
5847
5865
|
"type": "object"
|
@@ -524,9 +524,9 @@
|
|
524
524
|
],
|
525
525
|
"DescribeVideoDownloadUrl": [
|
526
526
|
{
|
527
|
-
"document": "
|
528
|
-
"input": "POST / HTTP/1.1\nHost: iss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeVideoDownloadUrl\n<公共请求参数>\n\n{\n \"ChannelId\": \"4dfb778c-xxxxxx\",\n \"BeginTime\": \"1668996000\",\n \"EndTime\": \"1668996600\",\n \"FileType\": \"mp4\"\n}",
|
529
|
-
"output": "{\n \"Response\": {\n \"Data\": {\n \"Url\": \"https://userdomain/video.mp4?source=xxxxxx\",\n \"ActualBeginTime\": \"1668996000\",\n \"ActualEndTime\": \"1668996600\"\n },\n \"RequestId\": \"******************\"\n }\n}",
|
527
|
+
"document": "",
|
528
|
+
"input": "POST / HTTP/1.1\nHost: iss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeVideoDownloadUrl\n<公共请求参数>\n\n{\n \"ChannelId\": \"4dfb778c-xxxxxx\",\n \"BeginTime\": \"1668996000\",\n \"EndTime\": \"1668996600\",\n \"FileType\": \"mp4\",\n \"Expires\": 600,\n \"IsSupportG711\": true\n}",
|
529
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"Url\": \"https://userdomain/video.mp4?source=xxxxxx&expires=600&isSupportG711=1\",\n \"ActualBeginTime\": \"1668996000\",\n \"ActualEndTime\": \"1668996600\"\n },\n \"RequestId\": \"******************\"\n }\n}",
|
530
530
|
"title": "获取云录像下载URL"
|
531
531
|
},
|
532
532
|
{
|