tccli 3.0.1292.1__py2.py3-none-any.whl → 3.0.1294.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 (84) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +3 -0
  3. tccli/services/advisor/v20200721/api.json +36 -36
  4. tccli/services/advisor/v20200721/examples.json +2 -2
  5. tccli/services/batch/v20170312/api.json +4 -4
  6. tccli/services/bh/v20230418/api.json +35 -17
  7. tccli/services/bh/v20230418/examples.json +1 -1
  8. tccli/services/cam/v20190116/api.json +19 -19
  9. tccli/services/cam/v20190116/examples.json +5 -5
  10. tccli/services/cdwdoris/v20211228/api.json +191 -0
  11. tccli/services/cdwpg/v20201230/api.json +375 -333
  12. tccli/services/cdwpg/v20201230/examples.json +36 -36
  13. tccli/services/chc/__init__.py +4 -0
  14. tccli/services/chc/chc_client.py +2062 -0
  15. tccli/services/chc/v20230418/api.json +5728 -0
  16. tccli/services/chc/v20230418/examples.json +293 -0
  17. tccli/services/ckafka/v20190819/api.json +34 -34
  18. tccli/services/ckafka/v20190819/examples.json +1 -1
  19. tccli/services/clb/v20180317/api.json +39 -20
  20. tccli/services/cloudaudit/v20190319/api.json +38 -23
  21. tccli/services/cls/v20201016/api.json +198 -198
  22. tccli/services/cls/v20201016/examples.json +1 -1
  23. tccli/services/controlcenter/v20230110/api.json +2 -2
  24. tccli/services/controlcenter/v20230110/examples.json +1 -1
  25. tccli/services/dbbrain/dbbrain_client.py +240 -28
  26. tccli/services/dbbrain/v20191016/api.json +5 -5
  27. tccli/services/dbbrain/v20210527/api.json +481 -18
  28. tccli/services/dbbrain/v20210527/examples.json +32 -0
  29. tccli/services/dcdb/v20180411/api.json +66 -66
  30. tccli/services/dcdb/v20180411/examples.json +7 -7
  31. tccli/services/domain/v20180808/api.json +2 -2
  32. tccli/services/ecdn/ecdn_client.py +7 -431
  33. tccli/services/ecdn/v20191012/api.json +0 -574
  34. tccli/services/ecdn/v20191012/examples.json +0 -64
  35. tccli/services/emr/v20190103/api.json +89 -89
  36. tccli/services/emr/v20190103/examples.json +1 -1
  37. tccli/services/ess/v20201111/api.json +12 -3
  38. tccli/services/ess/v20201111/examples.json +3 -3
  39. tccli/services/essbasic/v20210526/api.json +9 -0
  40. tccli/services/essbasic/v20210526/examples.json +1 -1
  41. tccli/services/gs/gs_client.py +1778 -29
  42. tccli/services/gs/v20191118/api.json +2597 -144
  43. tccli/services/gs/v20191118/examples.json +264 -0
  44. tccli/services/hai/v20230812/api.json +67 -67
  45. tccli/services/iap/v20240713/api.json +13 -13
  46. tccli/services/iap/v20240713/examples.json +3 -3
  47. tccli/services/iotexplorer/v20190423/api.json +1 -1
  48. tccli/services/iotvideo/v20211125/api.json +1 -1
  49. tccli/services/iotvideoindustry/v20201201/api.json +38 -35
  50. tccli/services/lcic/v20220817/api.json +46 -44
  51. tccli/services/lcic/v20220817/examples.json +1 -1
  52. tccli/services/lke/v20231130/api.json +14 -14
  53. tccli/services/lke/v20231130/examples.json +2 -2
  54. tccli/services/lkeap/v20240522/api.json +1 -1
  55. tccli/services/mariadb/v20170312/api.json +71 -71
  56. tccli/services/mariadb/v20170312/examples.json +5 -5
  57. tccli/services/mmps/v20200710/api.json +12 -12
  58. tccli/services/mqtt/v20240516/api.json +138 -138
  59. tccli/services/mqtt/v20240516/examples.json +6 -12
  60. tccli/services/organization/v20210331/api.json +61 -43
  61. tccli/services/organization/v20210331/examples.json +25 -25
  62. tccli/services/region/v20220627/examples.json +1 -1
  63. tccli/services/tbaas/v20180416/api.json +53 -48
  64. tccli/services/tchd/v20230306/api.json +5 -5
  65. tccli/services/tcr/v20190924/api.json +190 -187
  66. tccli/services/tcr/v20190924/examples.json +1 -1
  67. tccli/services/tdmq/v20200217/api.json +15 -15
  68. tccli/services/thpc/v20220401/api.json +3 -3
  69. tccli/services/thpc/v20230321/api.json +54 -33
  70. tccli/services/tione/v20211111/api.json +40 -1
  71. tccli/services/tke/v20180525/api.json +104 -104
  72. tccli/services/trocket/v20230308/api.json +24 -24
  73. tccli/services/tsf/v20180326/api.json +307 -186
  74. tccli/services/vcube/v20220410/api.json +382 -327
  75. tccli/services/vcube/v20220410/examples.json +56 -56
  76. tccli/services/vod/v20180717/api.json +145 -141
  77. tccli/services/vpc/v20170312/api.json +1 -1
  78. tccli/services/wedata/v20210820/api.json +71 -1
  79. tccli/services/wedata/v20210820/examples.json +2 -8
  80. {tccli-3.0.1292.1.dist-info → tccli-3.0.1294.1.dist-info}/METADATA +2 -2
  81. {tccli-3.0.1292.1.dist-info → tccli-3.0.1294.1.dist-info}/RECORD +84 -80
  82. {tccli-3.0.1292.1.dist-info → tccli-3.0.1294.1.dist-info}/WHEEL +0 -0
  83. {tccli-3.0.1292.1.dist-info → tccli-3.0.1294.1.dist-info}/entry_points.txt +0 -0
  84. {tccli-3.0.1292.1.dist-info → tccli-3.0.1294.1.dist-info}/license_files/LICENSE +0 -0
@@ -659,7 +659,7 @@
659
659
  "status": "online"
660
660
  },
661
661
  "SaveDoc": {
662
- "document": "知识库文档问答保存。\n将文件存储到应用的知识库内需要三步:\n1.获取临时密钥,参考[接口文档](https://cloud.tencent.com/document/product/1759/105050)。\n2.调用腾讯云提供的 cos 存储接口,将文件存储到知识引擎 cos 中:参考[PUT Objectufeff](https://cloud.tencent.com/document/product/436/7749)\n3.调用本接口,将文件的基础信息存储到知识引擎中。\n以上步骤可参考[文档](https://cloud.tencent.com/document/product/1759/108903),文档最后有[代码demo](https://cloud.tencent.com/document/product/1759/108903#demo),可作为参考。",
662
+ "document": "知识库文档问答保存。\n将文件存储到应用的知识库内需要三步:\n1.获取临时密钥,参考[接口文档](https://cloud.tencent.com/document/product/1759/105050)。获取临时密钥不同参数组合权限不一样,可参考 [知识引擎操作 cos 指南](https://cloud.tencent.com/document/product/1759/116238)\n2.调用腾讯云提供的 cos 存储接口,将文件存储到知识引擎 cos 中:具体可参考[ COS SDK 概览](https://cloud.tencent.com/document/product/436/6474), 注意使用的是临时密钥的方式操作 COS \n3.调用本接口,将文件的基础信息存储到知识引擎中。\n以上步骤可参考[文档](https://cloud.tencent.com/document/product/1759/108903),文档最后有[代码demo](https://cloud.tencent.com/document/product/1759/108903#demo),可作为参考。",
663
663
  "input": "SaveDocRequest",
664
664
  "name": "知识库文档问答保存",
665
665
  "output": "SaveDocResponse",
@@ -4469,7 +4469,7 @@
4469
4469
  {
4470
4470
  "disabled": false,
4471
4471
  "document": "QA业务ID\n",
4472
- "example": "",
4472
+ "example": "1903999940055016768",
4473
4473
  "member": "string",
4474
4474
  "name": "QaBizId",
4475
4475
  "required": true,
@@ -4478,7 +4478,7 @@
4478
4478
  {
4479
4479
  "disabled": false,
4480
4480
  "document": "应用ID",
4481
- "example": "",
4481
+ "example": "1887842680054218000",
4482
4482
  "member": "string",
4483
4483
  "name": "BotBizId",
4484
4484
  "required": true,
@@ -4493,7 +4493,7 @@
4493
4493
  {
4494
4494
  "disabled": false,
4495
4495
  "document": "QA业务ID\n",
4496
- "example": "",
4496
+ "example": "1903999940055016768",
4497
4497
  "member": "string",
4498
4498
  "name": "QaBizId",
4499
4499
  "output_required": false,
@@ -4503,7 +4503,7 @@
4503
4503
  {
4504
4504
  "disabled": false,
4505
4505
  "document": "问题\n",
4506
- "example": "",
4506
+ "example": "哪吒2",
4507
4507
  "member": "string",
4508
4508
  "name": "Question",
4509
4509
  "output_required": false,
@@ -4513,7 +4513,7 @@
4513
4513
  {
4514
4514
  "disabled": false,
4515
4515
  "document": "答案\n",
4516
- "example": "",
4516
+ "example": "《哪吒之魔童闹海》(亦称《哪吒贰之魔童闹海》,简称《哪吒2》",
4517
4517
  "member": "string",
4518
4518
  "name": "Answer",
4519
4519
  "output_required": false,
@@ -4532,8 +4532,8 @@
4532
4532
  },
4533
4533
  {
4534
4534
  "disabled": false,
4535
- "document": "来源\n",
4536
- "example": "",
4535
+ "document": "来源 1-文档生成问答对 2-批量导入问答对 3-单条手动录入问答对",
4536
+ "example": "3",
4537
4537
  "member": "uint64",
4538
4538
  "name": "Source",
4539
4539
  "output_required": false,
@@ -4543,7 +4543,7 @@
4543
4543
  {
4544
4544
  "disabled": false,
4545
4545
  "document": "来源描述\n",
4546
- "example": "",
4546
+ "example": "手动录入",
4547
4547
  "member": "string",
4548
4548
  "name": "SourceDesc",
4549
4549
  "output_required": false,
@@ -4553,7 +4553,7 @@
4553
4553
  {
4554
4554
  "disabled": false,
4555
4555
  "document": "更新时间\n",
4556
- "example": "",
4556
+ "example": "1742783938",
4557
4557
  "member": "string",
4558
4558
  "name": "UpdateTime",
4559
4559
  "output_required": false,
@@ -4562,8 +4562,8 @@
4562
4562
  },
4563
4563
  {
4564
4564
  "disabled": false,
4565
- "document": "状态\n",
4566
- "example": "",
4565
+ "document": "状态 <br>1-未校验 2-未发布 3-发布中 4-已发布 5-发布失败 6-不采纳 7-审核中 8-审核失败 9-审核失败申诉后人工审核中 11-审核失败申诉后人工审核不通过 12-已过期 13-超量失效 14-超量失效恢复 19-学习中 20-学习失败",
4566
+ "example": "2",
4567
4567
  "member": "int64",
4568
4568
  "name": "Status",
4569
4569
  "output_required": false,
@@ -4573,7 +4573,7 @@
4573
4573
  {
4574
4574
  "disabled": false,
4575
4575
  "document": "状态描述\n",
4576
- "example": "",
4576
+ "example": "未发布",
4577
4577
  "member": "string",
4578
4578
  "name": "StatusDesc",
4579
4579
  "output_required": false,
@@ -4583,7 +4583,7 @@
4583
4583
  {
4584
4584
  "disabled": false,
4585
4585
  "document": "分类ID\n",
4586
- "example": "",
4586
+ "example": "1887842680872108032",
4587
4587
  "member": "string",
4588
4588
  "name": "CateBizId",
4589
4589
  "output_required": false,
@@ -235,8 +235,8 @@
235
235
  "DescribeQA": [
236
236
  {
237
237
  "document": "获取QA详情",
238
- "input": "POST / HTTP/1.1\nHost: lke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeQA\n<公共请求参数>\n\n{\n \"QaBizId\": \"162734\",\n \"BotBizId\": \"1714970520775950336\"\n}",
239
- "output": "{\n \"Response\": {\n \"Answer\": \"我的好毛事12141\",\n \"AttrLabels\": [],\n \"AttrRange\": 1,\n \"CateBizId\": \"0\",\n \"DocBizId\": \"0\",\n \"FileName\": \"\",\n \"FileType\": \"\",\n \"Highlights\": [],\n \"IsAllowAccept\": false,\n \"IsAllowDelete\": true,\n \"IsAllowEdit\": true,\n \"OrgData\": \"\",\n \"PageContent\": \"\",\n \"QaBizId\": \"162734\",\n \"Question\": \"你号码\",\n \"RequestId\": \"9e3ce8ca-6175-4925-b24d-6555c8dc6084\",\n \"SegmentBizId\": \"0\",\n \"Source\": 3,\n \"SourceDesc\": \"手动录入\",\n \"Status\": 2,\n \"StatusDesc\": \"待发布\",\n \"UpdateTime\": \"1701939988\"\n }\n}",
238
+ "input": "POST / HTTP/1.1\nHost: lke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeQA\n<公共请求参数>\n\n{\n \"BotBizId\": \"1887842680054218752\",\n \"QaBizId\": \"1903999940055016768\"\n}",
239
+ "output": "{\n \"Response\": {\n \"Answer\": \"《**哪吒之魔童闹海**》(亦称《**哪吒贰之魔童闹海**》,简称《**哪吒2**》)。\",\n \"AttrLabels\": [],\n \"AttrRange\": 1,\n \"CateBizId\": \"1887842680872108032\",\n \"CustomParam\": \"\",\n \"DocBizId\": \"0\",\n \"ExpireEnd\": \"0\",\n \"ExpireStart\": \"1742783934\",\n \"FileName\": \"\",\n \"FileType\": \"\",\n \"Highlights\": [],\n \"IsAllowAccept\": false,\n \"IsAllowDelete\": true,\n \"IsAllowEdit\": true,\n \"OrgData\": \"\",\n \"PageContent\": \"\",\n \"PicAuditStatus\": 0,\n \"QaAuditStatus\": 0,\n \"QaBizId\": \"1903999940055016768\",\n \"Question\": \"哪吒2\",\n \"QuestionDesc\": \"\",\n \"RequestId\": \"7250f0e2-6d40-476a-aa15-0b5a51269a05\",\n \"SegmentBizId\": \"0\",\n \"SimilarQuestions\": [],\n \"Source\": 3,\n \"SourceDesc\": \"手动录入\",\n \"Status\": 2,\n \"StatusDesc\": \"待发布\",\n \"UpdateTime\": \"1742783970\",\n \"VideoAuditStatus\": 0\n }\n}",
240
240
  "title": "获取QA详情"
241
241
  }
242
242
  ],
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "actions": {
3
3
  "ChatCompletions": {
4
- "document": "### 接口功能\n\n调用接口,发起一次对话请求。单账号限制接口并发上限为5。\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(model 参数值为**deepseek-v3**)\n - DeepSeek-V3为671B参数MoE模型,在百科知识、数学推理等多项任务上优势突出,评测成绩在主流榜单中位列开源模型榜首。\n - 支持64K上下文长度,最大输入56k,最大输出8k(不含思维链)。\n- DeepSeek-R1(model 参数值为**deepseek-r1**)\n - DeepSeek-R1为671B模型,使用强化学习训练,推理过程包含大量反思和验证,思维链长度可达数万字。 该系列模型在数学、代码以及各种复杂逻辑推理任务上推理效果优异,并为用户展现了完整的思考过程。\n - 支持64K上下文长度,最大输入56k,最大输出8k(不含思维链)。\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-V3 模型 | 输入: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中。",
4
+ "document": "### 接口功能\n\n调用接口,发起一次对话请求。单账号限制接口并发上限为5。\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 - 支持64K上下文长度,最大输入56k,最大输出8k(不含思维链)。\n- DeepSeek-V3(model 参数值为**deepseek-v3**)\n - DeepSeek-V3为671B参数MoE模型,在百科知识、数学推理等多项任务上优势突出,评测成绩在主流榜单中位列开源模型榜首。\n - 支持64K上下文长度,最大输入56k,最大输出8k(不含思维链)。\n- DeepSeek-R1(model 参数值为**deepseek-r1**)\n - DeepSeek-R1为671B模型,使用强化学习训练,推理过程包含大量反思和验证,思维链长度可达数万字。 该系列模型在数学、代码以及各种复杂逻辑推理任务上推理效果优异,并为用户展现了完整的思考过程。\n - 支持64K上下文长度,最大输入56k,最大输出8k(不含思维链)。\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-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",
@@ -1197,7 +1197,7 @@
1197
1197
  {
1198
1198
  "disabled": false,
1199
1199
  "document": "实例节点可用区分布,可填写多个可用区。",
1200
- "example": "[\"ap-guangzhou-2\\r\\n\",\"ap-guangzhou-2\\r\\n\"]",
1200
+ "example": "[\"ap-guangzhou-2\",\"ap-guangzhou-2\"]",
1201
1201
  "member": "string",
1202
1202
  "name": "Zones",
1203
1203
  "required": true,
@@ -1295,7 +1295,7 @@
1295
1295
  },
1296
1296
  {
1297
1297
  "disabled": false,
1298
- "document": "数据库引擎版本,当前可选:8.0,5.7,10.1,10.0。",
1298
+ "document": "数据库引擎版本,当前可选:8.0,5.7,10.1。",
1299
1299
  "example": "8.0",
1300
1300
  "member": "string",
1301
1301
  "name": "DbVersionId",
@@ -1401,13 +1401,13 @@
1401
1401
  },
1402
1402
  {
1403
1403
  "disabled": false,
1404
- "document": "订单对应的实例 ID 列表,如果此处没有返回实例 ID,可以通过订单查询接口获取。还可通过实例查询接口查询实例是否创建完成。\n注意:此字段可能返回 null,表示取不到有效值。",
1404
+ "document": "订单对应的实例 ID 列表,如果此处没有返回实例 ID,可以通过订单查询接口获取。还可通过实例查询接口查询实例是否创建完成。",
1405
1405
  "example": "[\"tdsql-2c6p4y85\"]",
1406
1406
  "member": "string",
1407
1407
  "name": "InstanceIds",
1408
1408
  "output_required": true,
1409
1409
  "type": "list",
1410
- "value_allowed_null": true
1410
+ "value_allowed_null": false
1411
1411
  },
1412
1412
  {
1413
1413
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
@@ -2402,33 +2402,33 @@
2402
2402
  },
2403
2403
  {
2404
2404
  "disabled": false,
2405
- "document": "付费模式\n注意:此字段可能返回 null,表示取不到有效值。",
2405
+ "document": "付费模式",
2406
2406
  "example": "1",
2407
2407
  "member": "string",
2408
2408
  "name": "Paymode",
2409
2409
  "output_required": true,
2410
2410
  "type": "string",
2411
- "value_allowed_null": true
2411
+ "value_allowed_null": false
2412
2412
  },
2413
2413
  {
2414
2414
  "disabled": false,
2415
- "document": "实例处于异步任务时的异步任务流程ID\n注意:此字段可能返回 null,表示取不到有效值。",
2415
+ "document": "实例处于异步任务时的异步任务流程ID",
2416
2416
  "example": "0",
2417
2417
  "member": "int64",
2418
2418
  "name": "Locker",
2419
2419
  "output_required": true,
2420
2420
  "type": "int",
2421
- "value_allowed_null": true
2421
+ "value_allowed_null": false
2422
2422
  },
2423
2423
  {
2424
2424
  "disabled": false,
2425
- "document": "实例目前运行状态描述\n注意:此字段可能返回 null,表示取不到有效值。",
2425
+ "document": "实例目前运行状态描述",
2426
2426
  "example": "运行中",
2427
2427
  "member": "string",
2428
2428
  "name": "StatusDesc",
2429
2429
  "output_required": true,
2430
2430
  "type": "string",
2431
- "value_allowed_null": true
2431
+ "value_allowed_null": false
2432
2432
  },
2433
2433
  {
2434
2434
  "disabled": false,
@@ -2482,133 +2482,133 @@
2482
2482
  },
2483
2483
  {
2484
2484
  "disabled": false,
2485
- "document": "实例IPv6标志\n注意:此字段可能返回 null,表示取不到有效值。",
2485
+ "document": "实例IPv6标志",
2486
2486
  "example": "1",
2487
2487
  "member": "uint64",
2488
2488
  "name": "Ipv6Flag",
2489
2489
  "output_required": true,
2490
2490
  "type": "int",
2491
- "value_allowed_null": true
2491
+ "value_allowed_null": false
2492
2492
  },
2493
2493
  {
2494
2494
  "disabled": false,
2495
- "document": "内网IPv6\n注意:此字段可能返回 null,表示取不到有效值。",
2495
+ "document": "内网IPv6",
2496
2496
  "example": "240d:c000:f05f:b200:f200:b20f",
2497
2497
  "member": "string",
2498
2498
  "name": "Vipv6",
2499
2499
  "output_required": true,
2500
2500
  "type": "string",
2501
- "value_allowed_null": true
2501
+ "value_allowed_null": false
2502
2502
  },
2503
2503
  {
2504
2504
  "disabled": false,
2505
- "document": "外网IPv6\n注意:此字段可能返回 null,表示取不到有效值。",
2505
+ "document": "外网IPv6",
2506
2506
  "example": "140f:c010:*",
2507
2507
  "member": "string",
2508
2508
  "name": "WanVipv6",
2509
2509
  "output_required": true,
2510
2510
  "type": "string",
2511
- "value_allowed_null": true
2511
+ "value_allowed_null": false
2512
2512
  },
2513
2513
  {
2514
2514
  "disabled": false,
2515
- "document": "外网IPv6端口\n注意:此字段可能返回 null,表示取不到有效值。",
2515
+ "document": "外网IPv6端口",
2516
2516
  "example": "24450",
2517
2517
  "member": "uint64",
2518
2518
  "name": "WanPortIpv6",
2519
2519
  "output_required": true,
2520
2520
  "type": "int",
2521
- "value_allowed_null": true
2521
+ "value_allowed_null": false
2522
2522
  },
2523
2523
  {
2524
2524
  "disabled": false,
2525
- "document": "外网IPv6状态\n注意:此字段可能返回 null,表示取不到有效值。",
2525
+ "document": "外网IPv6状态",
2526
2526
  "example": "1",
2527
2527
  "member": "uint64",
2528
2528
  "name": "WanStatusIpv6",
2529
2529
  "output_required": true,
2530
2530
  "type": "int",
2531
- "value_allowed_null": true
2531
+ "value_allowed_null": false
2532
2532
  },
2533
2533
  {
2534
2534
  "disabled": false,
2535
- "document": "数据库引擎\n注意:此字段可能返回 null,表示取不到有效值。",
2535
+ "document": "数据库引擎",
2536
2536
  "example": "MySQL",
2537
2537
  "member": "string",
2538
2538
  "name": "DbEngine",
2539
2539
  "output_required": true,
2540
2540
  "type": "string",
2541
- "value_allowed_null": true
2541
+ "value_allowed_null": false
2542
2542
  },
2543
2543
  {
2544
2544
  "disabled": false,
2545
- "document": "数据库版本\n注意:此字段可能返回 null,表示取不到有效值。",
2545
+ "document": "数据库版本",
2546
2546
  "example": "8.0",
2547
2547
  "member": "string",
2548
2548
  "name": "DbVersion",
2549
2549
  "output_required": true,
2550
2550
  "type": "string",
2551
- "value_allowed_null": true
2551
+ "value_allowed_null": false
2552
2552
  },
2553
2553
  {
2554
2554
  "disabled": false,
2555
- "document": "DCN标志,0-无,1-主实例,2-灾备实例\n注意:此字段可能返回 null,表示取不到有效值。",
2555
+ "document": "DCN标志,0-无,1-主实例,2-灾备实例",
2556
2556
  "example": "1",
2557
2557
  "member": "int64",
2558
2558
  "name": "DcnFlag",
2559
2559
  "output_required": true,
2560
2560
  "type": "int",
2561
- "value_allowed_null": true
2561
+ "value_allowed_null": false
2562
2562
  },
2563
2563
  {
2564
2564
  "disabled": false,
2565
- "document": "DCN状态,0-无,1-创建中,2-同步中,3-已断开\n注意:此字段可能返回 null,表示取不到有效值。",
2565
+ "document": "DCN状态,0-无,1-创建中,2-同步中,3-已断开",
2566
2566
  "example": "2",
2567
2567
  "member": "int64",
2568
2568
  "name": "DcnStatus",
2569
2569
  "output_required": true,
2570
2570
  "type": "int",
2571
- "value_allowed_null": true
2571
+ "value_allowed_null": false
2572
2572
  },
2573
2573
  {
2574
2574
  "disabled": false,
2575
- "document": "DCN灾备实例数\n注意:此字段可能返回 null,表示取不到有效值。",
2575
+ "document": "DCN灾备实例数",
2576
2576
  "example": "2",
2577
2577
  "member": "int64",
2578
2578
  "name": "DcnDstNum",
2579
2579
  "output_required": true,
2580
2580
  "type": "int",
2581
- "value_allowed_null": true
2581
+ "value_allowed_null": false
2582
2582
  },
2583
2583
  {
2584
2584
  "disabled": false,
2585
- "document": "1: 主实例(独享型), 2: 主实例, 3: 灾备实例, 4: 灾备实例(独享型)\n注意:此字段可能返回 null,表示取不到有效值。",
2585
+ "document": "1: 主实例(独享型), 2: 主实例, 3: 灾备实例, 4: 灾备实例(独享型)",
2586
2586
  "example": "2",
2587
2587
  "member": "int64",
2588
2588
  "name": "InstanceType",
2589
2589
  "output_required": true,
2590
2590
  "type": "int",
2591
- "value_allowed_null": true
2591
+ "value_allowed_null": false
2592
2592
  },
2593
2593
  {
2594
2594
  "disabled": false,
2595
- "document": "实例标签信息\n注意:此字段可能返回 null,表示取不到有效值。",
2595
+ "document": "实例标签信息",
2596
2596
  "example": "[{\"TagKey\":\"qta_tdsql54\",\"TagValue\":\"other54\"},{\"TagKey\":\"qta_tdsql50\",\"TagValue\":\"other50\"}]",
2597
2597
  "member": "ResourceTag",
2598
2598
  "name": "ResourceTags",
2599
2599
  "output_required": true,
2600
2600
  "type": "list",
2601
- "value_allowed_null": true
2601
+ "value_allowed_null": false
2602
2602
  },
2603
2603
  {
2604
2604
  "disabled": false,
2605
- "document": "数据库版本\n注意:此字段可能返回 null,表示取不到有效值。",
2605
+ "document": "数据库版本",
2606
2606
  "example": "8.0",
2607
2607
  "member": "string",
2608
2608
  "name": "DbVersionId",
2609
2609
  "output_required": true,
2610
2610
  "type": "string",
2611
- "value_allowed_null": true
2611
+ "value_allowed_null": false
2612
2612
  }
2613
2613
  ],
2614
2614
  "usage": "out"
@@ -4106,13 +4106,13 @@
4106
4106
  },
4107
4107
  {
4108
4108
  "disabled": false,
4109
- "document": "内网IPv6\n注意:此字段可能返回 null,表示取不到有效值。",
4109
+ "document": "内网IPv6",
4110
4110
  "example": "2402:5e00:1011:2d01:1:90cb:55fa:e4f3",
4111
4111
  "member": "string",
4112
4112
  "name": "Vip6",
4113
- "output_required": true,
4113
+ "output_required": false,
4114
4114
  "type": "string",
4115
- "value_allowed_null": true
4115
+ "value_allowed_null": false
4116
4116
  },
4117
4117
  {
4118
4118
  "disabled": false,
@@ -4146,63 +4146,63 @@
4146
4146
  },
4147
4147
  {
4148
4148
  "disabled": false,
4149
- "document": "是否支持IPv6\n注意:此字段可能返回 null,表示取不到有效值。",
4149
+ "document": "是否支持IPv6",
4150
4150
  "example": "0",
4151
4151
  "member": "int64",
4152
4152
  "name": "Ipv6Flag",
4153
4153
  "output_required": true,
4154
4154
  "type": "int",
4155
- "value_allowed_null": true
4155
+ "value_allowed_null": false
4156
4156
  },
4157
4157
  {
4158
4158
  "disabled": false,
4159
- "document": "外网IPv6地址,公网可访问\n注意:此字段可能返回 null,表示取不到有效值。",
4159
+ "document": "外网IPv6地址,公网可访问",
4160
4160
  "example": "2402:4e00:1012:2c01:1:90cb:55fa:e4d3",
4161
4161
  "member": "string",
4162
4162
  "name": "WanVipv6",
4163
4163
  "output_required": true,
4164
4164
  "type": "string",
4165
- "value_allowed_null": true
4165
+ "value_allowed_null": false
4166
4166
  },
4167
4167
  {
4168
4168
  "disabled": false,
4169
- "document": "外网状态,0-未开通;1-已开通;2-关闭;3-开通中;4-关闭中\n注意:此字段可能返回 null,表示取不到有效值。",
4169
+ "document": "外网状态,0-未开通;1-已开通;2-关闭;3-开通中;4-关闭中",
4170
4170
  "example": "0",
4171
4171
  "member": "int64",
4172
4172
  "name": "WanStatusIpv6",
4173
4173
  "output_required": true,
4174
4174
  "type": "int",
4175
- "value_allowed_null": true
4175
+ "value_allowed_null": false
4176
4176
  },
4177
4177
  {
4178
4178
  "disabled": false,
4179
- "document": "外网IPv6端口\n注意:此字段可能返回 null,表示取不到有效值。",
4179
+ "document": "外网IPv6端口",
4180
4180
  "example": "0",
4181
4181
  "member": "int64",
4182
4182
  "name": "WanPortIpv6",
4183
4183
  "output_required": true,
4184
4184
  "type": "int",
4185
- "value_allowed_null": true
4185
+ "value_allowed_null": false
4186
4186
  },
4187
4187
  {
4188
4188
  "disabled": false,
4189
- "document": "数据库引擎\n注意:此字段可能返回 null,表示取不到有效值。",
4189
+ "document": "数据库引擎",
4190
4190
  "example": "Pernoca",
4191
4191
  "member": "string",
4192
4192
  "name": "DbEngine",
4193
4193
  "output_required": true,
4194
4194
  "type": "string",
4195
- "value_allowed_null": true
4195
+ "value_allowed_null": false
4196
4196
  },
4197
4197
  {
4198
4198
  "disabled": false,
4199
- "document": "数据库版本\n注意:此字段可能返回 null,表示取不到有效值。",
4199
+ "document": "数据库版本",
4200
4200
  "example": "5.7.17",
4201
4201
  "member": "string",
4202
4202
  "name": "DbVersion",
4203
4203
  "output_required": true,
4204
4204
  "type": "string",
4205
- "value_allowed_null": true
4205
+ "value_allowed_null": false
4206
4206
  },
4207
4207
  {
4208
4208
  "disabled": false,
@@ -4216,83 +4216,83 @@
4216
4216
  },
4217
4217
  {
4218
4218
  "disabled": false,
4219
- "document": "DCN标志,0-无,1-主实例,2-灾备实例\n注意:此字段可能返回 null,表示取不到有效值。",
4219
+ "document": "DCN标志,0-无,1-主实例,2-灾备实例",
4220
4220
  "example": "1",
4221
4221
  "member": "int64",
4222
4222
  "name": "DcnFlag",
4223
4223
  "output_required": true,
4224
4224
  "type": "int",
4225
- "value_allowed_null": true
4225
+ "value_allowed_null": false
4226
4226
  },
4227
4227
  {
4228
4228
  "disabled": false,
4229
- "document": "DCN状态,0-无,1-创建中,2-同步中,3-已断开\n注意:此字段可能返回 null,表示取不到有效值。",
4229
+ "document": "DCN状态,0-无,1-创建中,2-同步中,3-已断开",
4230
4230
  "example": "2",
4231
4231
  "member": "int64",
4232
4232
  "name": "DcnStatus",
4233
4233
  "output_required": true,
4234
4234
  "type": "int",
4235
- "value_allowed_null": true
4235
+ "value_allowed_null": false
4236
4236
  },
4237
4237
  {
4238
4238
  "disabled": false,
4239
- "document": "DCN灾备实例数\n注意:此字段可能返回 null,表示取不到有效值。",
4239
+ "document": "DCN灾备实例数",
4240
4240
  "example": "1",
4241
4241
  "member": "int64",
4242
4242
  "name": "DcnDstNum",
4243
4243
  "output_required": true,
4244
4244
  "type": "int",
4245
- "value_allowed_null": true
4245
+ "value_allowed_null": false
4246
4246
  },
4247
4247
  {
4248
4248
  "disabled": false,
4249
- "document": "1: 主实例(独享型), 2: 主实例, 3: 灾备实例, 4: 灾备实例(独享型)\n注意:此字段可能返回 null,表示取不到有效值。",
4249
+ "document": "1: 主实例(独享型), 2: 主实例, 3: 灾备实例, 4: 灾备实例(独享型)",
4250
4250
  "example": "1",
4251
4251
  "member": "int64",
4252
4252
  "name": "InstanceType",
4253
4253
  "output_required": true,
4254
4254
  "type": "int",
4255
- "value_allowed_null": true
4255
+ "value_allowed_null": false
4256
4256
  },
4257
4257
  {
4258
4258
  "disabled": false,
4259
- "document": "实例的各个DB节点信息\n注意:此字段可能返回 null,表示取不到有效值。",
4259
+ "document": "实例的各个DB节点信息",
4260
4260
  "example": "无",
4261
4261
  "member": "NodeInfo",
4262
4262
  "name": "NodesInfo",
4263
4263
  "output_required": true,
4264
4264
  "type": "list",
4265
- "value_allowed_null": true
4265
+ "value_allowed_null": false
4266
4266
  },
4267
4267
  {
4268
4268
  "disabled": false,
4269
- "document": "实例是否支持设置用户连接数限制,内核为10.1暂不支持。\n注意:此字段可能返回 null,表示取不到有效值。",
4269
+ "document": "实例是否支持设置用户连接数限制,内核为10.1暂不支持。",
4270
4270
  "example": "true",
4271
4271
  "member": "bool",
4272
4272
  "name": "IsMaxUserConnectionsSupported",
4273
4273
  "output_required": true,
4274
4274
  "type": "bool",
4275
- "value_allowed_null": true
4275
+ "value_allowed_null": false
4276
4276
  },
4277
4277
  {
4278
4278
  "disabled": false,
4279
- "document": "对外显示的数据库版本\n注意:此字段可能返回 null,表示取不到有效值。",
4279
+ "document": "对外显示的数据库版本",
4280
4280
  "example": "5.7",
4281
4281
  "member": "string",
4282
4282
  "name": "DbVersionId",
4283
4283
  "output_required": true,
4284
4284
  "type": "string",
4285
- "value_allowed_null": true
4285
+ "value_allowed_null": false
4286
4286
  },
4287
4287
  {
4288
4288
  "disabled": false,
4289
- "document": "加密状态, 0-未开启,1-已开启\n注意:此字段可能返回 null,表示取不到有效值。",
4289
+ "document": "加密状态, 0-未开启,1-已开启",
4290
4290
  "example": "0",
4291
4291
  "member": "int64",
4292
4292
  "name": "EncryptStatus",
4293
4293
  "output_required": true,
4294
4294
  "type": "int",
4295
- "value_allowed_null": true
4295
+ "value_allowed_null": false
4296
4296
  },
4297
4297
  {
4298
4298
  "disabled": false,
@@ -4316,23 +4316,23 @@
4316
4316
  },
4317
4317
  {
4318
4318
  "disabled": false,
4319
- "document": "独享集群类型,0:公有云, 1:金融围笼, 2:CDC集群\n注意:此字段可能返回 null,表示取不到有效值。",
4319
+ "document": "独享集群类型,0:公有云, 1:金融围笼, 2:CDC集群",
4320
4320
  "example": "0",
4321
4321
  "member": "int64",
4322
4322
  "name": "ExclusterType",
4323
4323
  "output_required": true,
4324
4324
  "type": "int",
4325
- "value_allowed_null": true
4325
+ "value_allowed_null": false
4326
4326
  },
4327
4327
  {
4328
4328
  "disabled": false,
4329
- "document": "VPC就近访问\n注意:此字段可能返回 null,表示取不到有效值。",
4329
+ "document": "VPC就近访问",
4330
4330
  "example": "0",
4331
4331
  "member": "int64",
4332
4332
  "name": "RsAccessStrategy",
4333
4333
  "output_required": true,
4334
4334
  "type": "int",
4335
- "value_allowed_null": true
4335
+ "value_allowed_null": false
4336
4336
  },
4337
4337
  {
4338
4338
  "disabled": false,