tencentcloud-sdk-python-cls 3.1.65__tar.gz → 3.1.70__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.
Files changed (17) hide show
  1. {tencentcloud_sdk_python_cls-3.1.65 → tencentcloud_sdk_python_cls-3.1.70}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_cls-3.1.65 → tencentcloud_sdk_python_cls-3.1.70}/setup.py +1 -1
  3. {tencentcloud_sdk_python_cls-3.1.65 → tencentcloud_sdk_python_cls-3.1.70}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_cls-3.1.65 → tencentcloud_sdk_python_cls-3.1.70}/tencentcloud/cls/v20201016/cls_client.py +20 -0
  5. {tencentcloud_sdk_python_cls-3.1.65 → tencentcloud_sdk_python_cls-3.1.70}/tencentcloud/cls/v20201016/cls_client_async.py +20 -0
  6. {tencentcloud_sdk_python_cls-3.1.65 → tencentcloud_sdk_python_cls-3.1.70}/tencentcloud/cls/v20201016/models.py +1018 -394
  7. {tencentcloud_sdk_python_cls-3.1.65 → tencentcloud_sdk_python_cls-3.1.70}/tencentcloud_sdk_python_cls.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_cls-3.1.70/tencentcloud_sdk_python_cls.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_cls-3.1.65/tencentcloud_sdk_python_cls.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_cls-3.1.65 → tencentcloud_sdk_python_cls-3.1.70}/README.rst +0 -0
  11. {tencentcloud_sdk_python_cls-3.1.65 → tencentcloud_sdk_python_cls-3.1.70}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_cls-3.1.65 → tencentcloud_sdk_python_cls-3.1.70}/tencentcloud/cls/__init__.py +0 -0
  13. {tencentcloud_sdk_python_cls-3.1.65 → tencentcloud_sdk_python_cls-3.1.70}/tencentcloud/cls/v20201016/__init__.py +0 -0
  14. {tencentcloud_sdk_python_cls-3.1.65 → tencentcloud_sdk_python_cls-3.1.70}/tencentcloud/cls/v20201016/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_cls-3.1.65 → tencentcloud_sdk_python_cls-3.1.70}/tencentcloud_sdk_python_cls.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_cls-3.1.65 → tencentcloud_sdk_python_cls-3.1.70}/tencentcloud_sdk_python_cls.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_cls-3.1.65 → tencentcloud_sdk_python_cls-3.1.70}/tencentcloud_sdk_python_cls.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-cls
3
- Version: 3.1.65
3
+ Version: 3.1.70
4
4
  Summary: Tencent Cloud Cls 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.65
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.70
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-cls',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.65,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.70,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Cls SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.65'
17
+ __version__ = '3.1.70'
@@ -95,6 +95,26 @@ class ClsClient(AbstractClient):
95
95
  raise TencentCloudSDKException(type(e).__name__, str(e))
96
96
 
97
97
 
98
+ def ChatCompletions(self, request):
99
+ r"""调用接口,发起一次对话请求。
100
+ 本接口支持智能生成检索分析语句等日志服务AI功能。
101
+ ⚠️注意:通过SSE流式调用此接口时,请务必设置请求域名(Endpoint)为 cls.ai.tencentcloudapi.com。
102
+
103
+ :param request: Request instance for ChatCompletions.
104
+ :type request: :class:`tencentcloud.cls.v20201016.models.ChatCompletionsRequest`
105
+ :rtype: :class:`tencentcloud.cls.v20201016.models.ChatCompletionsResponse`
106
+
107
+ """
108
+ try:
109
+ params = request._serialize()
110
+ return self._call_and_deserialize("ChatCompletions", params, models.ChatCompletionsResponse, headers=request.headers)
111
+ except Exception as e:
112
+ if isinstance(e, TencentCloudSDKException):
113
+ raise
114
+ else:
115
+ raise TencentCloudSDKException(type(e).__name__, str(e))
116
+
117
+
98
118
  def CheckFunction(self, request):
99
119
  r"""本接口用于数据加工DSL函数的语法校验。
100
120
 
@@ -79,6 +79,26 @@ class ClsClient(AbstractClient):
79
79
 
80
80
  return await self.call_and_deserialize(**kwargs)
81
81
 
82
+ async def ChatCompletions(
83
+ self,
84
+ request: models.ChatCompletionsRequest,
85
+ opts: Dict = None,
86
+ ) -> models.ChatCompletionsResponse:
87
+ """
88
+ 调用接口,发起一次对话请求。
89
+ 本接口支持智能生成检索分析语句等日志服务AI功能。
90
+ ⚠️注意:通过SSE流式调用此接口时,请务必设置请求域名(Endpoint)为 cls.ai.tencentcloudapi.com。
91
+ """
92
+
93
+ kwargs = {}
94
+ kwargs["action"] = "ChatCompletions"
95
+ kwargs["params"] = request._serialize()
96
+ kwargs["resp_cls"] = models.ChatCompletionsResponse
97
+ kwargs["headers"] = request.headers
98
+ kwargs["opts"] = opts or {}
99
+
100
+ return await self.call_and_deserialize(**kwargs)
101
+
82
102
  async def CheckFunction(
83
103
  self,
84
104
  request: models.CheckFunctionRequest,