tccli 3.0.1336.1__py2.py3-none-any.whl → 3.0.1338.1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tccli/__init__.py +1 -1
- tccli/services/antiddos/v20200309/api.json +2 -2
- tccli/services/asr/v20190614/api.json +1 -1
- tccli/services/captcha/v20190722/api.json +10 -0
- tccli/services/cdb/v20170320/api.json +1 -1
- tccli/services/cdwdoris/v20211228/api.json +4 -4
- tccli/services/cfs/v20190719/api.json +6 -3
- tccli/services/cfw/v20190904/api.json +9 -0
- tccli/services/cls/v20201016/api.json +1 -1
- tccli/services/cme/v20191029/api.json +1 -1
- tccli/services/csip/v20221121/api.json +10 -0
- tccli/services/es/v20250101/api.json +71 -0
- tccli/services/ess/ess_client.py +106 -0
- tccli/services/ess/v20201111/api.json +179 -1
- tccli/services/ess/v20201111/examples.json +16 -0
- tccli/services/essbasic/essbasic_client.py +114 -8
- tccli/services/essbasic/v20210526/api.json +163 -3
- tccli/services/essbasic/v20210526/examples.json +16 -0
- tccli/services/gs/v20191118/api.json +11 -1
- tccli/services/gs/v20191118/examples.json +1 -1
- tccli/services/hunyuan/v20230901/api.json +3 -3
- tccli/services/lighthouse/lighthouse_client.py +53 -0
- tccli/services/lighthouse/v20200324/api.json +43 -0
- tccli/services/lighthouse/v20200324/examples.json +8 -0
- tccli/services/live/live_client.py +285 -20
- tccli/services/live/v20180801/api.json +549 -0
- tccli/services/live/v20180801/examples.json +40 -0
- tccli/services/lke/lke_client.py +110 -4
- tccli/services/lke/v20231130/api.json +141 -0
- tccli/services/lke/v20231130/examples.json +16 -0
- tccli/services/lkeap/v20240522/api.json +3 -3
- tccli/services/mps/v20190612/api.json +117 -1
- tccli/services/ocr/v20181119/examples.json +1 -1
- tccli/services/tdmq/v20200217/api.json +165 -25
- tccli/services/tdmq/v20200217/examples.json +1 -1
- tccli/services/teo/v20220901/api.json +1 -1
- tccli/services/tiia/tiia_client.py +73 -126
- tccli/services/tiia/v20190529/api.json +0 -112
- tccli/services/tiia/v20190529/examples.json +0 -14
- tccli/services/tione/tione_client.py +216 -4
- tccli/services/tione/v20211111/api.json +190 -0
- tccli/services/tione/v20211111/examples.json +32 -0
- tccli/services/trocket/trocket_client.py +161 -55
- tccli/services/trocket/v20230308/api.json +307 -1
- tccli/services/trocket/v20230308/examples.json +16 -0
- tccli/services/trtc/v20190722/api.json +2 -2
- tccli/services/tsf/v20180326/api.json +2 -2
- tccli/services/tsf/v20180326/examples.json +2 -2
- {tccli-3.0.1336.1.dist-info → tccli-3.0.1338.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1336.1.dist-info → tccli-3.0.1338.1.dist-info}/RECORD +53 -53
- {tccli-3.0.1336.1.dist-info → tccli-3.0.1338.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1336.1.dist-info → tccli-3.0.1338.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1336.1.dist-info → tccli-3.0.1338.1.dist-info}/license_files/LICENSE +0 -0
tccli/services/lke/lke_client.py
CHANGED
@@ -3917,6 +3917,58 @@ def doIgnoreUnsatisfiedReply(args, parsed_globals):
|
|
3917
3917
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3918
3918
|
|
3919
3919
|
|
3920
|
+
def doUpdateVar(args, parsed_globals):
|
3921
|
+
g_param = parse_global_arg(parsed_globals)
|
3922
|
+
|
3923
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3924
|
+
cred = credential.CVMRoleCredential()
|
3925
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3926
|
+
cred = credential.STSAssumeRoleCredential(
|
3927
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3928
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3929
|
+
)
|
3930
|
+
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):
|
3931
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3932
|
+
else:
|
3933
|
+
cred = credential.Credential(
|
3934
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3935
|
+
)
|
3936
|
+
http_profile = HttpProfile(
|
3937
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3938
|
+
reqMethod="POST",
|
3939
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3940
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3941
|
+
)
|
3942
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3943
|
+
if g_param[OptionsDefine.Language]:
|
3944
|
+
profile.language = g_param[OptionsDefine.Language]
|
3945
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3946
|
+
client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
|
3947
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3948
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3949
|
+
model = models.UpdateVarRequest()
|
3950
|
+
model.from_json_string(json.dumps(args))
|
3951
|
+
start_time = time.time()
|
3952
|
+
while True:
|
3953
|
+
rsp = client.UpdateVar(model)
|
3954
|
+
result = rsp.to_json_string()
|
3955
|
+
try:
|
3956
|
+
json_obj = json.loads(result)
|
3957
|
+
except TypeError as e:
|
3958
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3959
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3960
|
+
break
|
3961
|
+
cur_time = time.time()
|
3962
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3963
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3964
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3965
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3966
|
+
else:
|
3967
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3968
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3969
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3970
|
+
|
3971
|
+
|
3920
3972
|
def doReferShareKnowledge(args, parsed_globals):
|
3921
3973
|
g_param = parse_global_arg(parsed_globals)
|
3922
3974
|
|
@@ -4541,7 +4593,7 @@ def doQueryRewrite(args, parsed_globals):
|
|
4541
4593
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4542
4594
|
|
4543
4595
|
|
4544
|
-
def
|
4596
|
+
def doDeleteVar(args, parsed_globals):
|
4545
4597
|
g_param = parse_global_arg(parsed_globals)
|
4546
4598
|
|
4547
4599
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4570,11 +4622,11 @@ def doRetryDocAudit(args, parsed_globals):
|
|
4570
4622
|
client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
|
4571
4623
|
client._sdkVersion += ("_CLI_" + __version__)
|
4572
4624
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4573
|
-
model = models.
|
4625
|
+
model = models.DeleteVarRequest()
|
4574
4626
|
model.from_json_string(json.dumps(args))
|
4575
4627
|
start_time = time.time()
|
4576
4628
|
while True:
|
4577
|
-
rsp = client.
|
4629
|
+
rsp = client.DeleteVar(model)
|
4578
4630
|
result = rsp.to_json_string()
|
4579
4631
|
try:
|
4580
4632
|
json_obj = json.loads(result)
|
@@ -4905,6 +4957,58 @@ def doDescribeWorkflowRun(args, parsed_globals):
|
|
4905
4957
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4906
4958
|
|
4907
4959
|
|
4960
|
+
def doRetryDocAudit(args, parsed_globals):
|
4961
|
+
g_param = parse_global_arg(parsed_globals)
|
4962
|
+
|
4963
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4964
|
+
cred = credential.CVMRoleCredential()
|
4965
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4966
|
+
cred = credential.STSAssumeRoleCredential(
|
4967
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4968
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4969
|
+
)
|
4970
|
+
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):
|
4971
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4972
|
+
else:
|
4973
|
+
cred = credential.Credential(
|
4974
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4975
|
+
)
|
4976
|
+
http_profile = HttpProfile(
|
4977
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4978
|
+
reqMethod="POST",
|
4979
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4980
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4981
|
+
)
|
4982
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4983
|
+
if g_param[OptionsDefine.Language]:
|
4984
|
+
profile.language = g_param[OptionsDefine.Language]
|
4985
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4986
|
+
client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
|
4987
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4988
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4989
|
+
model = models.RetryDocAuditRequest()
|
4990
|
+
model.from_json_string(json.dumps(args))
|
4991
|
+
start_time = time.time()
|
4992
|
+
while True:
|
4993
|
+
rsp = client.RetryDocAudit(model)
|
4994
|
+
result = rsp.to_json_string()
|
4995
|
+
try:
|
4996
|
+
json_obj = json.loads(result)
|
4997
|
+
except TypeError as e:
|
4998
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4999
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
5000
|
+
break
|
5001
|
+
cur_time = time.time()
|
5002
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
5003
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
5004
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
5005
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
5006
|
+
else:
|
5007
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
5008
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
5009
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5010
|
+
|
5011
|
+
|
4908
5012
|
def doListReleaseDocPreview(args, parsed_globals):
|
4909
5013
|
g_param = parse_global_arg(parsed_globals)
|
4910
5014
|
|
@@ -5771,6 +5875,7 @@ ACTION_MAP = {
|
|
5771
5875
|
"CreateCorp": doCreateCorp,
|
5772
5876
|
"IsTransferIntent": doIsTransferIntent,
|
5773
5877
|
"IgnoreUnsatisfiedReply": doIgnoreUnsatisfiedReply,
|
5878
|
+
"UpdateVar": doUpdateVar,
|
5774
5879
|
"ReferShareKnowledge": doReferShareKnowledge,
|
5775
5880
|
"ListRelease": doListRelease,
|
5776
5881
|
"ListModel": doListModel,
|
@@ -5783,13 +5888,14 @@ ACTION_MAP = {
|
|
5783
5888
|
"CreateRejectedQuestion": doCreateRejectedQuestion,
|
5784
5889
|
"DeleteRejectedQuestion": doDeleteRejectedQuestion,
|
5785
5890
|
"QueryRewrite": doQueryRewrite,
|
5786
|
-
"
|
5891
|
+
"DeleteVar": doDeleteVar,
|
5787
5892
|
"ModifyApp": doModifyApp,
|
5788
5893
|
"GetEmbedding": doGetEmbedding,
|
5789
5894
|
"GetAppSecret": doGetAppSecret,
|
5790
5895
|
"ModifyAttributeLabel": doModifyAttributeLabel,
|
5791
5896
|
"GetAnswerTypeDataCount": doGetAnswerTypeDataCount,
|
5792
5897
|
"DescribeWorkflowRun": doDescribeWorkflowRun,
|
5898
|
+
"RetryDocAudit": doRetryDocAudit,
|
5793
5899
|
"ListReleaseDocPreview": doListReleaseDocPreview,
|
5794
5900
|
"DescribeRelease": doDescribeRelease,
|
5795
5901
|
"ModifyRejectedQuestion": doModifyRejectedQuestion,
|
@@ -154,6 +154,13 @@
|
|
154
154
|
"output": "DeleteSharedKnowledgeResponse",
|
155
155
|
"status": "online"
|
156
156
|
},
|
157
|
+
"DeleteVar": {
|
158
|
+
"document": "删除变量",
|
159
|
+
"input": "DeleteVarRequest",
|
160
|
+
"name": "删除变量",
|
161
|
+
"output": "DeleteVarResponse",
|
162
|
+
"status": "online"
|
163
|
+
},
|
157
164
|
"DescribeApp": {
|
158
165
|
"document": "获取企业下应用详情",
|
159
166
|
"input": "DescribeAppRequest",
|
@@ -749,6 +756,13 @@
|
|
749
756
|
"output": "UpdateSharedKnowledgeResponse",
|
750
757
|
"status": "online"
|
751
758
|
},
|
759
|
+
"UpdateVar": {
|
760
|
+
"document": "更新变量",
|
761
|
+
"input": "UpdateVarRequest",
|
762
|
+
"name": "修改变量",
|
763
|
+
"output": "UpdateVarResponse",
|
764
|
+
"status": "online"
|
765
|
+
},
|
752
766
|
"UploadAttributeLabel": {
|
753
767
|
"document": "上传导入属性标签",
|
754
768
|
"input": "UploadAttributeLabelRequest",
|
@@ -3878,6 +3892,42 @@
|
|
3878
3892
|
],
|
3879
3893
|
"type": "object"
|
3880
3894
|
},
|
3895
|
+
"DeleteVarRequest": {
|
3896
|
+
"document": "DeleteVar请求参数结构体",
|
3897
|
+
"members": [
|
3898
|
+
{
|
3899
|
+
"disabled": false,
|
3900
|
+
"document": "应用ID",
|
3901
|
+
"example": "1793260396881641472",
|
3902
|
+
"member": "string",
|
3903
|
+
"name": "AppBizId",
|
3904
|
+
"required": true,
|
3905
|
+
"type": "string"
|
3906
|
+
},
|
3907
|
+
{
|
3908
|
+
"disabled": false,
|
3909
|
+
"document": "变量ID",
|
3910
|
+
"example": "b7f9ef77-caa1-49c5-a693-075a2ba3eeb4",
|
3911
|
+
"member": "string",
|
3912
|
+
"name": "VarId",
|
3913
|
+
"required": true,
|
3914
|
+
"type": "string"
|
3915
|
+
}
|
3916
|
+
],
|
3917
|
+
"type": "object"
|
3918
|
+
},
|
3919
|
+
"DeleteVarResponse": {
|
3920
|
+
"document": "DeleteVar返回参数结构体",
|
3921
|
+
"members": [
|
3922
|
+
{
|
3923
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
3924
|
+
"member": "string",
|
3925
|
+
"name": "RequestId",
|
3926
|
+
"type": "string"
|
3927
|
+
}
|
3928
|
+
],
|
3929
|
+
"type": "object"
|
3930
|
+
},
|
3881
3931
|
"DescribeAppRequest": {
|
3882
3932
|
"document": "DescribeApp请求参数结构体",
|
3883
3933
|
"members": [
|
@@ -16598,6 +16648,97 @@
|
|
16598
16648
|
],
|
16599
16649
|
"type": "object"
|
16600
16650
|
},
|
16651
|
+
"UpdateVarRequest": {
|
16652
|
+
"document": "UpdateVar请求参数结构体",
|
16653
|
+
"members": [
|
16654
|
+
{
|
16655
|
+
"disabled": false,
|
16656
|
+
"document": "应用ID",
|
16657
|
+
"example": "1744553986638073856",
|
16658
|
+
"member": "string",
|
16659
|
+
"name": "AppBizId",
|
16660
|
+
"required": true,
|
16661
|
+
"type": "string"
|
16662
|
+
},
|
16663
|
+
{
|
16664
|
+
"disabled": false,
|
16665
|
+
"document": "变量ID",
|
16666
|
+
"example": "69e825bb-7c4d-4305-8a87-79dd896527aa",
|
16667
|
+
"member": "string",
|
16668
|
+
"name": "VarId",
|
16669
|
+
"required": true,
|
16670
|
+
"type": "string"
|
16671
|
+
},
|
16672
|
+
{
|
16673
|
+
"disabled": false,
|
16674
|
+
"document": "变量名称,最大支持50个字符",
|
16675
|
+
"example": "UserID",
|
16676
|
+
"member": "string",
|
16677
|
+
"name": "VarName",
|
16678
|
+
"required": true,
|
16679
|
+
"type": "string"
|
16680
|
+
},
|
16681
|
+
{
|
16682
|
+
"disabled": false,
|
16683
|
+
"document": "参数描述",
|
16684
|
+
"example": "用户ID",
|
16685
|
+
"member": "string",
|
16686
|
+
"name": "VarDesc",
|
16687
|
+
"required": false,
|
16688
|
+
"type": "string"
|
16689
|
+
},
|
16690
|
+
{
|
16691
|
+
"disabled": false,
|
16692
|
+
"document": "参数类型",
|
16693
|
+
"example": "STRING",
|
16694
|
+
"member": "string",
|
16695
|
+
"name": "VarType",
|
16696
|
+
"required": false,
|
16697
|
+
"type": "string"
|
16698
|
+
},
|
16699
|
+
{
|
16700
|
+
"disabled": false,
|
16701
|
+
"document": "自定义变量默认值",
|
16702
|
+
"example": "125566126721",
|
16703
|
+
"member": "string",
|
16704
|
+
"name": "VarDefaultValue",
|
16705
|
+
"required": false,
|
16706
|
+
"type": "string"
|
16707
|
+
},
|
16708
|
+
{
|
16709
|
+
"disabled": false,
|
16710
|
+
"document": "自定义变量文件默认名称",
|
16711
|
+
"example": "无",
|
16712
|
+
"member": "string",
|
16713
|
+
"name": "VarDefaultFileName",
|
16714
|
+
"required": false,
|
16715
|
+
"type": "string"
|
16716
|
+
}
|
16717
|
+
],
|
16718
|
+
"type": "object"
|
16719
|
+
},
|
16720
|
+
"UpdateVarResponse": {
|
16721
|
+
"document": "UpdateVar返回参数结构体",
|
16722
|
+
"members": [
|
16723
|
+
{
|
16724
|
+
"disabled": false,
|
16725
|
+
"document": "变量ID",
|
16726
|
+
"example": "69e825bb-7c4d-4305-8a87-79dd896527aa",
|
16727
|
+
"member": "string",
|
16728
|
+
"name": "VarId",
|
16729
|
+
"output_required": false,
|
16730
|
+
"type": "string",
|
16731
|
+
"value_allowed_null": false
|
16732
|
+
},
|
16733
|
+
{
|
16734
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
16735
|
+
"member": "string",
|
16736
|
+
"name": "RequestId",
|
16737
|
+
"type": "string"
|
16738
|
+
}
|
16739
|
+
],
|
16740
|
+
"type": "object"
|
16741
|
+
},
|
16601
16742
|
"UploadAttributeLabelRequest": {
|
16602
16743
|
"document": "UploadAttributeLabel请求参数结构体",
|
16603
16744
|
"members": [
|
@@ -176,6 +176,14 @@
|
|
176
176
|
"title": "删除共享知识库"
|
177
177
|
}
|
178
178
|
],
|
179
|
+
"DeleteVar": [
|
180
|
+
{
|
181
|
+
"document": "删除变量",
|
182
|
+
"input": "POST / HTTP/1.1\nHost: lke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteVar\n<公共请求参数>\n\n{\n \"AppBizId\": \"1793260396881641472\",\n \"VarId\": \"b7f9ef77-caa1-49c5-a693-075a2ba3eeb4\"\n}",
|
183
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"0b62f07f-689d-4641-9245-f680d4c6c16a\"\n }\n}",
|
184
|
+
"title": "删除变量"
|
185
|
+
}
|
186
|
+
],
|
179
187
|
"DescribeApp": [
|
180
188
|
{
|
181
189
|
"document": "获取企业下应用详情",
|
@@ -868,6 +876,14 @@
|
|
868
876
|
"title": "更新共享知识库"
|
869
877
|
}
|
870
878
|
],
|
879
|
+
"UpdateVar": [
|
880
|
+
{
|
881
|
+
"document": "更新变量",
|
882
|
+
"input": "POST / HTTP/1.1\nHost: lke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateVar\n<公共请求参数>\n\n{\n \"AppBizId\": \"1793260396881641472\",\n \"VarId\": \"55127e9e-6e9e-4c11-bcf8-b524959cd841\",\n \"VarName\": \"TimeIDUpdate\",\n \"VarDesc\": \"这个参数要来传时间\",\n \"VarType\": \"STRING\",\n \"VarDefaultValue\": \"2025-05-14\",\n \"VarDefaultFileName\": \"\"\n}",
|
883
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"94a2fb36-98dc-47d2-b39b-904d244ad888\",\n \"VarId\": \"55127e9e-6e9e-4c11-bcf8-b524959cd841\"\n }\n}",
|
884
|
+
"title": "更新变量"
|
885
|
+
}
|
886
|
+
],
|
871
887
|
"UploadAttributeLabel": [
|
872
888
|
{
|
873
889
|
"document": "上传导入知识标签",
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
3
|
"ChatCompletions": {
|
4
|
-
"document": "### 接口功能\n\n调用接口,发起一次对话请求。默认该接口下的单账号QPM上限为15000 ,TPM上限为1200000\n如需使用OpenAI兼容接口, 请参考文档:[Deepseek OpenAI对话接口](https://cloud.tencent.com/document/product/1772/115969)\n\n#### 在线体验\n如您希望在网页内直接体验 DeepSeek 模型对话,推荐您前往[腾讯云智能体开发平台](https://cloud.tencent.com/product/lke),使用[ DeepSeek 联网助手](https://lke.cloud.tencent.com/webim_exp/#/chat/wQrAwR)。\n\n#### 已支持的模型\n- DeepSeek-V3-0324(model 参数值为**deepseek-v3-0324**)\n - DeepSeek-V3-0324为671B参数MoE模型,在编程与技术能力、上下文理解与长文本处理等方面优势突出。\n - 支持128K上下文长度,最大输出16k(不含思维链)。\n - 注意:相比于DeepSeek-V3,DeepSeek-V3-0324仅更新了模型权重,未增加参数量。总模型大小为685B,其中包括671B的主模型权重和 14B 的多令牌预测(MTP)模块权重,后续均描述主模型参数量。\n- DeepSeek-V3(model 参数值为**deepseek-v3**)\n - DeepSeek-V3为671B参数MoE模型,在百科知识、数学推理等多项任务上优势突出,评测成绩在主流榜单中位列开源模型榜首。\n - 支持64K上下文长度,最大输出16k。\n- DeepSeek-R1(model 参数值为**deepseek-r1**)\n - DeepSeek-R1为671B模型,使用强化学习训练,推理过程包含大量反思和验证,思维链长度可达数万字。 该系列模型在数学、代码以及各种复杂逻辑推理任务上推理效果优异,并为用户展现了完整的思考过程。\n - 支持96K上下文长度,最大输入长度64k,最大输出16k(默认4k),最大思维链输出长度32k。\n- DeepSeek-R1-0528(model 参数值为**deepseek-r1-0528**)\n - DeepSeek-R1-0528为671B 模型,架构优化与训练策略升级后,相比上一版本在代码生成、长文本处理和复杂推理领域提升明显。\n - 支持96K上下文长度,最大输入长度64k,最大输出16k(默认4k),最大思维链输出长度32k。\n\n\n\n### 计费说明\n\n- 标准计费(2025年2月26日起生效),计费模式为后付费小时结,为保证您账户资源的正常使用,请提前[开通后付费](https://
|
4
|
+
"document": "### 接口功能\n\n调用接口,发起一次对话请求。默认该接口下的单账号QPM上限为15000 ,TPM上限为1200000\n如需使用OpenAI兼容接口, 请参考文档:[Deepseek OpenAI对话接口](https://cloud.tencent.com/document/product/1772/115969)\n\n#### 在线体验\n如您希望在网页内直接体验 DeepSeek 模型对话,推荐您前往[腾讯云智能体开发平台](https://cloud.tencent.com/product/lke),使用[ DeepSeek 联网助手](https://lke.cloud.tencent.com/webim_exp/#/chat/wQrAwR)。\n\n#### 已支持的模型\n- DeepSeek-V3-0324(model 参数值为**deepseek-v3-0324**)\n - DeepSeek-V3-0324为671B参数MoE模型,在编程与技术能力、上下文理解与长文本处理等方面优势突出。\n - 支持128K上下文长度,最大输出16k(不含思维链)。\n - 注意:相比于DeepSeek-V3,DeepSeek-V3-0324仅更新了模型权重,未增加参数量。总模型大小为685B,其中包括671B的主模型权重和 14B 的多令牌预测(MTP)模块权重,后续均描述主模型参数量。\n- DeepSeek-V3(model 参数值为**deepseek-v3**)\n - DeepSeek-V3为671B参数MoE模型,在百科知识、数学推理等多项任务上优势突出,评测成绩在主流榜单中位列开源模型榜首。\n - 支持64K上下文长度,最大输出16k。\n- DeepSeek-R1(model 参数值为**deepseek-r1**)\n - DeepSeek-R1为671B模型,使用强化学习训练,推理过程包含大量反思和验证,思维链长度可达数万字。 该系列模型在数学、代码以及各种复杂逻辑推理任务上推理效果优异,并为用户展现了完整的思考过程。\n - 支持96K上下文长度,最大输入长度64k,最大输出16k(默认4k),最大思维链输出长度32k。\n- DeepSeek-R1-0528(model 参数值为**deepseek-r1-0528**)\n - DeepSeek-R1-0528为671B 模型,架构优化与训练策略升级后,相比上一版本在代码生成、长文本处理和复杂推理领域提升明显。\n - 支持96K上下文长度,最大输入长度64k,最大输出16k(默认4k),最大思维链输出长度32k。\n\n\n\n### 计费说明\n\n- 标准计费(2025年2月26日起生效),计费模式为后付费小时结,为保证您账户资源的正常使用,请提前[开通后付费](https://console.cloud.tencent.com/lkeap/settings)并及时[充值](https://console.cloud.tencent.com/expense/recharge)。\n\n - DeepSeek-R1 模型 | 输入:0.004元/千token | 输出(含思维链):0.016元/千token\n\n - DeepSeek-R1-0528 模型 | 输入:0.004元/千token | 输出(含思维链):0.016元/千token\n\n - DeepSeek-V3 模型 | 输入:0.002元/千token | 输出:0.008元/千token\n\n - DeepSeek-V3-0324 模型 | 输入:0.002元/千token | 输出:0.008元/千token\n\n\n### Openai兼容协议接口\n知识引擎原子能力大模型对话 API 兼容了 OpenAI 的接口规范,这意味着您可以直接使用 OpenAI 官方提供的 SDK 来调用大模型对话接口。您仅需要将 base_url 和 [api_key](https://cloud.tencent.com/document/product/1772/115970) 替换成相关配置,不需要对应用做额外修改,即可无缝将您的应用切换到相应的大模型。请参考文档:[Deepseek OpenAI对话接口](https://cloud.tencent.com/document/product/1772/115969)。\n> base_url: https://api.lkeap.cloud.tencent.com/v1\n\n> api_key的获取请参考[API KEY管理](https://cloud.tencent.com/document/product/1772/115970)\n\n\n### 快速接入\n1. 完成[实名认证](https://console.cloud.tencent.com/developer/auth)。\n2. 主账户前往[控制台](https://console.cloud.tencent.com/lkeap)开通服务。若为子账户,需由主账号在[权限管理](https://console.cloud.tencent.com/cam)中为子账号授权,关联预设策略,策略名称:QcloudLKEAPFullAccess。\n3. 通过API Explorer[在线调试](https://console.cloud.tencent.com/api/explorer?Product=lkeap&Version=2024-05-22&Action=ChatCompletions)。\n4. 使用[官方 SDK ](https://cloud.tencent.com/document/product/1772/115963#SDK)调用本接口(支持Python/Java/PHP/Go/Node.js/.NET等语言)。\n\n-----------\n\n### SDK调用示例\n通过本地代码调用本接口(支持Python/Java/PHP/Go/Node.js/.NET等语言):下面的代码以 Python 语言为例,展示如何访问腾讯云上的DeepSeek模型API的样例。\n(1)安装环境\n```\npython3 -m pip install --upgrade tencentcloud-sdk-python-common\npython3 -m pip install --upgrade tencentcloud-sdk-python-lkeap\n```\n\n(2)示例代码\n\n- 其中SecretKey和SecretID需要从腾讯云控制台获取\n\n- 参数params中模型Model字段可以选择“deepseek-r1“和“deepseek-v3”\n\n```\n# -*- coding: utf-8 -*-\nimport json\n\nfrom tencentcloud.common.common_client import CommonClient\nfrom tencentcloud.common import credential\nfrom tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException\nfrom tencentcloud.common.profile.client_profile import ClientProfile\nfrom tencentcloud.common.profile.http_profile import HttpProfile\n\nclass NonStreamResponse(object):\n def __init__(self):\n self.response = \"\"\n\n def _deserialize(self, obj):\n self.response = json.dumps(obj)\n\ntry:\n # 实例化一个认证对象,入参需要传入腾讯云账户 SecretId 和 SecretKey,此处还需注意密钥对的保密\n # 代码泄露可能会导致 SecretId 和 SecretKey 泄露,并威胁账号下所有资源的安全性。以下代码示例仅供参考,建议采用更安全的方式来使用密钥,请参见:https://cloud.tencent.com/document/product/1278/85305\n # 密钥可前往官网控制台 https://console.cloud.tencent.com/cam/capi 进行获取\n cred = credential.Credential(\"\", \"\")\n\n httpProfile = HttpProfile()\n httpProfile.endpoint = \"lkeap.tencentcloudapi.com\"\n httpProfile.reqTimeout = 40000 # 流式接口可能耗时较长\n clientProfile = ClientProfile()\n clientProfile.httpProfile = httpProfile\n\n params = \"{\\\"Model\\\":\\\"deepseek-r1\\\",\\\"Messages\\\":[{\\\"Role\\\":\\\"user\\\",\\\"Content\\\":\\\"你好\\\"}],\\\"Stream\\\":true}\";\n common_client = CommonClient(\"lkeap\", \"2024-05-22\", cred, \"ap-guangzhou\", profile=clientProfile)\n resp = common_client._call_and_deserialize(\"ChatCompletions\", json.loads(params), NonStreamResponse)\n if isinstance(resp, NonStreamResponse): # 非流式响应\n print(resp.response)\n else: # 流式响应\n for event in resp:\n print(event)\nexcept TencentCloudSDKException as err:\n print(err)\n\n```\n\n**DeepSeek-R1使用建议**\n\n1. 将温度设置在 0.5-0.7 范围内(建议为0.6),以防止无休止的重复或不连贯的输出。\n2. 避免添加system prompt,所有说明都应包含在user prompt中。",
|
5
5
|
"input": "ChatCompletionsRequest",
|
6
6
|
"name": "DeepSeek API 接口",
|
7
7
|
"output": "ChatCompletionsResponse",
|
@@ -1324,7 +1324,7 @@
|
|
1324
1324
|
"members": [
|
1325
1325
|
{
|
1326
1326
|
"disabled": false,
|
1327
|
-
"document": "
|
1327
|
+
"document": "说明:选择生成向量的模型\n备注:仅一个模型可选",
|
1328
1328
|
"example": "lke-text-embedding-v1",
|
1329
1329
|
"member": "string",
|
1330
1330
|
"name": "Model",
|
@@ -1333,7 +1333,7 @@
|
|
1333
1333
|
},
|
1334
1334
|
{
|
1335
1335
|
"disabled": false,
|
1336
|
-
"document": "
|
1336
|
+
"document": "说明:需要 embedding 的文本\n备注:单条query最多2000个字符,总条数最多7条",
|
1337
1337
|
"example": "[\"hello\", \"world\"]",
|
1338
1338
|
"member": "string",
|
1339
1339
|
"name": "Inputs",
|
@@ -7435,7 +7435,7 @@
|
|
7435
7435
|
"members": [
|
7436
7436
|
{
|
7437
7437
|
"disabled": false,
|
7438
|
-
"document": "
|
7438
|
+
"document": "盲水印文字,经过URL安全的Base64编码的4Byte数据。Base64解码之后,少于4Byte将会填充0x00到4Byte,超过4Byte将会截断为4Byte。\n注意:此字段可能返回 null,表示取不到有效值。",
|
7439
7439
|
"example": "dGVzdA==",
|
7440
7440
|
"member": "string",
|
7441
7441
|
"name": "EmbedText",
|
@@ -9649,6 +9649,15 @@
|
|
9649
9649
|
"name": "SourceAddresses",
|
9650
9650
|
"required": false,
|
9651
9651
|
"type": "list"
|
9652
|
+
},
|
9653
|
+
{
|
9654
|
+
"disabled": false,
|
9655
|
+
"document": "SRT FEC 设置",
|
9656
|
+
"example": "无",
|
9657
|
+
"member": "SRTFECSimpleOptions",
|
9658
|
+
"name": "FEC",
|
9659
|
+
"required": false,
|
9660
|
+
"type": "object"
|
9652
9661
|
}
|
9653
9662
|
],
|
9654
9663
|
"usage": "in"
|
@@ -10086,6 +10095,15 @@
|
|
10086
10095
|
"name": "Mode",
|
10087
10096
|
"required": false,
|
10088
10097
|
"type": "string"
|
10098
|
+
},
|
10099
|
+
{
|
10100
|
+
"disabled": false,
|
10101
|
+
"document": "SRT FEC 设置",
|
10102
|
+
"example": "无",
|
10103
|
+
"member": "SRTFECFullOptions",
|
10104
|
+
"name": "FEC",
|
10105
|
+
"required": false,
|
10106
|
+
"type": "object"
|
10089
10107
|
}
|
10090
10108
|
],
|
10091
10109
|
"usage": "in"
|
@@ -13705,6 +13723,16 @@
|
|
13705
13723
|
"output_required": true,
|
13706
13724
|
"type": "list",
|
13707
13725
|
"value_allowed_null": true
|
13726
|
+
},
|
13727
|
+
{
|
13728
|
+
"disabled": false,
|
13729
|
+
"document": "FEC 设置",
|
13730
|
+
"example": "无",
|
13731
|
+
"member": "SRTFECSimpleOptions",
|
13732
|
+
"name": "FEC",
|
13733
|
+
"output_required": false,
|
13734
|
+
"type": "object",
|
13735
|
+
"value_allowed_null": false
|
13708
13736
|
}
|
13709
13737
|
],
|
13710
13738
|
"usage": "out"
|
@@ -14371,6 +14399,16 @@
|
|
14371
14399
|
"output_required": true,
|
14372
14400
|
"type": "list",
|
14373
14401
|
"value_allowed_null": true
|
14402
|
+
},
|
14403
|
+
{
|
14404
|
+
"disabled": false,
|
14405
|
+
"document": "FEC 配置",
|
14406
|
+
"example": "无",
|
14407
|
+
"member": "SRTFECFullOptions",
|
14408
|
+
"name": "FEC",
|
14409
|
+
"output_required": false,
|
14410
|
+
"type": "object",
|
14411
|
+
"value_allowed_null": false
|
14374
14412
|
}
|
14375
14413
|
],
|
14376
14414
|
"usage": "out"
|
@@ -27977,6 +28015,84 @@
|
|
27977
28015
|
],
|
27978
28016
|
"usage": "out"
|
27979
28017
|
},
|
28018
|
+
"SRTFECFullOptions": {
|
28019
|
+
"document": "SRT FEC 高级配置",
|
28020
|
+
"members": [
|
28021
|
+
{
|
28022
|
+
"disabled": false,
|
28023
|
+
"document": "是否开启 FEC",
|
28024
|
+
"example": "true",
|
28025
|
+
"member": "bool",
|
28026
|
+
"name": "Enable",
|
28027
|
+
"output_required": false,
|
28028
|
+
"required": false,
|
28029
|
+
"type": "bool",
|
28030
|
+
"value_allowed_null": false
|
28031
|
+
},
|
28032
|
+
{
|
28033
|
+
"disabled": false,
|
28034
|
+
"document": "FEC 数据包 Layout 列数量. 取值范围>0",
|
28035
|
+
"example": "3",
|
28036
|
+
"member": "int64",
|
28037
|
+
"name": "Cols",
|
28038
|
+
"output_required": false,
|
28039
|
+
"required": false,
|
28040
|
+
"type": "int",
|
28041
|
+
"value_allowed_null": false
|
28042
|
+
},
|
28043
|
+
{
|
28044
|
+
"disabled": false,
|
28045
|
+
"document": "FEC 数据包 Layout 行数量. 取值范围 >=2 或者 <=-2",
|
28046
|
+
"example": "1",
|
28047
|
+
"member": "int64",
|
28048
|
+
"name": "Rows",
|
28049
|
+
"output_required": false,
|
28050
|
+
"required": false,
|
28051
|
+
"type": "int",
|
28052
|
+
"value_allowed_null": false
|
28053
|
+
},
|
28054
|
+
{
|
28055
|
+
"disabled": false,
|
28056
|
+
"document": "FEC 开启的情况下,ARQ的策略。取值 \"always\", \"onreq\", \"never\"",
|
28057
|
+
"example": "always",
|
28058
|
+
"member": "string",
|
28059
|
+
"name": "ARQ",
|
28060
|
+
"output_required": false,
|
28061
|
+
"required": false,
|
28062
|
+
"type": "string",
|
28063
|
+
"value_allowed_null": false
|
28064
|
+
},
|
28065
|
+
{
|
28066
|
+
"disabled": false,
|
28067
|
+
"document": "FEC 数据包 Layout 组织形式,取值 \"even\", \"staircase\" ",
|
28068
|
+
"example": "staircase",
|
28069
|
+
"member": "string",
|
28070
|
+
"name": "Layout",
|
28071
|
+
"output_required": false,
|
28072
|
+
"required": false,
|
28073
|
+
"type": "string",
|
28074
|
+
"value_allowed_null": false
|
28075
|
+
}
|
28076
|
+
],
|
28077
|
+
"usage": "both"
|
28078
|
+
},
|
28079
|
+
"SRTFECSimpleOptions": {
|
28080
|
+
"document": "SRT FEC 设置",
|
28081
|
+
"members": [
|
28082
|
+
{
|
28083
|
+
"disabled": false,
|
28084
|
+
"document": "是否开启 FEC",
|
28085
|
+
"example": "false",
|
28086
|
+
"member": "bool",
|
28087
|
+
"name": "Enable",
|
28088
|
+
"output_required": false,
|
28089
|
+
"required": false,
|
28090
|
+
"type": "bool",
|
28091
|
+
"value_allowed_null": false
|
28092
|
+
}
|
28093
|
+
],
|
28094
|
+
"usage": "both"
|
28095
|
+
},
|
27980
28096
|
"SRTSourceAddressReq": {
|
27981
28097
|
"document": "SRT输入源地址。",
|
27982
28098
|
"members": [
|