tccli 3.0.1390.1__py2.py3-none-any.whl → 3.0.1391.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.
@@ -231,6 +231,13 @@
231
231
  "output": "DisconnectAndroidInstanceResponse",
232
232
  "status": "online"
233
233
  },
234
+ "DistributeAndroidInstanceImageToHosts": {
235
+ "document": "分发安卓实例镜像至宿主机",
236
+ "input": "DistributeAndroidInstanceImageToHostsRequest",
237
+ "name": "分发安卓实例镜像到宿主机",
238
+ "output": "DistributeAndroidInstanceImageToHostsResponse",
239
+ "status": "online"
240
+ },
234
241
  "DistributeFileToAndroidInstances": {
235
242
  "document": "将一个文件批量分发到多个实例,一次接口调用触发一次文件分发,一次文件分发只会从公网下载一次,然后文件会走内网分发到实例列表中的实例。",
236
243
  "input": "DistributeFileToAndroidInstancesRequest",
@@ -1133,6 +1140,32 @@
1133
1140
  ],
1134
1141
  "usage": "both"
1135
1142
  },
1143
+ "AndroidInstanceHostTask": {
1144
+ "document": "安卓实例宿主机任务信息",
1145
+ "members": [
1146
+ {
1147
+ "disabled": false,
1148
+ "document": "任务 ID",
1149
+ "example": "a28c6f9c-e794-4d48-b711-d17e51a5d745",
1150
+ "member": "string",
1151
+ "name": "TaskId",
1152
+ "output_required": true,
1153
+ "type": "string",
1154
+ "value_allowed_null": false
1155
+ },
1156
+ {
1157
+ "disabled": false,
1158
+ "document": "宿主机序列号",
1159
+ "example": "RK5838P1262201165",
1160
+ "member": "string",
1161
+ "name": "HostSerialNumber",
1162
+ "output_required": true,
1163
+ "type": "string",
1164
+ "value_allowed_null": false
1165
+ }
1166
+ ],
1167
+ "usage": "out"
1168
+ },
1136
1169
  "AndroidInstanceImage": {
1137
1170
  "document": "安卓实例镜像信息",
1138
1171
  "members": [
@@ -3684,6 +3717,52 @@
3684
3717
  ],
3685
3718
  "type": "object"
3686
3719
  },
3720
+ "DistributeAndroidInstanceImageToHostsRequest": {
3721
+ "document": "DistributeAndroidInstanceImageToHosts请求参数结构体",
3722
+ "members": [
3723
+ {
3724
+ "disabled": false,
3725
+ "document": "宿主机序列号数组",
3726
+ "example": "[\"RK5838P1262201165\"]",
3727
+ "member": "string",
3728
+ "name": "HostSerialNumbers",
3729
+ "required": true,
3730
+ "type": "list"
3731
+ },
3732
+ {
3733
+ "disabled": false,
3734
+ "document": "实例镜像 ID",
3735
+ "example": "image-a5drda9q",
3736
+ "member": "string",
3737
+ "name": "ImageId",
3738
+ "required": true,
3739
+ "type": "string"
3740
+ }
3741
+ ],
3742
+ "type": "object"
3743
+ },
3744
+ "DistributeAndroidInstanceImageToHostsResponse": {
3745
+ "document": "DistributeAndroidInstanceImageToHosts返回参数结构体",
3746
+ "members": [
3747
+ {
3748
+ "disabled": false,
3749
+ "document": "任务集合",
3750
+ "example": "无",
3751
+ "member": "AndroidInstanceHostTask",
3752
+ "name": "TaskSet",
3753
+ "output_required": true,
3754
+ "type": "list",
3755
+ "value_allowed_null": false
3756
+ },
3757
+ {
3758
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
3759
+ "member": "string",
3760
+ "name": "RequestId",
3761
+ "type": "string"
3762
+ }
3763
+ ],
3764
+ "type": "object"
3765
+ },
3687
3766
  "DistributeFileToAndroidInstancesRequest": {
3688
3767
  "document": "DistributeFileToAndroidInstances请求参数结构体",
3689
3768
  "members": [
@@ -270,6 +270,14 @@
270
270
  "title": "示例"
271
271
  }
272
272
  ],
273
+ "DistributeAndroidInstanceImageToHosts": [
274
+ {
275
+ "document": "",
276
+ "input": "POST / HTTP/1.1\nHost: gs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DistributeAndroidInstanceImageToHosts\n<公共请求参数>\n\n{\n \"HostSerialNumbers\": [\n \"RK8S50P1402309016\",\n \"RK8S50P1402309017\"\n ],\n \"ImageId\": \"image-49va6apu\"\n}",
277
+ "output": "{\n \"Response\": {\n \"RequestId\": \"cb50f61b-6058-4500-b742-a692e06d3ef3\",\n \"TaskSet\": [\n {\n \"HostSerialNumber\": \"RK8S50P1402309016\",\n \"TaskId\": \"4e4af02c-7977-4612-8974-5b6a8493fa0c\"\n },\n {\n \"HostSerialNumber\": \"RK8S50P1402309017\",\n \"TaskId\": \"873b2107-4422-426f-9356-0a7ecb605297\"\n }\n ]\n }\n}",
278
+ "title": "示例"
279
+ }
280
+ ],
273
281
  "DistributeFileToAndroidInstances": [
274
282
  {
275
283
  "document": "示例",
@@ -362,6 +362,69 @@
362
362
  "name": "Tags",
363
363
  "required": false,
364
364
  "type": "list"
365
+ },
366
+ {
367
+ "disabled": false,
368
+ "document": "流量分发方式\n\n- STATELESS:无状态\n- STATEFUL: 有状态",
369
+ "example": "STATEFUL",
370
+ "member": "string",
371
+ "name": "ForwardingMode",
372
+ "required": false,
373
+ "type": "string"
374
+ },
375
+ {
376
+ "disabled": false,
377
+ "document": "TCP协议连接空闲超时时间,可配置60s-6000s,默认350s。",
378
+ "example": "100",
379
+ "member": "int64",
380
+ "name": "TcpIdleConnectTimeout",
381
+ "required": false,
382
+ "type": "int"
383
+ },
384
+ {
385
+ "disabled": false,
386
+ "document": "其他协议连接空闲超时时间,可配置5s-180s,默认120s",
387
+ "example": "100",
388
+ "member": "int64",
389
+ "name": "OthersIdleConnectTimeout",
390
+ "required": false,
391
+ "type": "int"
392
+ },
393
+ {
394
+ "disabled": false,
395
+ "document": "重新调度功能内的解绑后端服务开关,开关打开后解绑后端服务会触发重新调度。",
396
+ "example": "True",
397
+ "member": "bool",
398
+ "name": "RescheduleUnbindRs",
399
+ "required": false,
400
+ "type": "bool"
401
+ },
402
+ {
403
+ "disabled": false,
404
+ "document": "解绑RS后开启重调度的时间,可配置0s-3600s,默认0s",
405
+ "example": "200",
406
+ "member": "int64",
407
+ "name": "RescheduleUnbindRsStartTime",
408
+ "required": false,
409
+ "type": "int"
410
+ },
411
+ {
412
+ "disabled": false,
413
+ "document": "重新调度功能内的后端服务健康探测异常开关,开关打开后后端服务健康检查异常会触发重新调度。",
414
+ "example": "True",
415
+ "member": "bool",
416
+ "name": "RescheduleUnhealthy",
417
+ "required": false,
418
+ "type": "bool"
419
+ },
420
+ {
421
+ "disabled": false,
422
+ "document": "后端服务健康探测异常后开启重调度的时间,可配置0s-3600s,默认0s",
423
+ "example": "100",
424
+ "member": "int64",
425
+ "name": "RescheduleUnhealthyStartTime",
426
+ "required": false,
427
+ "type": "int"
365
428
  }
366
429
  ],
367
430
  "type": "object"
@@ -1270,6 +1333,60 @@
1270
1333
  "name": "AllDeadToAlive",
1271
1334
  "required": false,
1272
1335
  "type": "bool"
1336
+ },
1337
+ {
1338
+ "disabled": false,
1339
+ "document": "TCP协议连接空闲超时时间,可配置60s-6000s,默认350s。",
1340
+ "example": "100",
1341
+ "member": "int64",
1342
+ "name": "TcpIdleConnectTimeout",
1343
+ "required": false,
1344
+ "type": "int"
1345
+ },
1346
+ {
1347
+ "disabled": false,
1348
+ "document": "其他协议连接空闲超时时间,可配置5s-180s,默认120s",
1349
+ "example": "100",
1350
+ "member": "int64",
1351
+ "name": "OthersIdleConnectTimeout",
1352
+ "required": false,
1353
+ "type": "int"
1354
+ },
1355
+ {
1356
+ "disabled": false,
1357
+ "document": "重新调度功能内的解绑后端服务开关,开关打开后解绑后端服务会触发重新调度。",
1358
+ "example": "true",
1359
+ "member": "bool",
1360
+ "name": "RescheduleUnbindRs",
1361
+ "required": false,
1362
+ "type": "bool"
1363
+ },
1364
+ {
1365
+ "disabled": false,
1366
+ "document": "解绑RS后开启重调度的时间,可配置0s-3600s,默认0s",
1367
+ "example": "100",
1368
+ "member": "int64",
1369
+ "name": "RescheduleUnbindRsStartTime",
1370
+ "required": false,
1371
+ "type": "int"
1372
+ },
1373
+ {
1374
+ "disabled": false,
1375
+ "document": "重新调度功能内的后端服务健康探测异常开关,开关打开后后端服务健康检查异常会触发重新调度。",
1376
+ "example": "true",
1377
+ "member": "bool",
1378
+ "name": "RescheduleUnhealthy",
1379
+ "required": false,
1380
+ "type": "bool"
1381
+ },
1382
+ {
1383
+ "disabled": false,
1384
+ "document": "后端服务健康探测异常后开启重调度的时间,可配置0s-3600s,默认0s",
1385
+ "example": "100",
1386
+ "member": "int64",
1387
+ "name": "RescheduleUnhealthyStartTime",
1388
+ "required": false,
1389
+ "type": "int"
1273
1390
  }
1274
1391
  ],
1275
1392
  "type": "object"
@@ -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-V3.1(model 参数值为 deepseek-v3.1)\n\n - DeepSeek-V3.1 为685B 参数 MoE 模型,支持混合推理架构,有更高的思考效率和更强的 Agent 能力。目前尚处于限制性开放的试运行阶段,如需申请开通请联系售前客服或商务经理。\n\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中。",
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 - 支持128K上下文长度,最大输入长度96k,最大输出16k(默认4k),最大思维链输出长度32k。\n- DeepSeek-V3.1(model 参数值为 deepseek-v3.1)\n - DeepSeek-V3.1 为685B 参数 MoE 模型,支持混合推理架构,有更高的思考效率和更强的 Agent 能力。\n\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 - DeepSeek-V3.1 模型 | 输入:0.004元/千token | 输出:0.012元/千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",
@@ -352,6 +352,15 @@
352
352
  "name": "EnableSearch",
353
353
  "required": false,
354
354
  "type": "bool"
355
+ },
356
+ {
357
+ "disabled": false,
358
+ "document": "思维链开关,本参数仅在deepseek v3.1时生效",
359
+ "example": "无",
360
+ "member": "Thinking",
361
+ "name": "Thinking",
362
+ "required": false,
363
+ "type": "object"
355
364
  }
356
365
  ],
357
366
  "type": "object"
@@ -2777,6 +2786,21 @@
2777
2786
  ],
2778
2787
  "usage": "out"
2779
2788
  },
2789
+ "Thinking": {
2790
+ "document": "思维链开关类型",
2791
+ "members": [
2792
+ {
2793
+ "disabled": false,
2794
+ "document": "控制开启思维链,默认disabled\n\nenabled:开启思维链\ndisabled:关闭思维链",
2795
+ "example": "disabled",
2796
+ "member": "string",
2797
+ "name": "Type",
2798
+ "required": false,
2799
+ "type": "string"
2800
+ }
2801
+ ],
2802
+ "usage": "in"
2803
+ },
2780
2804
  "UploadDocRequest": {
2781
2805
  "document": "UploadDoc请求参数结构体",
2782
2806
  "members": [
@@ -5496,7 +5496,7 @@
5496
5496
  },
5497
5497
  {
5498
5498
  "disabled": false,
5499
- "document": "true:仅输出自定义字段\nflase:输出默认字段+自定义字段\n默认true",
5499
+ "document": "true:仅输出自定义字段\nfalse:输出默认字段+自定义字段\n默认true",
5500
5500
  "example": "true",
5501
5501
  "member": "bool",
5502
5502
  "name": "ItemNamesShowMode",
@@ -7091,7 +7091,7 @@
7091
7091
  },
7092
7092
  {
7093
7093
  "disabled": false,
7094
- "document": "vad的远场人声抑制能力(不会对asr识别效果造成影响),范围为[0, 3],默认为0。推荐设置为2,有较好的远场人声抑制能力。",
7094
+ "document": "vad的远场人声抑制能力(不会对asr识别效果造成影响),范围为[0, 5],默认为0,表示不开启远场人声抑制能力。推荐设置为2,有较好的远场人声抑制能力。嘈杂的办公室环境下可以设置为3,更为嘈杂的环境下可以使用4和5。注意较高的VadLevel可能会将单字当作噪声给过滤。",
7095
7095
  "example": "1",
7096
7096
  "member": "uint64",
7097
7097
  "name": "VadLevel",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "actions": {
3
3
  "ConfirmVideoTranslateJob": {
4
- "document": "确认视频翻译结果",
4
+ "document": "确认视频转译结果",
5
5
  "input": "ConfirmVideoTranslateJobRequest",
6
6
  "name": "确认视频转译结果",
7
7
  "output": "ConfirmVideoTranslateJobResponse",
@@ -95,7 +95,7 @@
95
95
  {
96
96
  "disabled": false,
97
97
  "document": "视频翻译任务 ID",
98
- "example": "",
98
+ "example": "vlSYvQkMM0KwPuoakawm0tPrREwc2p7c",
99
99
  "member": "string",
100
100
  "name": "JobId",
101
101
  "required": true,
@@ -119,7 +119,7 @@
119
119
  {
120
120
  "disabled": false,
121
121
  "document": "视频翻译任务 ID",
122
- "example": "",
122
+ "example": "vlSYvQkMM0KwPuoakawm0tPrREwc2p7c",
123
123
  "member": "string",
124
124
  "name": "JobId",
125
125
  "output_required": false,
@@ -129,7 +129,7 @@
129
129
  {
130
130
  "disabled": false,
131
131
  "document": "音频转换任务 ID",
132
- "example": "",
132
+ "example": "vlSYvQkMM0KwPuoakawm0tPrREwc2p7c",
133
133
  "member": "string",
134
134
  "name": "TaskId",
135
135
  "output_required": false,
@@ -139,7 +139,7 @@
139
139
  {
140
140
  "disabled": false,
141
141
  "document": "音频翻译结果确认 session",
142
- "example": "",
142
+ "example": "vlSYvQkMM0KwPuoakawm0tPrREwc2p7c",
143
143
  "member": "string",
144
144
  "name": "SessionId",
145
145
  "output_required": false,
@@ -149,7 +149,7 @@
149
149
  {
150
150
  "disabled": false,
151
151
  "document": "视频转译任务状态",
152
- "example": "",
152
+ "example": "1",
153
153
  "member": "int64",
154
154
  "name": "Status",
155
155
  "output_required": false,
@@ -159,7 +159,7 @@
159
159
  {
160
160
  "disabled": false,
161
161
  "document": "视频转译任务信息",
162
- "example": "",
162
+ "example": "success",
163
163
  "member": "string",
164
164
  "name": "Message",
165
165
  "output_required": false,