tccli 3.0.1325.1__py2.py3-none-any.whl → 3.0.1327.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.
Files changed (56) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/ams/v20201229/api.json +9 -9
  3. tccli/services/cdb/v20170320/api.json +9 -9
  4. tccli/services/cdc/v20201214/api.json +5 -5
  5. tccli/services/cfs/v20190719/api.json +19 -19
  6. tccli/services/cfs/v20190719/examples.json +2 -2
  7. tccli/services/clb/clb_client.py +53 -0
  8. tccli/services/clb/v20180317/api.json +100 -0
  9. tccli/services/clb/v20180317/examples.json +8 -0
  10. tccli/services/cme/v20191029/api.json +16 -19
  11. tccli/services/cme/v20191029/examples.json +12 -12
  12. tccli/services/dlc/dlc_client.py +53 -0
  13. tccli/services/dlc/v20210125/api.json +51 -0
  14. tccli/services/dlc/v20210125/examples.json +8 -0
  15. tccli/services/domain/v20180808/api.json +1 -1
  16. tccli/services/emr/v20190103/api.json +29 -0
  17. tccli/services/es/es_client.py +4 -57
  18. tccli/services/es/v20250101/api.json +0 -207
  19. tccli/services/es/v20250101/examples.json +0 -8
  20. tccli/services/ess/v20201111/api.json +4 -4
  21. tccli/services/essbasic/v20210526/api.json +1 -1
  22. tccli/services/gs/gs_client.py +269 -4
  23. tccli/services/gs/v20191118/api.json +412 -7
  24. tccli/services/gs/v20191118/examples.json +42 -2
  25. tccli/services/hai/v20230812/api.json +5 -5
  26. tccli/services/lke/lke_client.py +0 -53
  27. tccli/services/lke/v20231130/api.json +0 -113
  28. tccli/services/lke/v20231130/examples.json +0 -8
  29. tccli/services/lkeap/v20240522/api.json +1 -1
  30. tccli/services/lowcode/v20210108/api.json +60 -0
  31. tccli/services/monitor/monitor_client.py +170 -11
  32. tccli/services/monitor/v20180724/api.json +205 -1
  33. tccli/services/monitor/v20180724/examples.json +24 -0
  34. tccli/services/mrs/v20200910/api.json +4 -4
  35. tccli/services/oceanus/v20190422/api.json +15 -5
  36. tccli/services/oceanus/v20190422/examples.json +8 -2
  37. tccli/services/postgres/postgres_client.py +0 -53
  38. tccli/services/postgres/v20170312/api.json +0 -235
  39. tccli/services/postgres/v20170312/examples.json +0 -8
  40. tccli/services/privatedns/privatedns_client.py +53 -0
  41. tccli/services/privatedns/v20201028/api.json +180 -1
  42. tccli/services/privatedns/v20201028/examples.json +8 -0
  43. tccli/services/pts/v20210728/api.json +18 -0
  44. tccli/services/redis/v20180412/api.json +1 -1
  45. tccli/services/tcss/v20201101/api.json +190 -32
  46. tccli/services/tcss/v20201101/examples.json +6 -6
  47. tccli/services/tms/v20201229/api.json +2 -2
  48. tccli/services/tms/v20201229/examples.json +1 -1
  49. tccli/services/vm/v20210922/api.json +13 -13
  50. tccli/services/vm/v20210922/examples.json +2 -2
  51. tccli/services/vpc/v20170312/api.json +2 -2
  52. {tccli-3.0.1325.1.dist-info → tccli-3.0.1327.1.dist-info}/METADATA +2 -2
  53. {tccli-3.0.1325.1.dist-info → tccli-3.0.1327.1.dist-info}/RECORD +56 -56
  54. {tccli-3.0.1325.1.dist-info → tccli-3.0.1327.1.dist-info}/WHEEL +0 -0
  55. {tccli-3.0.1325.1.dist-info → tccli-3.0.1327.1.dist-info}/entry_points.txt +0 -0
  56. {tccli-3.0.1325.1.dist-info → tccli-3.0.1327.1.dist-info}/license_files/LICENSE +0 -0
@@ -317,7 +317,7 @@
317
317
  "members": [
318
318
  {
319
319
  "disabled": false,
320
- "document": "应用id列表",
320
+ "document": "应用id列表。单次请求数量上限为100个。",
321
321
  "example": "[\"app-12345678\"]",
322
322
  "member": "string",
323
323
  "name": "ApplicationIds",
@@ -388,7 +388,7 @@
388
388
  {
389
389
  "disabled": false,
390
390
  "document": "分页返回的应用列表",
391
- "example": "[{\"ApplicationId\":\"app-12345678\",\"ApplicationName\":\"Llama2 13B\",\"ConfigEnvironment\":\"Ubuntu20.04, Python 3.8, Llama-2-13b-chat, CUDA 11.7, cuDNN 8, pytorch 2, JupyteLab\",\"Description\":\"xxx\",\"MinSystemDiskSize\":80}]",
391
+ "example": "[{\"ApplicationId\":\"app-xx\",\"ApplicationName\":\"Pytorch\",\"ApplicationSize\":50,\"ApplicationState\":\"ONLINE\",\"ApplicationType\":\"PUBLIC_APPLICATION\",\"ConfigEnvironment\":\"Ubuntu\",\"CreateTime\":\"xx\",\"Description\":\"xx\",\"MinSystemDiskSize\": 80}]",
392
392
  "member": "ApplicationInfo",
393
393
  "name": "ApplicationSet",
394
394
  "output_required": true,
@@ -1621,7 +1621,7 @@
1621
1621
  "members": [
1622
1622
  {
1623
1623
  "disabled": false,
1624
- "document": "实例ID\n可通过DescribeInstances获取实例ID",
1624
+ "document": "实例ID。可通过[DescribeInstances](https://cloud.tencent.com/document/api/1721/101612) API获取实例ID",
1625
1625
  "example": "hai-2dfajzo4q",
1626
1626
  "member": "string",
1627
1627
  "name": "InstanceId",
@@ -1667,7 +1667,7 @@
1667
1667
  "members": [
1668
1668
  {
1669
1669
  "disabled": false,
1670
- "document": "实例ID\n可通过DescribeInstances获取实例ID",
1670
+ "document": "实例ID。可通过[DescribeInstances](https://cloud.tencent.com/document/api/1721/101612) API获取实例ID",
1671
1671
  "example": "hai-2dfajzo4q",
1672
1672
  "member": "string",
1673
1673
  "name": "InstanceId",
@@ -1761,7 +1761,7 @@
1761
1761
  "members": [
1762
1762
  {
1763
1763
  "disabled": false,
1764
- "document": "实例ID列表\n可通过DescribeInstances接口获取ID列表.单次能查询100个InstanceId",
1764
+ "document": "实例ID列表。可通过[DescribeInstances](https://cloud.tencent.com/document/api/1721/101612) API获取实例ID列表。单次能查询100个InstanceId",
1765
1765
  "example": "['hai-2dfajzo4q']\t",
1766
1766
  "member": "string",
1767
1767
  "name": "InstanceIds",
@@ -3137,58 +3137,6 @@ def doIgnoreUnsatisfiedReply(args, parsed_globals):
3137
3137
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3138
3138
 
3139
3139
 
3140
- def doCreateReconstructDocumentFlow(args, parsed_globals):
3141
- g_param = parse_global_arg(parsed_globals)
3142
-
3143
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3144
- cred = credential.CVMRoleCredential()
3145
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3146
- cred = credential.STSAssumeRoleCredential(
3147
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3148
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3149
- )
3150
- 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):
3151
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3152
- else:
3153
- cred = credential.Credential(
3154
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3155
- )
3156
- http_profile = HttpProfile(
3157
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3158
- reqMethod="POST",
3159
- endpoint=g_param[OptionsDefine.Endpoint],
3160
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3161
- )
3162
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3163
- if g_param[OptionsDefine.Language]:
3164
- profile.language = g_param[OptionsDefine.Language]
3165
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3166
- client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
3167
- client._sdkVersion += ("_CLI_" + __version__)
3168
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
3169
- model = models.CreateReconstructDocumentFlowRequest()
3170
- model.from_json_string(json.dumps(args))
3171
- start_time = time.time()
3172
- while True:
3173
- rsp = client.CreateReconstructDocumentFlow(model)
3174
- result = rsp.to_json_string()
3175
- try:
3176
- json_obj = json.loads(result)
3177
- except TypeError as e:
3178
- json_obj = json.loads(result.decode('utf-8')) # python3.3
3179
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3180
- break
3181
- cur_time = time.time()
3182
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3183
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3184
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3185
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3186
- else:
3187
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3188
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3189
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3190
-
3191
-
3192
3140
  def doUploadAttributeLabel(args, parsed_globals):
3193
3141
  g_param = parse_global_arg(parsed_globals)
3194
3142
 
@@ -5184,7 +5132,6 @@ ACTION_MAP = {
5184
5132
  "ModifyDocCate": doModifyDocCate,
5185
5133
  "ExportQAList": doExportQAList,
5186
5134
  "IgnoreUnsatisfiedReply": doIgnoreUnsatisfiedReply,
5187
- "CreateReconstructDocumentFlow": doCreateReconstructDocumentFlow,
5188
5135
  "UploadAttributeLabel": doUploadAttributeLabel,
5189
5136
  "GetDocPreview": doGetDocPreview,
5190
5137
  "DescribeConcurrencyUsage": doDescribeConcurrencyUsage,
@@ -63,13 +63,6 @@
63
63
  "output": "CreateQACateResponse",
64
64
  "status": "online"
65
65
  },
66
- "CreateReconstructDocumentFlow": {
67
- "document": "本接口为异步接口的发起请求接口,用于发起文档解析任务。\n文档解析支持将图片或PDF文件转换成Markdown格式文件,可解析包括表格、公式、图片、标题、段落、页眉、页脚等内容元素,并将内容智能转换成阅读顺序。\n\n体验期间单账号限制qps仅为1,若有正式接入需要请与产研团队沟通开放。",
68
- "input": "CreateReconstructDocumentFlowRequest",
69
- "name": "创建文档解析任务",
70
- "output": "CreateReconstructDocumentFlowResponse",
71
- "status": "online"
72
- },
73
66
  "CreateRejectedQuestion": {
74
67
  "document": "创建拒答问题",
75
68
  "input": "CreateRejectedQuestionRequest",
@@ -2986,112 +2979,6 @@
2986
2979
  ],
2987
2980
  "type": "object"
2988
2981
  },
2989
- "CreateReconstructDocumentFlowConfig": {
2990
- "document": "创建智能文档解析任务的配置信息",
2991
- "members": [
2992
- {
2993
- "disabled": false,
2994
- "document": "Markdown文件中表格返回的形式\n0,表格以MD形式返回\n1,表格以HTML形式返回\n默认为1",
2995
- "example": "1",
2996
- "member": "string",
2997
- "name": "TableResultType",
2998
- "required": false,
2999
- "type": "string"
3000
- },
3001
- {
3002
- "disabled": false,
3003
- "document": "智能文档解析返回结果的格式\n0:只返回全文MD;\n1:只返回每一页的OCR原始Json;\n2:只返回每一页的MD,\n3:返回全文MD + 每一页的OCR原始Json;\n4:返回全文MD + 每一页的MD,\n默认值为3(返回全文MD + 每一页的OCR原始Json)\n\n",
3004
- "example": "3",
3005
- "member": "string",
3006
- "name": "ResultType",
3007
- "required": false,
3008
- "type": "string"
3009
- }
3010
- ],
3011
- "usage": "in"
3012
- },
3013
- "CreateReconstructDocumentFlowRequest": {
3014
- "document": "CreateReconstructDocumentFlow请求参数结构体",
3015
- "members": [
3016
- {
3017
- "disabled": false,
3018
- "document": "文件类型。支持的文件类型: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。",
3019
- "example": "PDF",
3020
- "member": "string",
3021
- "name": "FileType",
3022
- "required": false,
3023
- "type": "string"
3024
- },
3025
- {
3026
- "disabled": false,
3027
- "document": "文件的 Base64 值。支持的文件大小:所下载文件经Base64编码后不超过 8M。文件下载时间不超过 3 秒。支持的图片像素:单边介于20-10000px之间。文件的 FileUrl、FileBase64 必须提供一个,如果都提供,只使用 FileUrl。",
3028
- "example": "无",
3029
- "member": "string",
3030
- "name": "FileBase64",
3031
- "required": false,
3032
- "type": "string"
3033
- },
3034
- {
3035
- "disabled": false,
3036
- "document": "<p>文件的Url地址。文件下载时间不超过15秒。支持的图片像素:单边介于20-10000px之间。文件存储于腾讯云的Url可保障更高的下载速度和稳定性,建议文件存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。所下载文件经 Base64 编码后不超过支持的文件大小:</p><table> <tbody> <tr> <td>文件类型</td> <td>支持的文件大小</td> </tr> <tr> <td>PDF</td> <td>200M</td> </tr> <tr> <td>DOC</td> <td>200M</td> </tr> <tr> <td>DOCX</td> <td>200M</td> </tr> <tr> <td>PPT</td> <td>200M</td> </tr> <tr> <td>PPTX</td> <td>200M</td> </tr> <tr> <td>MD</td> <td>10M</td> </tr> <tr> <td>TXT</td> <td>10M</td> </tr> <tr> <td>XLS</td> <td>20M</td> </tr> <tr> <td>XLSX</td> <td>20M</td> </tr> <tr> <td>CSV</td> <td>20M</td> </tr> <tr> <td>PNG</td> <td>20M</td> </tr> <tr> <td>JPG</td> <td>20M</td> </tr> <tr> <td>JPEG</td> <td>20M</td> </tr> <tr> <td>BMP</td> <td>20M</td> </tr> <tr> <td>GIF</td> <td>20M</td> </tr> <tr> <td>WEBP</td> <td>20M</td> </tr> <tr> <td>HEIC</td> <td>20M</td> </tr> <tr> <td>EPS</td> <td>20M</td> </tr> <tr> <td>ICNS</td> <td>20M</td> </tr> <tr> <td>IM</td> <td>20M</td> </tr> <tr> <td>PCX</td> <td>20M</td> </tr> <tr> <td>PPM</td> <td>20M</td> </tr> <tr> <td>TIFF</td> <td>20M</td> </tr> <tr> <td>XBM</td> <td>20M</td> </tr> <tr> <td>HEIF</td> <td>20M</td> </tr> <tr> <td>JP2</td> <td>20M</td> </tr> </tbody> <colgroup> <col> <col> </colgroup></table>",
3037
- "example": "无",
3038
- "member": "string",
3039
- "name": "FileUrl",
3040
- "required": false,
3041
- "type": "string"
3042
- },
3043
- {
3044
- "disabled": false,
3045
- "document": "当传入文件类型为PDF、DOC、DOCX、PPT、PPTX,用来指定文件识别的起始页码,识别的页码包含当前值。默认为1,表示从文件的第1页开始识别。",
3046
- "example": "1",
3047
- "member": "int64",
3048
- "name": "FileStartPageNumber",
3049
- "required": false,
3050
- "type": "int"
3051
- },
3052
- {
3053
- "disabled": false,
3054
- "document": "当传入文件类型为PDF、DOC、DOCX、PPT、PPTX,用来指定文件识别的结束页码,识别的页码包含当前值。默认为100,表示识别到文件的第100页。单次调用最多支持识别1000页内容,即FileEndPageNumber-FileStartPageNumber需要不大于1000。",
3055
- "example": "100",
3056
- "member": "int64",
3057
- "name": "FileEndPageNumber",
3058
- "required": false,
3059
- "type": "int"
3060
- },
3061
- {
3062
- "disabled": false,
3063
- "document": "创建文档解析任务配置信息。",
3064
- "example": "{\"TableResultType\":\"1\"}",
3065
- "member": "CreateReconstructDocumentFlowConfig",
3066
- "name": "Config",
3067
- "required": false,
3068
- "type": "object"
3069
- }
3070
- ],
3071
- "type": "object"
3072
- },
3073
- "CreateReconstructDocumentFlowResponse": {
3074
- "document": "CreateReconstructDocumentFlow返回参数结构体",
3075
- "members": [
3076
- {
3077
- "disabled": false,
3078
- "document": "任务唯一ID。30天内可以通过[GetReconstructDocumentResult](https://cloud.tencent.com/document/product/1759/107505)接口查询TaskId对应的处理结果。",
3079
- "example": "无",
3080
- "member": "string",
3081
- "name": "TaskId",
3082
- "output_required": true,
3083
- "type": "string",
3084
- "value_allowed_null": false
3085
- },
3086
- {
3087
- "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
3088
- "member": "string",
3089
- "name": "RequestId",
3090
- "type": "string"
3091
- }
3092
- ],
3093
- "type": "object"
3094
- },
3095
2982
  "CreateRejectedQuestionRequest": {
3096
2983
  "document": "CreateRejectedQuestion请求参数结构体",
3097
2984
  "members": [
@@ -72,14 +72,6 @@
72
72
  "title": "新建QA分类"
73
73
  }
74
74
  ],
75
- "CreateReconstructDocumentFlow": [
76
- {
77
- "document": "",
78
- "input": "POST / HTTP/1.1\nHost: lke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateReconstructDocumentFlow\n<公共请求参数>\n\n{\n \"FileStartPageNumber\": 1,\n \"FileEndPageNumber\": 1,\n \"Config\": {\n \"TableResultType\": \"1\"\n },\n \"FileBase64\": \"data:application/pdf;base64,JVBERi0xLjcKXXX...\"\n}",
79
- "output": "{\n \"Response\": {\n \"RequestId\": \"1d569fb4-4c9d-4141-bbd7-e1d8735bd1a9\",\n \"TaskId\": \"9e28e561e9a04ef096768d13deffe963\"\n }\n}",
80
- "title": "接口请求成功示例"
81
- }
82
- ],
83
75
  "CreateRejectedQuestion": [
84
76
  {
85
77
  "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- DeepSeek-Prover-V2(model 参数值为**deepseek-prover-v2**)\n - DeepSeek-Prover-V2 为671B 参数 MoE 模型,在数学定理证明和复杂计算任务中表现出色。\n - 支持64K上下文长度,最大输出16k。\n\n\n### 计费说明\n\n- 标准计费(2025年2月26日起生效),计费模式为后付费小时结,为保证您账户资源的正常使用,请提前[开通后付费](https://lke.cloud.tencent.com/lke#/app/system/charge/postpaid)并及时[充值](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 - DeepSeek-Prover-V2 模型 | 暂不计费\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中。",
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://lke.cloud.tencent.com/lke#/app/system/charge/postpaid)并及时[充值](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",
@@ -1328,6 +1328,36 @@
1328
1328
  "output_required": false,
1329
1329
  "type": "string",
1330
1330
  "value_allowed_null": false
1331
+ },
1332
+ {
1333
+ "disabled": false,
1334
+ "document": "上传文件状态",
1335
+ "example": "Ready",
1336
+ "member": "string",
1337
+ "name": "DocStatus",
1338
+ "output_required": false,
1339
+ "type": "string",
1340
+ "value_allowed_null": false
1341
+ },
1342
+ {
1343
+ "disabled": false,
1344
+ "document": "文件上传失败的具体原因",
1345
+ "example": "failed",
1346
+ "member": "string",
1347
+ "name": "ErrMsg",
1348
+ "output_required": false,
1349
+ "type": "string",
1350
+ "value_allowed_null": false
1351
+ },
1352
+ {
1353
+ "disabled": false,
1354
+ "document": "Cos存储文件ID",
1355
+ "example": "cloud://aa.doc",
1356
+ "member": "string",
1357
+ "name": "FileId",
1358
+ "output_required": false,
1359
+ "type": "string",
1360
+ "value_allowed_null": false
1331
1361
  }
1332
1362
  ],
1333
1363
  "usage": "out"
@@ -1688,6 +1718,36 @@
1688
1718
  "output_required": false,
1689
1719
  "type": "string",
1690
1720
  "value_allowed_null": false
1721
+ },
1722
+ {
1723
+ "disabled": false,
1724
+ "document": "文档上传状态",
1725
+ "example": "Ready",
1726
+ "member": "string",
1727
+ "name": "DocStatus",
1728
+ "output_required": false,
1729
+ "type": "string",
1730
+ "value_allowed_null": false
1731
+ },
1732
+ {
1733
+ "disabled": false,
1734
+ "document": "上传文件失败时具体的错误消息",
1735
+ "example": "xxx param invalid",
1736
+ "member": "string",
1737
+ "name": "ErrMsg",
1738
+ "output_required": false,
1739
+ "type": "string",
1740
+ "value_allowed_null": false
1741
+ },
1742
+ {
1743
+ "disabled": false,
1744
+ "document": "Cos存储文件ID",
1745
+ "example": "cloud://aa.doc",
1746
+ "member": "string",
1747
+ "name": "FileId",
1748
+ "output_required": false,
1749
+ "type": "string",
1750
+ "value_allowed_null": false
1691
1751
  }
1692
1752
  ],
1693
1753
  "usage": "out"