tccli-intl-en 3.0.1282.1__py2.py3-none-any.whl → 3.1.33.1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tccli/__init__.py +1 -1
- tccli/argument.py +1 -1
- tccli/services/__init__.py +15 -0
- tccli/services/advisor/advisor_client.py +2 -2
- tccli/services/ai3d/__init__.py +4 -0
- tccli/services/ai3d/ai3d_client.py +266 -0
- tccli/services/ai3d/v20250513/api.json +264 -0
- tccli/services/ai3d/v20250513/examples.json +20 -0
- tccli/services/aiart/aiart_client.py +1 -1
- tccli/services/ams/ams_client.py +4 -4
- tccli/services/antiddos/antiddos_client.py +70 -70
- tccli/services/apigateway/apigateway_client.py +93 -93
- tccli/services/apm/apm_client.py +783 -55
- tccli/services/apm/v20210622/api.json +3936 -1145
- tccli/services/apm/v20210622/examples.json +133 -23
- tccli/services/asr/asr_client.py +2 -2
- tccli/services/autoscaling/autoscaling_client.py +58 -58
- tccli/services/autoscaling/v20180419/api.json +77 -27
- tccli/services/batch/batch_client.py +28 -28
- tccli/services/bi/bi_client.py +24 -24
- tccli/services/billing/billing_client.py +42 -42
- tccli/services/cam/cam_client.py +81 -81
- tccli/services/captcha/captcha_client.py +1 -1
- tccli/services/car/car_client.py +33 -33
- tccli/services/cbs/cbs_client.py +38 -38
- tccli/services/ccc/ccc_client.py +70 -70
- tccli/services/ccc/v20200210/api.json +71 -26
- tccli/services/cdb/cdb_client.py +1262 -422
- tccli/services/cdb/v20170320/api.json +2166 -335
- tccli/services/cdb/v20170320/examples.json +126 -6
- tccli/services/cdc/cdc_client.py +20 -20
- tccli/services/cdn/cdn_client.py +44 -44
- tccli/services/cdn/v20180606/api.json +22 -22
- tccli/services/cdn/v20180606/examples.json +1 -1
- tccli/services/cdwdoris/cdwdoris_client.py +77 -77
- tccli/services/cdwpg/cdwpg_client.py +24 -24
- tccli/services/cdz/cdz_client.py +1 -1
- tccli/services/cfg/cfg_client.py +16 -16
- tccli/services/cfs/cfs_client.py +39 -39
- tccli/services/cfw/cfw_client.py +66 -66
- tccli/services/chdfs/chdfs_client.py +29 -29
- tccli/services/ciam/ciam_client.py +16 -16
- tccli/services/ckafka/ckafka_client.py +468 -76
- tccli/services/ckafka/v20190819/api.json +1009 -246
- tccli/services/ckafka/v20190819/examples.json +73 -23
- tccli/services/clb/clb_client.py +720 -384
- tccli/services/clb/v20180317/api.json +2255 -1017
- tccli/services/clb/v20180317/examples.json +184 -124
- tccli/services/cloudaudit/cloudaudit_client.py +18 -18
- tccli/services/cls/cls_client.py +86 -86
- tccli/services/cmq/cmq_client.py +2 -2
- tccli/services/config/config_client.py +6 -6
- tccli/services/controlcenter/controlcenter_client.py +225 -1
- tccli/services/controlcenter/v20230110/api.json +528 -5
- tccli/services/controlcenter/v20230110/examples.json +32 -0
- tccli/services/csip/csip_client.py +34 -34
- tccli/services/ctsdb/ctsdb_client.py +2 -2
- tccli/services/cvm/cvm_client.py +84 -84
- tccli/services/cvm/v20170312/api.json +175 -116
- tccli/services/cvm/v20170312/examples.json +93 -93
- tccli/services/cwp/cwp_client.py +465 -465
- tccli/services/cynosdb/cynosdb_client.py +154 -154
- tccli/services/dataintegration/dataintegration_client.py +1 -1
- tccli/services/dayu/dayu_client.py +103 -103
- tccli/services/dbbrain/dbbrain_client.py +42 -42
- tccli/services/dc/dc_client.py +18 -18
- tccli/services/dcdb/dcdb_client.py +62 -62
- tccli/services/dlc/dlc_client.py +109 -109
- tccli/services/dms/dms_client.py +2 -2
- tccli/services/dnspod/dnspod_client.py +40 -40
- tccli/services/domain/domain_client.py +24 -24
- tccli/services/dts/dts_client.py +83 -83
- tccli/services/eb/eb_client.py +26 -26
- tccli/services/ecdn/ecdn_client.py +15 -15
- tccli/services/ecm/ecm_client.py +124 -124
- tccli/services/eiam/eiam_client.py +40 -40
- tccli/services/emr/emr_client.py +77 -77
- tccli/services/emr/v20190103/api.json +6 -6
- tccli/services/es/es_client.py +21 -21
- tccli/services/facefusion/facefusion_client.py +3 -3
- tccli/services/faceid/faceid_client.py +19 -19
- tccli/services/faceid/v20180301/api.json +124 -46
- tccli/services/gaap/gaap_client.py +88 -88
- tccli/services/gme/gme_client.py +10 -10
- tccli/services/gpm/gpm_client.py +18 -18
- tccli/services/gse/gse_client.py +22 -22
- tccli/services/gwlb/gwlb_client.py +18 -18
- tccli/services/hunyuan/__init__.py +4 -0
- tccli/services/hunyuan/hunyuan_client.py +546 -0
- tccli/services/hunyuan/v20230901/api.json +628 -0
- tccli/services/hunyuan/v20230901/examples.json +60 -0
- tccli/services/iai/iai_client.py +29 -29
- tccli/services/iap/iap_client.py +6 -6
- tccli/services/ims/ims_client.py +1 -1
- tccli/services/intlpartnersmgt/intlpartnersmgt_client.py +42 -42
- tccli/services/iotcloud/iotcloud_client.py +20 -20
- tccli/services/ip/ip_client.py +6 -6
- tccli/services/kms/kms_client.py +68 -68
- tccli/services/kms/v20190118/api.json +80 -3
- tccli/services/kms/v20190118/examples.json +3 -3
- tccli/services/lcic/lcic_client.py +53 -53
- tccli/services/lighthouse/lighthouse_client.py +434 -98
- tccli/services/lighthouse/v20200324/api.json +488 -0
- tccli/services/lighthouse/v20200324/examples.json +54 -0
- tccli/services/live/live_client.py +120 -120
- tccli/services/lke/lke_client.py +90 -90
- tccli/services/lkeap/lkeap_client.py +63 -7
- tccli/services/lkeap/v20240522/api.json +134 -0
- tccli/services/lkeap/v20240522/examples.json +21 -1
- tccli/services/mariadb/mariadb_client.py +50 -50
- tccli/services/mdc/mdc_client.py +18 -18
- tccli/services/mdl/mdl_client.py +225 -57
- tccli/services/mdl/v20200326/api.json +903 -59
- tccli/services/mdl/v20200326/examples.json +24 -0
- tccli/services/mdp/mdp_client.py +62 -62
- tccli/services/mdp/v20200527/api.json +191 -28
- tccli/services/message/message_client.py +1 -1
- tccli/services/mongodb/mongodb_client.py +1081 -129
- tccli/services/mongodb/v20190725/api.json +1798 -141
- tccli/services/mongodb/v20190725/examples.json +136 -0
- tccli/services/monitor/monitor_client.py +149 -149
- tccli/services/monitor/v20180724/api.json +8 -8
- tccli/services/mps/mps_client.py +1118 -278
- tccli/services/mps/v20190612/api.json +2117 -117
- tccli/services/mps/v20190612/examples.json +164 -62
- tccli/services/mqtt/__init__.py +4 -0
- tccli/services/mqtt/mqtt_client.py +1610 -0
- tccli/services/mqtt/v20240516/api.json +3057 -0
- tccli/services/mqtt/v20240516/examples.json +213 -0
- tccli/services/msp/msp_client.py +7 -7
- tccli/services/ocr/ocr_client.py +206 -38
- tccli/services/ocr/v20181119/api.json +726 -83
- tccli/services/ocr/v20181119/examples.json +36 -6
- tccli/services/omics/omics_client.py +20 -20
- tccli/services/organization/organization_client.py +116 -116
- tccli/services/postgres/postgres_client.py +91 -91
- tccli/services/privatedns/privatedns_client.py +31 -31
- tccli/services/pts/pts_client.py +48 -48
- tccli/services/quota/quota_client.py +5 -5
- tccli/services/rce/rce_client.py +1 -1
- tccli/services/redis/redis_client.py +109 -109
- tccli/services/redis/v20180412/api.json +12 -12
- tccli/services/region/region_client.py +3 -3
- tccli/services/rum/rum_client.py +60 -60
- tccli/services/scf/scf_client.py +42 -42
- tccli/services/ses/ses_client.py +29 -29
- tccli/services/smh/__init__.py +4 -0
- tccli/services/smh/smh_client.py +714 -0
- tccli/services/smh/v20210712/api.json +1287 -0
- tccli/services/smh/v20210712/examples.json +85 -0
- tccli/services/sms/sms_client.py +18 -18
- tccli/services/sqlserver/sqlserver_client.py +139 -139
- tccli/services/ssl/ssl_client.py +38 -38
- tccli/services/ssm/ssm_client.py +24 -24
- tccli/services/sts/sts_client.py +5 -5
- tccli/services/tag/tag_client.py +30 -30
- tccli/services/tat/tat_client.py +19 -19
- tccli/services/tbaas/tbaas_client.py +4 -4
- tccli/services/tcaplusdb/tcaplusdb_client.py +52 -52
- tccli/services/tchd/tchd_client.py +1 -1
- tccli/services/tcmpp/tcmpp_client.py +104 -104
- tccli/services/tcr/tcr_client.py +76 -76
- tccli/services/tcsas/tcsas_client.py +2340 -268
- tccli/services/tcsas/v20250106/api.json +8410 -3423
- tccli/services/tcsas/v20250106/examples.json +308 -12
- tccli/services/tcss/tcss_client.py +330 -330
- tccli/services/tdid/tdid_client.py +48 -48
- tccli/services/tdmq/tdmq_client.py +2500 -372
- tccli/services/tdmq/v20200217/api.json +11607 -3958
- tccli/services/tdmq/v20200217/examples.json +562 -264
- tccli/services/tem/tem_client.py +56 -56
- tccli/services/teo/teo_client.py +466 -298
- tccli/services/teo/v20220901/api.json +324 -16
- tccli/services/teo/v20220901/examples.json +64 -22
- tccli/services/tione/tione_client.py +1 -1
- tccli/services/tiw/tiw_client.py +51 -51
- tccli/services/tke/tke_client.py +306 -138
- tccli/services/tke/v20180525/api.json +227 -0
- tccli/services/tke/v20180525/examples.json +24 -0
- tccli/services/tms/tms_client.py +1 -1
- tccli/services/tmt/tmt_client.py +1 -1
- tccli/services/trabbit/trabbit_client.py +29 -29
- tccli/services/trocket/__init__.py +4 -0
- tccli/services/trocket/trocket_client.py +2450 -0
- tccli/services/trocket/v20230308/api.json +6062 -0
- tccli/services/trocket/v20230308/examples.json +339 -0
- tccli/services/trro/trro_client.py +19 -19
- tccli/services/trtc/trtc_client.py +51 -51
- tccli/services/trtc/v20190722/api.json +15 -15
- tccli/services/tts/tts_client.py +1 -1
- tccli/services/vclm/vclm_client.py +2 -2
- tccli/services/vm/vm_client.py +4 -4
- tccli/services/vod/v20180717/api.json +2929 -296
- tccli/services/vod/v20180717/examples.json +40 -6
- tccli/services/vod/vod_client.py +459 -179
- tccli/services/vpc/v20170312/api.json +99 -29
- tccli/services/vpc/v20170312/examples.json +21 -13
- tccli/services/vpc/vpc_client.py +357 -301
- tccli/services/waf/waf_client.py +107 -107
- tccli/services/wedata/wedata_client.py +310 -310
- tccli/services/yunjing/yunjing_client.py +71 -71
- {tccli_intl_en-3.0.1282.1.dist-info → tccli_intl_en-3.1.33.1.dist-info}/METADATA +2 -2
- {tccli_intl_en-3.0.1282.1.dist-info → tccli_intl_en-3.1.33.1.dist-info}/RECORD +207 -187
- {tccli_intl_en-3.0.1282.1.dist-info → tccli_intl_en-3.1.33.1.dist-info}/WHEEL +1 -1
- {tccli_intl_en-3.0.1282.1.dist-info → tccli_intl_en-3.1.33.1.dist-info}/LICENSE +0 -0
- {tccli_intl_en-3.0.1282.1.dist-info → tccli_intl_en-3.1.33.1.dist-info}/entry_points.txt +0 -0
- {tccli_intl_en-3.0.1282.1.dist-info → tccli_intl_en-3.1.33.1.dist-info}/top_level.txt +0 -0
|
@@ -42,7 +42,7 @@ def doCreateReconstructDocumentFlow(args, parsed_globals):
|
|
|
42
42
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
43
43
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
44
44
|
)
|
|
45
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
45
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
46
46
|
if g_param[OptionsDefine.Language]:
|
|
47
47
|
profile.language = g_param[OptionsDefine.Language]
|
|
48
48
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -97,7 +97,7 @@ def doGetSplitDocumentResult(args, parsed_globals):
|
|
|
97
97
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
98
98
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
99
99
|
)
|
|
100
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
100
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
101
101
|
if g_param[OptionsDefine.Language]:
|
|
102
102
|
profile.language = g_param[OptionsDefine.Language]
|
|
103
103
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -152,7 +152,7 @@ def doCreateSplitDocumentFlow(args, parsed_globals):
|
|
|
152
152
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
153
153
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
154
154
|
)
|
|
155
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
155
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
156
156
|
if g_param[OptionsDefine.Language]:
|
|
157
157
|
profile.language = g_param[OptionsDefine.Language]
|
|
158
158
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -207,7 +207,7 @@ def doReconstructDocumentSSE(args, parsed_globals):
|
|
|
207
207
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
208
208
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
209
209
|
)
|
|
210
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
210
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
211
211
|
if g_param[OptionsDefine.Language]:
|
|
212
212
|
profile.language = g_param[OptionsDefine.Language]
|
|
213
213
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -262,7 +262,7 @@ def doRunRerank(args, parsed_globals):
|
|
|
262
262
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
263
263
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
264
264
|
)
|
|
265
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
265
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
266
266
|
if g_param[OptionsDefine.Language]:
|
|
267
267
|
profile.language = g_param[OptionsDefine.Language]
|
|
268
268
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -317,7 +317,7 @@ def doGetReconstructDocumentResult(args, parsed_globals):
|
|
|
317
317
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
318
318
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
319
319
|
)
|
|
320
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
320
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
321
321
|
if g_param[OptionsDefine.Language]:
|
|
322
322
|
profile.language = g_param[OptionsDefine.Language]
|
|
323
323
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -372,7 +372,7 @@ def doQueryRewrite(args, parsed_globals):
|
|
|
372
372
|
endpoint=g_param[OptionsDefine.Endpoint],
|
|
373
373
|
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
374
374
|
)
|
|
375
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="
|
|
375
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
376
376
|
if g_param[OptionsDefine.Language]:
|
|
377
377
|
profile.language = g_param[OptionsDefine.Language]
|
|
378
378
|
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
@@ -402,6 +402,61 @@ def doQueryRewrite(args, parsed_globals):
|
|
|
402
402
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
403
403
|
|
|
404
404
|
|
|
405
|
+
def doGetEmbedding(args, parsed_globals):
|
|
406
|
+
g_param = parse_global_arg(parsed_globals)
|
|
407
|
+
|
|
408
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
409
|
+
cred = credential.CVMRoleCredential()
|
|
410
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
411
|
+
cred = credential.STSAssumeRoleCredential(
|
|
412
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
413
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
414
|
+
)
|
|
415
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
|
|
416
|
+
and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
|
|
417
|
+
and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
|
|
418
|
+
and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
|
419
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
420
|
+
else:
|
|
421
|
+
cred = credential.Credential(
|
|
422
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
423
|
+
)
|
|
424
|
+
http_profile = HttpProfile(
|
|
425
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
426
|
+
reqMethod="POST",
|
|
427
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
428
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
429
|
+
)
|
|
430
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
|
|
431
|
+
if g_param[OptionsDefine.Language]:
|
|
432
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
433
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
434
|
+
client = mod.LkeapClient(cred, g_param[OptionsDefine.Region], profile)
|
|
435
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
436
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
437
|
+
model = models.GetEmbeddingRequest()
|
|
438
|
+
model.from_json_string(json.dumps(args))
|
|
439
|
+
start_time = time.time()
|
|
440
|
+
while True:
|
|
441
|
+
rsp = client.GetEmbedding(model)
|
|
442
|
+
result = rsp.to_json_string()
|
|
443
|
+
try:
|
|
444
|
+
json_obj = json.loads(result)
|
|
445
|
+
except TypeError as e:
|
|
446
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
447
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
448
|
+
break
|
|
449
|
+
cur_time = time.time()
|
|
450
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
451
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
452
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
453
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
454
|
+
else:
|
|
455
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
456
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
457
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
458
|
+
|
|
459
|
+
|
|
405
460
|
CLIENT_MAP = {
|
|
406
461
|
"v20240522": lkeap_client_v20240522,
|
|
407
462
|
|
|
@@ -420,6 +475,7 @@ ACTION_MAP = {
|
|
|
420
475
|
"RunRerank": doRunRerank,
|
|
421
476
|
"GetReconstructDocumentResult": doGetReconstructDocumentResult,
|
|
422
477
|
"QueryRewrite": doQueryRewrite,
|
|
478
|
+
"GetEmbedding": doGetEmbedding,
|
|
423
479
|
|
|
424
480
|
}
|
|
425
481
|
|
|
@@ -14,6 +14,13 @@
|
|
|
14
14
|
"output": "CreateSplitDocumentFlowResponse",
|
|
15
15
|
"status": "online"
|
|
16
16
|
},
|
|
17
|
+
"GetEmbedding": {
|
|
18
|
+
"document": "This API is used to call the text representation model to convert text into a vector represented by numbers, which can be used in scenarios such as text retrieval, information recommendation, and knowledge mining. There is a single-account call limit control for this API. If you need to increase the concurrency limit, please contact us (https://cloud.tencent.com/act/event/Online_service).",
|
|
19
|
+
"input": "GetEmbeddingRequest",
|
|
20
|
+
"name": "Retrieve feature vector",
|
|
21
|
+
"output": "GetEmbeddingResponse",
|
|
22
|
+
"status": "online"
|
|
23
|
+
},
|
|
17
24
|
"GetReconstructDocumentResult": {
|
|
18
25
|
"document": "This is an asynchronous API for querying results, which is used to obtain the result of document parsing.",
|
|
19
26
|
"input": "GetReconstructDocumentResultRequest",
|
|
@@ -331,6 +338,97 @@
|
|
|
331
338
|
],
|
|
332
339
|
"usage": "out"
|
|
333
340
|
},
|
|
341
|
+
"EmbeddingObject": {
|
|
342
|
+
"document": "Vector.",
|
|
343
|
+
"members": [
|
|
344
|
+
{
|
|
345
|
+
"disabled": false,
|
|
346
|
+
"document": "Vector.",
|
|
347
|
+
"example": "无",
|
|
348
|
+
"member": "float",
|
|
349
|
+
"name": "Embedding",
|
|
350
|
+
"output_required": false,
|
|
351
|
+
"required": false,
|
|
352
|
+
"type": "list",
|
|
353
|
+
"value_allowed_null": false
|
|
354
|
+
}
|
|
355
|
+
],
|
|
356
|
+
"usage": "both"
|
|
357
|
+
},
|
|
358
|
+
"GetEmbeddingRequest": {
|
|
359
|
+
"document": "GetEmbedding request structure.",
|
|
360
|
+
"members": [
|
|
361
|
+
{
|
|
362
|
+
"disabled": false,
|
|
363
|
+
"document": "Select the model for generating vectors\nNote: Optional [adp-text-embedding-0.5b]\n\n",
|
|
364
|
+
"example": "lke-text-embedding-v1",
|
|
365
|
+
"member": "string",
|
|
366
|
+
"name": "Model",
|
|
367
|
+
"required": true,
|
|
368
|
+
"type": "string"
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"disabled": false,
|
|
372
|
+
"document": "Text that requires embedding. The maximum length of a single text is 500 characters. The maximum total number of entries is 7.",
|
|
373
|
+
"example": "[\"hello\", \"world\"]",
|
|
374
|
+
"member": "string",
|
|
375
|
+
"name": "Inputs",
|
|
376
|
+
"required": true,
|
|
377
|
+
"type": "list"
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"disabled": false,
|
|
381
|
+
"document": "The type of text vectorization. To achieve better retrieval performance, it is recommended to distinguish between query text and document text types. For symmetric tasks such as clustering and classification, there is no need for special specification simply use the system default value \"document\".",
|
|
382
|
+
"example": "document",
|
|
383
|
+
"member": "string",
|
|
384
|
+
"name": "TextType",
|
|
385
|
+
"required": false,
|
|
386
|
+
"type": "string"
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"disabled": false,
|
|
390
|
+
"document": "This field is not currently supported.",
|
|
391
|
+
"example": "问题:",
|
|
392
|
+
"member": "string",
|
|
393
|
+
"name": "Instruction",
|
|
394
|
+
"required": false,
|
|
395
|
+
"type": "string"
|
|
396
|
+
}
|
|
397
|
+
],
|
|
398
|
+
"type": "object"
|
|
399
|
+
},
|
|
400
|
+
"GetEmbeddingResponse": {
|
|
401
|
+
"document": "GetEmbedding response structure.",
|
|
402
|
+
"members": [
|
|
403
|
+
{
|
|
404
|
+
"disabled": false,
|
|
405
|
+
"document": "Feature.",
|
|
406
|
+
"example": "无",
|
|
407
|
+
"member": "EmbeddingObject",
|
|
408
|
+
"name": "Data",
|
|
409
|
+
"output_required": true,
|
|
410
|
+
"type": "list",
|
|
411
|
+
"value_allowed_null": false
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"disabled": false,
|
|
415
|
+
"document": "Consumption. Returns TotalToken.",
|
|
416
|
+
"example": "无",
|
|
417
|
+
"member": "Usage",
|
|
418
|
+
"name": "Usage",
|
|
419
|
+
"output_required": false,
|
|
420
|
+
"type": "object",
|
|
421
|
+
"value_allowed_null": false
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"document": "The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.",
|
|
425
|
+
"member": "string",
|
|
426
|
+
"name": "RequestId",
|
|
427
|
+
"type": "string"
|
|
428
|
+
}
|
|
429
|
+
],
|
|
430
|
+
"type": "object"
|
|
431
|
+
},
|
|
334
432
|
"GetReconstructDocumentResultRequest": {
|
|
335
433
|
"document": "GetReconstructDocumentResult request structure.",
|
|
336
434
|
"members": [
|
|
@@ -611,6 +709,24 @@
|
|
|
611
709
|
"ReconstructDocumentSSERequest": {
|
|
612
710
|
"document": "ReconstructDocumentSSE request structure.",
|
|
613
711
|
"members": [
|
|
712
|
+
{
|
|
713
|
+
"disabled": false,
|
|
714
|
+
"document": "File type.\n**Supported file types**: PDF, DOC, DOCX, PPT, PPTX, MD, TXT, XLS, XLSX, CSV, PNG, JPG, JPEG, BMP, GIF, WEBP, HEIC, EPS, ICNS, IM, PCX, PPM, TIFF, XBM, HEIF, JP2.\n**Supported file sizes**: \n- Max 100 MB for PDF, DOC, DOCX, PPT, and PPTX .\n- Max 10 MB for MD, TXT, XLS, XLSX, and CSV.\n- Max20 MB for others.",
|
|
715
|
+
"example": "PDF",
|
|
716
|
+
"member": "string",
|
|
717
|
+
"name": "FileType",
|
|
718
|
+
"required": true,
|
|
719
|
+
"type": "string"
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
"disabled": false,
|
|
723
|
+
"document": "File URL. It is recommended to store the file in Tencent Cloud as the URL where the file is stored in Tencent Cloud can ensure higher download speed and stability. External URL may affect the speed and stability. Refer to: [Tencent Cloud COS Documentation](https://www.tencentcloud.com/document/product/436/7749)",
|
|
724
|
+
"example": "url",
|
|
725
|
+
"member": "string",
|
|
726
|
+
"name": "FileUrl",
|
|
727
|
+
"required": false,
|
|
728
|
+
"type": "string"
|
|
729
|
+
},
|
|
614
730
|
{
|
|
615
731
|
"disabled": false,
|
|
616
732
|
"document": "The base64 value of the file. File size limit: the downloaded file shall not exceed 8MB after base64 encoding. File download time does not exceed 3 seconds. Supported image pixels: the length of a single side is between 20-10000px. Either FileUrl or FileBase64 of the file must be provided. If both are provided, only the FileUrl is used.",
|
|
@@ -620,6 +736,24 @@
|
|
|
620
736
|
"required": false,
|
|
621
737
|
"type": "string"
|
|
622
738
|
},
|
|
739
|
+
{
|
|
740
|
+
"disabled": false,
|
|
741
|
+
"document": "The starting page number of the file. When type of the uploaded file is pdf, doc, docx, ppt, or pptx, it specifies the starting page number for recognition, including the current value.",
|
|
742
|
+
"example": "1",
|
|
743
|
+
"member": "int64",
|
|
744
|
+
"name": "FileStartPageNumber",
|
|
745
|
+
"required": false,
|
|
746
|
+
"type": "int"
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
"disabled": false,
|
|
750
|
+
"document": "The end page number of the file. When type of the uploaded file is pdf, doc, docx, ppt, or pptx, it specifies the end page number for recognition, including the current value.",
|
|
751
|
+
"example": "100",
|
|
752
|
+
"member": "int64",
|
|
753
|
+
"name": "FileEndPageNumber",
|
|
754
|
+
"required": false,
|
|
755
|
+
"type": "int"
|
|
756
|
+
},
|
|
623
757
|
{
|
|
624
758
|
"disabled": false,
|
|
625
759
|
"document": "Document parsing configuration information.\t",
|
|
@@ -16,6 +16,26 @@
|
|
|
16
16
|
"title": "PDF Splitting Task Creation"
|
|
17
17
|
}
|
|
18
18
|
],
|
|
19
|
+
"GetEmbedding": [
|
|
20
|
+
{
|
|
21
|
+
"document": "",
|
|
22
|
+
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetEmbedding\n<Common request parameters>\n\n{\n \"Model\": \"adp-text-embedding-0.5b\",\n \"Inputs\": [\n \"Hello.\"\n ]\n}",
|
|
23
|
+
"output": "{\n \"Response\": {\n \"Data\": [\n {\n \"Embedding\": [\n 0\n ]\n }\n ],\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\",\n \"Usage\": {\n \"TotalTokens\": 3\n }\n }\n}",
|
|
24
|
+
"title": "Obtain The Embeddings"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"document": "",
|
|
28
|
+
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetEmbedding\n<Common request parameters>\n\n{\n \"Model\": \"adp-text-embedding-0.5b\",\n \"Inputs\": [\n \"Hello\",\n \"Word\"\n ]\n}",
|
|
29
|
+
"output": "{\n \"Response\": {\n \"Data\": [\n {\n \"Embedding\": [\n 0\n ]\n },\n {\n \"Embedding\": [\n 0\n ]\n }\n ],\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\",\n \"Usage\": {\n \"TotalTokens\": 3\n }\n }\n}",
|
|
30
|
+
"title": "Obtain The Embeddings1"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"document": "",
|
|
34
|
+
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetEmbedding\n<Common request parameters>\n\n{\n \"Model\": \"adp-text-embedding-0.5b\",\n \"Inputs\": [\n \"Hello\",\n \"Word\"\n ]\n}",
|
|
35
|
+
"output": "{\n \"Response\": {\n \"Data\": [\n {\n \"Embedding\": [\n 0\n ]\n },\n {\n \"Embedding\": [\n 0\n ]\n }\n ],\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\",\n \"Usage\": {\n \"TotalTokens\": 3\n }\n }\n}",
|
|
36
|
+
"title": "Obtain The Embeddings2"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
19
39
|
"GetReconstructDocumentResult": [
|
|
20
40
|
{
|
|
21
41
|
"document": "",
|
|
@@ -69,4 +89,4 @@
|
|
|
69
89
|
}
|
|
70
90
|
]
|
|
71
91
|
}
|
|
72
|
-
}
|
|
92
|
+
}
|