tencentcloud-sdk-python-es 3.1.164__tar.gz → 3.1.171__tar.gz
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.
- {tencentcloud_sdk_python_es-3.1.164 → tencentcloud_sdk_python_es-3.1.171}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_es-3.1.164 → tencentcloud_sdk_python_es-3.1.171}/setup.py +1 -1
- {tencentcloud_sdk_python_es-3.1.164 → tencentcloud_sdk_python_es-3.1.171}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_es-3.1.164 → tencentcloud_sdk_python_es-3.1.171}/tencentcloud/es/v20180416/models.py +45 -30
- {tencentcloud_sdk_python_es-3.1.164 → tencentcloud_sdk_python_es-3.1.171}/tencentcloud/es/v20250101/models.py +28 -28
- {tencentcloud_sdk_python_es-3.1.164 → tencentcloud_sdk_python_es-3.1.171}/tencentcloud_sdk_python_es.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_es-3.1.171/tencentcloud_sdk_python_es.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_es-3.1.164/tencentcloud_sdk_python_es.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_es-3.1.164 → tencentcloud_sdk_python_es-3.1.171}/README.rst +0 -0
- {tencentcloud_sdk_python_es-3.1.164 → tencentcloud_sdk_python_es-3.1.171}/setup.cfg +0 -0
- {tencentcloud_sdk_python_es-3.1.164 → tencentcloud_sdk_python_es-3.1.171}/tencentcloud/es/__init__.py +0 -0
- {tencentcloud_sdk_python_es-3.1.164 → tencentcloud_sdk_python_es-3.1.171}/tencentcloud/es/v20180416/__init__.py +0 -0
- {tencentcloud_sdk_python_es-3.1.164 → tencentcloud_sdk_python_es-3.1.171}/tencentcloud/es/v20180416/errorcodes.py +0 -0
- {tencentcloud_sdk_python_es-3.1.164 → tencentcloud_sdk_python_es-3.1.171}/tencentcloud/es/v20180416/es_client.py +0 -0
- {tencentcloud_sdk_python_es-3.1.164 → tencentcloud_sdk_python_es-3.1.171}/tencentcloud/es/v20180416/es_client_async.py +0 -0
- {tencentcloud_sdk_python_es-3.1.164 → tencentcloud_sdk_python_es-3.1.171}/tencentcloud/es/v20250101/__init__.py +0 -0
- {tencentcloud_sdk_python_es-3.1.164 → tencentcloud_sdk_python_es-3.1.171}/tencentcloud/es/v20250101/errorcodes.py +0 -0
- {tencentcloud_sdk_python_es-3.1.164 → tencentcloud_sdk_python_es-3.1.171}/tencentcloud/es/v20250101/es_client.py +0 -0
- {tencentcloud_sdk_python_es-3.1.164 → tencentcloud_sdk_python_es-3.1.171}/tencentcloud/es/v20250101/es_client_async.py +0 -0
- {tencentcloud_sdk_python_es-3.1.164 → tencentcloud_sdk_python_es-3.1.171}/tencentcloud_sdk_python_es.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_es-3.1.164 → tencentcloud_sdk_python_es-3.1.171}/tencentcloud_sdk_python_es.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_es-3.1.164 → tencentcloud_sdk_python_es-3.1.171}/tencentcloud_sdk_python_es.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-es
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.171
|
|
4
4
|
Summary: Tencent Cloud Es SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.171
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-es',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.171,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Es SDK for Python',
|
|
@@ -1221,36 +1221,38 @@ class CollectorOutputInstance(AbstractModel):
|
|
|
1221
1221
|
|
|
1222
1222
|
def __init__(self):
|
|
1223
1223
|
r"""
|
|
1224
|
-
:param _Type:
|
|
1224
|
+
:param _Type: <p>采集器输出的实例类型(支持elasticsearch、logstash)</p>
|
|
1225
1225
|
:type Type: str
|
|
1226
|
-
:param _InstanceId:
|
|
1226
|
+
:param _InstanceId: <p>采集器输出的实例ID</p>
|
|
1227
1227
|
:type InstanceId: str
|
|
1228
|
-
:param _ESUserName:
|
|
1228
|
+
:param _ESUserName: <p>采集器输出到的ES实例的用户名</p>
|
|
1229
1229
|
:type ESUserName: str
|
|
1230
|
-
:param _ESUserPasswd:
|
|
1230
|
+
:param _ESUserPasswd: <p>采集器输出到的ES实例的密码</p>
|
|
1231
1231
|
:type ESUserPasswd: str
|
|
1232
|
-
:param _EnableMonitoring:
|
|
1232
|
+
:param _EnableMonitoring: <p>采集器输出到ES实例时,是否开启监控(1为开启,0为不开启,默认为0)</p>
|
|
1233
1233
|
:type EnableMonitoring: int
|
|
1234
|
-
:param _EnableDashboard:
|
|
1234
|
+
:param _EnableDashboard: <p>采集器输出到ES实例时,是否开启自动在kibana中生成Dashboard(1为开启,0为不开启,默认为0)</p>
|
|
1235
1235
|
:type EnableDashboard: int
|
|
1236
|
-
:param _KafkaEndpoint: Ckafka实例的vip
|
|
1236
|
+
:param _KafkaEndpoint: <p>Ckafka实例的vip</p>
|
|
1237
1237
|
:type KafkaEndpoint: str
|
|
1238
|
-
:param _KafkaTopic: Ckafka实例中的Topic
|
|
1238
|
+
:param _KafkaTopic: <p>Ckafka实例中的Topic</p>
|
|
1239
1239
|
:type KafkaTopic: str
|
|
1240
|
-
:param _KafkaVersion: Ckafka
|
|
1240
|
+
:param _KafkaVersion: <p>Ckafka实例的版本号</p>
|
|
1241
1241
|
:type KafkaVersion: str
|
|
1242
|
-
:param _SesTopicId: topic id
|
|
1242
|
+
:param _SesTopicId: <p>topic id</p>
|
|
1243
1243
|
:type SesTopicId: str
|
|
1244
|
-
:param _SesTopicName: topic name
|
|
1244
|
+
:param _SesTopicName: <p>topic name</p>
|
|
1245
1245
|
:type SesTopicName: str
|
|
1246
|
-
:param _SesTopicAddress: topic address
|
|
1246
|
+
:param _SesTopicAddress: <p>topic address</p>
|
|
1247
1247
|
:type SesTopicAddress: str
|
|
1248
|
-
:param _SesTopicUserName:
|
|
1248
|
+
:param _SesTopicUserName: <p>/</p>
|
|
1249
1249
|
:type SesTopicUserName: str
|
|
1250
|
-
:param _SesTopicPasswd:
|
|
1250
|
+
:param _SesTopicPasswd: <p>/</p>
|
|
1251
1251
|
:type SesTopicPasswd: str
|
|
1252
|
-
:param _LogstashListenPort:
|
|
1252
|
+
:param _LogstashListenPort: <p>/</p>
|
|
1253
1253
|
:type LogstashListenPort: int
|
|
1254
|
+
:param _SesSpaceId: <p>serverless 的 spaceid</p>
|
|
1255
|
+
:type SesSpaceId: str
|
|
1254
1256
|
"""
|
|
1255
1257
|
self._Type = None
|
|
1256
1258
|
self._InstanceId = None
|
|
@@ -1267,10 +1269,11 @@ class CollectorOutputInstance(AbstractModel):
|
|
|
1267
1269
|
self._SesTopicUserName = None
|
|
1268
1270
|
self._SesTopicPasswd = None
|
|
1269
1271
|
self._LogstashListenPort = None
|
|
1272
|
+
self._SesSpaceId = None
|
|
1270
1273
|
|
|
1271
1274
|
@property
|
|
1272
1275
|
def Type(self):
|
|
1273
|
-
r"""
|
|
1276
|
+
r"""<p>采集器输出的实例类型(支持elasticsearch、logstash)</p>
|
|
1274
1277
|
:rtype: str
|
|
1275
1278
|
"""
|
|
1276
1279
|
return self._Type
|
|
@@ -1281,7 +1284,7 @@ class CollectorOutputInstance(AbstractModel):
|
|
|
1281
1284
|
|
|
1282
1285
|
@property
|
|
1283
1286
|
def InstanceId(self):
|
|
1284
|
-
r"""
|
|
1287
|
+
r"""<p>采集器输出的实例ID</p>
|
|
1285
1288
|
:rtype: str
|
|
1286
1289
|
"""
|
|
1287
1290
|
return self._InstanceId
|
|
@@ -1292,7 +1295,7 @@ class CollectorOutputInstance(AbstractModel):
|
|
|
1292
1295
|
|
|
1293
1296
|
@property
|
|
1294
1297
|
def ESUserName(self):
|
|
1295
|
-
r"""
|
|
1298
|
+
r"""<p>采集器输出到的ES实例的用户名</p>
|
|
1296
1299
|
:rtype: str
|
|
1297
1300
|
"""
|
|
1298
1301
|
return self._ESUserName
|
|
@@ -1303,7 +1306,7 @@ class CollectorOutputInstance(AbstractModel):
|
|
|
1303
1306
|
|
|
1304
1307
|
@property
|
|
1305
1308
|
def ESUserPasswd(self):
|
|
1306
|
-
r"""
|
|
1309
|
+
r"""<p>采集器输出到的ES实例的密码</p>
|
|
1307
1310
|
:rtype: str
|
|
1308
1311
|
"""
|
|
1309
1312
|
return self._ESUserPasswd
|
|
@@ -1314,7 +1317,7 @@ class CollectorOutputInstance(AbstractModel):
|
|
|
1314
1317
|
|
|
1315
1318
|
@property
|
|
1316
1319
|
def EnableMonitoring(self):
|
|
1317
|
-
r"""
|
|
1320
|
+
r"""<p>采集器输出到ES实例时,是否开启监控(1为开启,0为不开启,默认为0)</p>
|
|
1318
1321
|
:rtype: int
|
|
1319
1322
|
"""
|
|
1320
1323
|
return self._EnableMonitoring
|
|
@@ -1325,7 +1328,7 @@ class CollectorOutputInstance(AbstractModel):
|
|
|
1325
1328
|
|
|
1326
1329
|
@property
|
|
1327
1330
|
def EnableDashboard(self):
|
|
1328
|
-
r"""
|
|
1331
|
+
r"""<p>采集器输出到ES实例时,是否开启自动在kibana中生成Dashboard(1为开启,0为不开启,默认为0)</p>
|
|
1329
1332
|
:rtype: int
|
|
1330
1333
|
"""
|
|
1331
1334
|
return self._EnableDashboard
|
|
@@ -1336,7 +1339,7 @@ class CollectorOutputInstance(AbstractModel):
|
|
|
1336
1339
|
|
|
1337
1340
|
@property
|
|
1338
1341
|
def KafkaEndpoint(self):
|
|
1339
|
-
r"""Ckafka实例的vip
|
|
1342
|
+
r"""<p>Ckafka实例的vip</p>
|
|
1340
1343
|
:rtype: str
|
|
1341
1344
|
"""
|
|
1342
1345
|
return self._KafkaEndpoint
|
|
@@ -1347,7 +1350,7 @@ class CollectorOutputInstance(AbstractModel):
|
|
|
1347
1350
|
|
|
1348
1351
|
@property
|
|
1349
1352
|
def KafkaTopic(self):
|
|
1350
|
-
r"""Ckafka实例中的Topic
|
|
1353
|
+
r"""<p>Ckafka实例中的Topic</p>
|
|
1351
1354
|
:rtype: str
|
|
1352
1355
|
"""
|
|
1353
1356
|
return self._KafkaTopic
|
|
@@ -1358,7 +1361,7 @@ class CollectorOutputInstance(AbstractModel):
|
|
|
1358
1361
|
|
|
1359
1362
|
@property
|
|
1360
1363
|
def KafkaVersion(self):
|
|
1361
|
-
r"""Ckafka
|
|
1364
|
+
r"""<p>Ckafka实例的版本号</p>
|
|
1362
1365
|
:rtype: str
|
|
1363
1366
|
"""
|
|
1364
1367
|
return self._KafkaVersion
|
|
@@ -1369,7 +1372,7 @@ class CollectorOutputInstance(AbstractModel):
|
|
|
1369
1372
|
|
|
1370
1373
|
@property
|
|
1371
1374
|
def SesTopicId(self):
|
|
1372
|
-
r"""topic id
|
|
1375
|
+
r"""<p>topic id</p>
|
|
1373
1376
|
:rtype: str
|
|
1374
1377
|
"""
|
|
1375
1378
|
return self._SesTopicId
|
|
@@ -1380,7 +1383,7 @@ class CollectorOutputInstance(AbstractModel):
|
|
|
1380
1383
|
|
|
1381
1384
|
@property
|
|
1382
1385
|
def SesTopicName(self):
|
|
1383
|
-
r"""topic name
|
|
1386
|
+
r"""<p>topic name</p>
|
|
1384
1387
|
:rtype: str
|
|
1385
1388
|
"""
|
|
1386
1389
|
return self._SesTopicName
|
|
@@ -1391,7 +1394,7 @@ class CollectorOutputInstance(AbstractModel):
|
|
|
1391
1394
|
|
|
1392
1395
|
@property
|
|
1393
1396
|
def SesTopicAddress(self):
|
|
1394
|
-
r"""topic address
|
|
1397
|
+
r"""<p>topic address</p>
|
|
1395
1398
|
:rtype: str
|
|
1396
1399
|
"""
|
|
1397
1400
|
return self._SesTopicAddress
|
|
@@ -1402,7 +1405,7 @@ class CollectorOutputInstance(AbstractModel):
|
|
|
1402
1405
|
|
|
1403
1406
|
@property
|
|
1404
1407
|
def SesTopicUserName(self):
|
|
1405
|
-
r"""
|
|
1408
|
+
r"""<p>/</p>
|
|
1406
1409
|
:rtype: str
|
|
1407
1410
|
"""
|
|
1408
1411
|
return self._SesTopicUserName
|
|
@@ -1413,7 +1416,7 @@ class CollectorOutputInstance(AbstractModel):
|
|
|
1413
1416
|
|
|
1414
1417
|
@property
|
|
1415
1418
|
def SesTopicPasswd(self):
|
|
1416
|
-
r"""
|
|
1419
|
+
r"""<p>/</p>
|
|
1417
1420
|
:rtype: str
|
|
1418
1421
|
"""
|
|
1419
1422
|
return self._SesTopicPasswd
|
|
@@ -1424,7 +1427,7 @@ class CollectorOutputInstance(AbstractModel):
|
|
|
1424
1427
|
|
|
1425
1428
|
@property
|
|
1426
1429
|
def LogstashListenPort(self):
|
|
1427
|
-
r"""
|
|
1430
|
+
r"""<p>/</p>
|
|
1428
1431
|
:rtype: int
|
|
1429
1432
|
"""
|
|
1430
1433
|
return self._LogstashListenPort
|
|
@@ -1433,6 +1436,17 @@ class CollectorOutputInstance(AbstractModel):
|
|
|
1433
1436
|
def LogstashListenPort(self, LogstashListenPort):
|
|
1434
1437
|
self._LogstashListenPort = LogstashListenPort
|
|
1435
1438
|
|
|
1439
|
+
@property
|
|
1440
|
+
def SesSpaceId(self):
|
|
1441
|
+
r"""<p>serverless 的 spaceid</p>
|
|
1442
|
+
:rtype: str
|
|
1443
|
+
"""
|
|
1444
|
+
return self._SesSpaceId
|
|
1445
|
+
|
|
1446
|
+
@SesSpaceId.setter
|
|
1447
|
+
def SesSpaceId(self, SesSpaceId):
|
|
1448
|
+
self._SesSpaceId = SesSpaceId
|
|
1449
|
+
|
|
1436
1450
|
|
|
1437
1451
|
def _deserialize(self, params):
|
|
1438
1452
|
self._Type = params.get("Type")
|
|
@@ -1450,6 +1464,7 @@ class CollectorOutputInstance(AbstractModel):
|
|
|
1450
1464
|
self._SesTopicUserName = params.get("SesTopicUserName")
|
|
1451
1465
|
self._SesTopicPasswd = params.get("SesTopicPasswd")
|
|
1452
1466
|
self._LogstashListenPort = params.get("LogstashListenPort")
|
|
1467
|
+
self._SesSpaceId = params.get("SesSpaceId")
|
|
1453
1468
|
memeber_set = set(params.keys())
|
|
1454
1469
|
for name, value in vars(self).items():
|
|
1455
1470
|
property_name = name[1:]
|
|
@@ -25,25 +25,25 @@ class ChatCompletionsRequest(AbstractModel):
|
|
|
25
25
|
|
|
26
26
|
def __init__(self):
|
|
27
27
|
r"""
|
|
28
|
-
:param _Messages:
|
|
28
|
+
:param _Messages: <p>会话内容,按对话时间从旧到新在数组中排列,长度受模型窗口大小限制。</p>
|
|
29
29
|
:type Messages: list of Message
|
|
30
|
-
:param _ModelName:
|
|
30
|
+
:param _ModelName: <p>模型名称,可选模型列表:hunyuan-turbo,hunyuan-large,hunyuan-large-longcontext,hunyuan-standard,hunyuan-standard-256K,deepseek-r1,deepseek-v3,deepseek-r1-distill-qwen-32b。</p>
|
|
31
31
|
:type ModelName: str
|
|
32
|
-
:param _Stream:
|
|
32
|
+
:param _Stream: <p>是否以流式接口的形式返回数据,默认true。</p>
|
|
33
33
|
:type Stream: bool
|
|
34
|
-
:param _TopP:
|
|
34
|
+
:param _TopP: <p>取值区间为[0.0, 1.0], 非必要不建议使用, 不合理的取值会影响效果 。</p>
|
|
35
35
|
:type TopP: float
|
|
36
|
-
:param _Temperature:
|
|
36
|
+
:param _Temperature: <p>取值区间为[0.0, 2.0], 非必要不建议使用, 不合理的取值会影响效果 。</p>
|
|
37
37
|
:type Temperature: float
|
|
38
|
-
:param _OnlineSearch:
|
|
38
|
+
:param _OnlineSearch: <p>是否开启联网搜索。默认为 false。</p>
|
|
39
39
|
:type OnlineSearch: bool
|
|
40
|
-
:param _OnlineSearchOptions:
|
|
40
|
+
:param _OnlineSearchOptions: <p>当 OnlineSearch 为 true 时,指定的搜索引擎,默认为 bing。</p>
|
|
41
41
|
:type OnlineSearchOptions: :class:`tencentcloud.es.v20250101.models.OnlineSearchOptions`
|
|
42
|
-
:param _Tools:
|
|
42
|
+
:param _Tools: <p>可调用的工具列表,当前支持模型:hunyuan-turbo, deepseek-v3。</p>
|
|
43
43
|
:type Tools: list of Tool
|
|
44
|
-
:param _ToolChoice:
|
|
44
|
+
:param _ToolChoice: <p>工具使用选项,可选值包括 none、auto、custom。说明:1. 仅对 hunyuan-turbo、deepseek-v3 模型生效。2. none:不调用工具;auto:模型自行选择生成回复或调用工具;custom:强制模型调用指定的工具。3. 未设置时,默认值为auto</p>
|
|
45
45
|
:type ToolChoice: str
|
|
46
|
-
:param _CustomTool:
|
|
46
|
+
:param _CustomTool: <p>强制模型调用指定的工具,当参数ToolChoice为custom时,此参数为必填</p>
|
|
47
47
|
:type CustomTool: :class:`tencentcloud.es.v20250101.models.Tool`
|
|
48
48
|
"""
|
|
49
49
|
self._Messages = None
|
|
@@ -59,7 +59,7 @@ class ChatCompletionsRequest(AbstractModel):
|
|
|
59
59
|
|
|
60
60
|
@property
|
|
61
61
|
def Messages(self):
|
|
62
|
-
r"""
|
|
62
|
+
r"""<p>会话内容,按对话时间从旧到新在数组中排列,长度受模型窗口大小限制。</p>
|
|
63
63
|
:rtype: list of Message
|
|
64
64
|
"""
|
|
65
65
|
return self._Messages
|
|
@@ -70,7 +70,7 @@ class ChatCompletionsRequest(AbstractModel):
|
|
|
70
70
|
|
|
71
71
|
@property
|
|
72
72
|
def ModelName(self):
|
|
73
|
-
r"""
|
|
73
|
+
r"""<p>模型名称,可选模型列表:hunyuan-turbo,hunyuan-large,hunyuan-large-longcontext,hunyuan-standard,hunyuan-standard-256K,deepseek-r1,deepseek-v3,deepseek-r1-distill-qwen-32b。</p>
|
|
74
74
|
:rtype: str
|
|
75
75
|
"""
|
|
76
76
|
return self._ModelName
|
|
@@ -81,7 +81,7 @@ class ChatCompletionsRequest(AbstractModel):
|
|
|
81
81
|
|
|
82
82
|
@property
|
|
83
83
|
def Stream(self):
|
|
84
|
-
r"""
|
|
84
|
+
r"""<p>是否以流式接口的形式返回数据,默认true。</p>
|
|
85
85
|
:rtype: bool
|
|
86
86
|
"""
|
|
87
87
|
return self._Stream
|
|
@@ -92,7 +92,7 @@ class ChatCompletionsRequest(AbstractModel):
|
|
|
92
92
|
|
|
93
93
|
@property
|
|
94
94
|
def TopP(self):
|
|
95
|
-
r"""
|
|
95
|
+
r"""<p>取值区间为[0.0, 1.0], 非必要不建议使用, 不合理的取值会影响效果 。</p>
|
|
96
96
|
:rtype: float
|
|
97
97
|
"""
|
|
98
98
|
return self._TopP
|
|
@@ -103,7 +103,7 @@ class ChatCompletionsRequest(AbstractModel):
|
|
|
103
103
|
|
|
104
104
|
@property
|
|
105
105
|
def Temperature(self):
|
|
106
|
-
r"""
|
|
106
|
+
r"""<p>取值区间为[0.0, 2.0], 非必要不建议使用, 不合理的取值会影响效果 。</p>
|
|
107
107
|
:rtype: float
|
|
108
108
|
"""
|
|
109
109
|
return self._Temperature
|
|
@@ -114,7 +114,7 @@ class ChatCompletionsRequest(AbstractModel):
|
|
|
114
114
|
|
|
115
115
|
@property
|
|
116
116
|
def OnlineSearch(self):
|
|
117
|
-
r"""
|
|
117
|
+
r"""<p>是否开启联网搜索。默认为 false。</p>
|
|
118
118
|
:rtype: bool
|
|
119
119
|
"""
|
|
120
120
|
return self._OnlineSearch
|
|
@@ -125,7 +125,7 @@ class ChatCompletionsRequest(AbstractModel):
|
|
|
125
125
|
|
|
126
126
|
@property
|
|
127
127
|
def OnlineSearchOptions(self):
|
|
128
|
-
r"""
|
|
128
|
+
r"""<p>当 OnlineSearch 为 true 时,指定的搜索引擎,默认为 bing。</p>
|
|
129
129
|
:rtype: :class:`tencentcloud.es.v20250101.models.OnlineSearchOptions`
|
|
130
130
|
"""
|
|
131
131
|
return self._OnlineSearchOptions
|
|
@@ -136,7 +136,7 @@ class ChatCompletionsRequest(AbstractModel):
|
|
|
136
136
|
|
|
137
137
|
@property
|
|
138
138
|
def Tools(self):
|
|
139
|
-
r"""
|
|
139
|
+
r"""<p>可调用的工具列表,当前支持模型:hunyuan-turbo, deepseek-v3。</p>
|
|
140
140
|
:rtype: list of Tool
|
|
141
141
|
"""
|
|
142
142
|
return self._Tools
|
|
@@ -147,7 +147,7 @@ class ChatCompletionsRequest(AbstractModel):
|
|
|
147
147
|
|
|
148
148
|
@property
|
|
149
149
|
def ToolChoice(self):
|
|
150
|
-
r"""
|
|
150
|
+
r"""<p>工具使用选项,可选值包括 none、auto、custom。说明:1. 仅对 hunyuan-turbo、deepseek-v3 模型生效。2. none:不调用工具;auto:模型自行选择生成回复或调用工具;custom:强制模型调用指定的工具。3. 未设置时,默认值为auto</p>
|
|
151
151
|
:rtype: str
|
|
152
152
|
"""
|
|
153
153
|
return self._ToolChoice
|
|
@@ -158,7 +158,7 @@ class ChatCompletionsRequest(AbstractModel):
|
|
|
158
158
|
|
|
159
159
|
@property
|
|
160
160
|
def CustomTool(self):
|
|
161
|
-
r"""
|
|
161
|
+
r"""<p>强制模型调用指定的工具,当参数ToolChoice为custom时,此参数为必填</p>
|
|
162
162
|
:rtype: :class:`tencentcloud.es.v20250101.models.Tool`
|
|
163
163
|
"""
|
|
164
164
|
return self._CustomTool
|
|
@@ -210,13 +210,13 @@ class ChatCompletionsResponse(AbstractModel):
|
|
|
210
210
|
|
|
211
211
|
def __init__(self):
|
|
212
212
|
r"""
|
|
213
|
-
:param _Id:
|
|
213
|
+
:param _Id: <p>此次请求的id</p>
|
|
214
214
|
:type Id: str
|
|
215
|
-
:param _Choices:
|
|
215
|
+
:param _Choices: <p>回复内容</p>
|
|
216
216
|
:type Choices: list of Choice
|
|
217
|
-
:param _Usage: token
|
|
217
|
+
:param _Usage: <p>token使用量</p>
|
|
218
218
|
:type Usage: :class:`tencentcloud.es.v20250101.models.TokenUsage`
|
|
219
|
-
:param _OnlineSearchContent:
|
|
219
|
+
:param _OnlineSearchContent: <p>联网搜索结果。</p>
|
|
220
220
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
221
221
|
:type OnlineSearchContent: list of WebContent
|
|
222
222
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
|
|
@@ -230,7 +230,7 @@ class ChatCompletionsResponse(AbstractModel):
|
|
|
230
230
|
|
|
231
231
|
@property
|
|
232
232
|
def Id(self):
|
|
233
|
-
r"""
|
|
233
|
+
r"""<p>此次请求的id</p>
|
|
234
234
|
:rtype: str
|
|
235
235
|
"""
|
|
236
236
|
return self._Id
|
|
@@ -241,7 +241,7 @@ class ChatCompletionsResponse(AbstractModel):
|
|
|
241
241
|
|
|
242
242
|
@property
|
|
243
243
|
def Choices(self):
|
|
244
|
-
r"""
|
|
244
|
+
r"""<p>回复内容</p>
|
|
245
245
|
:rtype: list of Choice
|
|
246
246
|
"""
|
|
247
247
|
return self._Choices
|
|
@@ -252,7 +252,7 @@ class ChatCompletionsResponse(AbstractModel):
|
|
|
252
252
|
|
|
253
253
|
@property
|
|
254
254
|
def Usage(self):
|
|
255
|
-
r"""token
|
|
255
|
+
r"""<p>token使用量</p>
|
|
256
256
|
:rtype: :class:`tencentcloud.es.v20250101.models.TokenUsage`
|
|
257
257
|
"""
|
|
258
258
|
return self._Usage
|
|
@@ -263,7 +263,7 @@ class ChatCompletionsResponse(AbstractModel):
|
|
|
263
263
|
|
|
264
264
|
@property
|
|
265
265
|
def OnlineSearchContent(self):
|
|
266
|
-
r"""
|
|
266
|
+
r"""<p>联网搜索结果。</p>
|
|
267
267
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
268
268
|
:rtype: list of WebContent
|
|
269
269
|
"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-es
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.171
|
|
4
4
|
Summary: Tencent Cloud Es SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.171
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.171
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.164
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|