tencentcloud-sdk-python-cls 3.1.78__tar.gz → 3.1.79__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_cls-3.1.78 → tencentcloud_sdk_python_cls-3.1.79}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_cls-3.1.78 → tencentcloud_sdk_python_cls-3.1.79}/setup.py +1 -1
- {tencentcloud_sdk_python_cls-3.1.78 → tencentcloud_sdk_python_cls-3.1.79}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_cls-3.1.78 → tencentcloud_sdk_python_cls-3.1.79}/tencentcloud/cls/v20201016/cls_client.py +1 -1
- {tencentcloud_sdk_python_cls-3.1.78 → tencentcloud_sdk_python_cls-3.1.79}/tencentcloud/cls/v20201016/cls_client_async.py +1 -1
- {tencentcloud_sdk_python_cls-3.1.78 → tencentcloud_sdk_python_cls-3.1.79}/tencentcloud/cls/v20201016/models.py +4 -4
- {tencentcloud_sdk_python_cls-3.1.78 → tencentcloud_sdk_python_cls-3.1.79}/tencentcloud_sdk_python_cls.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_cls-3.1.79/tencentcloud_sdk_python_cls.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_cls-3.1.78/tencentcloud_sdk_python_cls.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_cls-3.1.78 → tencentcloud_sdk_python_cls-3.1.79}/README.rst +0 -0
- {tencentcloud_sdk_python_cls-3.1.78 → tencentcloud_sdk_python_cls-3.1.79}/setup.cfg +0 -0
- {tencentcloud_sdk_python_cls-3.1.78 → tencentcloud_sdk_python_cls-3.1.79}/tencentcloud/cls/__init__.py +0 -0
- {tencentcloud_sdk_python_cls-3.1.78 → tencentcloud_sdk_python_cls-3.1.79}/tencentcloud/cls/v20201016/__init__.py +0 -0
- {tencentcloud_sdk_python_cls-3.1.78 → tencentcloud_sdk_python_cls-3.1.79}/tencentcloud/cls/v20201016/errorcodes.py +0 -0
- {tencentcloud_sdk_python_cls-3.1.78 → tencentcloud_sdk_python_cls-3.1.79}/tencentcloud_sdk_python_cls.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_cls-3.1.78 → tencentcloud_sdk_python_cls-3.1.79}/tencentcloud_sdk_python_cls.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_cls-3.1.78 → tencentcloud_sdk_python_cls-3.1.79}/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.
|
|
3
|
+
Version: 3.1.79
|
|
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.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.79
|
|
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.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.79,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Cls SDK for Python',
|
|
@@ -98,7 +98,7 @@ class ClsClient(AbstractClient):
|
|
|
98
98
|
def ChatCompletions(self, request):
|
|
99
99
|
r"""调用接口,发起一次对话请求。
|
|
100
100
|
本接口支持智能生成检索分析语句等日志服务AI功能。
|
|
101
|
-
⚠️注意:通过SSE流式调用此接口时,请务必设置请求域名(Endpoint)为 cls.ai.tencentcloudapi.com
|
|
101
|
+
⚠️注意:通过SSE流式调用此接口时,请务必设置请求域名(Endpoint)为 cls.ai.tencentcloudapi.com (VPC内网环境可配置 cls.ai.internal.tencentcloudapi.com)。
|
|
102
102
|
|
|
103
103
|
:param request: Request instance for ChatCompletions.
|
|
104
104
|
:type request: :class:`tencentcloud.cls.v20201016.models.ChatCompletionsRequest`
|
|
@@ -87,7 +87,7 @@ class ClsClient(AbstractClient):
|
|
|
87
87
|
"""
|
|
88
88
|
调用接口,发起一次对话请求。
|
|
89
89
|
本接口支持智能生成检索分析语句等日志服务AI功能。
|
|
90
|
-
⚠️注意:通过SSE流式调用此接口时,请务必设置请求域名(Endpoint)为 cls.ai.tencentcloudapi.com
|
|
90
|
+
⚠️注意:通过SSE流式调用此接口时,请务必设置请求域名(Endpoint)为 cls.ai.tencentcloudapi.com (VPC内网环境可配置 cls.ai.internal.tencentcloudapi.com)。
|
|
91
91
|
"""
|
|
92
92
|
|
|
93
93
|
kwargs = {}
|
|
@@ -2826,9 +2826,9 @@ class ChatCompletionsRequest(AbstractModel):
|
|
|
2826
2826
|
:type Model: str
|
|
2827
2827
|
:param _Messages: <p>聊天上下文信息。<br>说明:</p><ol><li>长度最多为 11 (5轮历史会话 + user新提问) ,按对话时间从旧到新在数组中排列。超出此长度会丢弃旧会话数据。</li><li>Message.Role 可选值:user、assistant。<br>user 和 assistant 需交替出现,以 user 提问开始,user 提问结束,Content 不能为空。Role 的顺序示例:[user assistant user assistant user ...]。</li></ol>
|
|
2828
2828
|
:type Messages: list of Message
|
|
2829
|
-
:param _Stream: <p>流式调用开关。<br>说明:</p><ol><li>未传值时默认为非流式调用(false)。</li><li>流式调用时以 SSE 协议增量返回结果(返回值取 Choices[n].Delta 中的值,需要拼接增量数据才能获得完整结果)。</li><li>非流式调用时:<br>调用方式与普通 HTTP 请求无异。<br>接口响应耗时较长,如需更低时延建议设置为 true。<br>只返回一次最终结果(返回值取 Choices[n].Message 中的值)。</li></ol><p>注意:</p><ol><li>通过 SDK 调用时,流式和非流式调用需用不同的方式获取返回值,具体参考 SDK 中的注释或示例(在各语言 SDK 代码仓库的 examples/
|
|
2829
|
+
:param _Stream: <p>流式调用开关。<br>说明:</p><ol><li>未传值时默认为非流式调用(false)。</li><li>流式调用时以 SSE 协议增量返回结果(返回值取 Choices[n].Delta 中的值,需要拼接增量数据才能获得完整结果)。</li><li>非流式调用时:<br>调用方式与普通 HTTP 请求无异。<br>接口响应耗时较长,如需更低时延建议设置为 true。<br>只返回一次最终结果(返回值取 Choices[n].Message 中的值)。</li></ol><p>注意:</p><ol><li>通过 SDK 调用时,流式和非流式调用需用不同的方式获取返回值,具体参考 SDK 中的注释或示例(在各语言 SDK 代码仓库的 examples/cls/v20201016/ 目录中)。</li><li>可能会出现部分内容已输出,但中间某一段响应中的 FinishReason 值为 sensitive,此时说明安全审核未通过。如果业务场景有实时文字上屏的需求,需要自行撤回已上屏的内容,并建议自定义替换为一条提示语,如 “这个问题我不方便回答,不如我们换个话题试试”,以保障终端体验。</li></ol>
|
|
2830
2830
|
:type Stream: bool
|
|
2831
|
-
:param _Metadata: <p>额外元数据信息。例如:[{"Key":"topic_id","Value":"xxxxxxxx-xxxx"},{"Key":"topic_region","Value":"ap-guangzhou"}]</p>
|
|
2831
|
+
:param _Metadata: <p>额外元数据信息。例如:[{"Key":"topic_id","Value":"xxxxxxxx-xxxx"},{"Key":"topic_region","Value":"ap-guangzhou"}]</p><p>建议按照示例传递元数据信息,否则可能造成结果不准确。例如 text2sql,不传 topic_id, topic_region,将导致无法根据日志主题索引生成准确的检索语句。</p>
|
|
2832
2832
|
:type Metadata: list of MetadataItem
|
|
2833
2833
|
"""
|
|
2834
2834
|
self._Model = None
|
|
@@ -2860,7 +2860,7 @@ class ChatCompletionsRequest(AbstractModel):
|
|
|
2860
2860
|
|
|
2861
2861
|
@property
|
|
2862
2862
|
def Stream(self):
|
|
2863
|
-
r"""<p>流式调用开关。<br>说明:</p><ol><li>未传值时默认为非流式调用(false)。</li><li>流式调用时以 SSE 协议增量返回结果(返回值取 Choices[n].Delta 中的值,需要拼接增量数据才能获得完整结果)。</li><li>非流式调用时:<br>调用方式与普通 HTTP 请求无异。<br>接口响应耗时较长,如需更低时延建议设置为 true。<br>只返回一次最终结果(返回值取 Choices[n].Message 中的值)。</li></ol><p>注意:</p><ol><li>通过 SDK 调用时,流式和非流式调用需用不同的方式获取返回值,具体参考 SDK 中的注释或示例(在各语言 SDK 代码仓库的 examples/
|
|
2863
|
+
r"""<p>流式调用开关。<br>说明:</p><ol><li>未传值时默认为非流式调用(false)。</li><li>流式调用时以 SSE 协议增量返回结果(返回值取 Choices[n].Delta 中的值,需要拼接增量数据才能获得完整结果)。</li><li>非流式调用时:<br>调用方式与普通 HTTP 请求无异。<br>接口响应耗时较长,如需更低时延建议设置为 true。<br>只返回一次最终结果(返回值取 Choices[n].Message 中的值)。</li></ol><p>注意:</p><ol><li>通过 SDK 调用时,流式和非流式调用需用不同的方式获取返回值,具体参考 SDK 中的注释或示例(在各语言 SDK 代码仓库的 examples/cls/v20201016/ 目录中)。</li><li>可能会出现部分内容已输出,但中间某一段响应中的 FinishReason 值为 sensitive,此时说明安全审核未通过。如果业务场景有实时文字上屏的需求,需要自行撤回已上屏的内容,并建议自定义替换为一条提示语,如 “这个问题我不方便回答,不如我们换个话题试试”,以保障终端体验。</li></ol>
|
|
2864
2864
|
:rtype: bool
|
|
2865
2865
|
"""
|
|
2866
2866
|
return self._Stream
|
|
@@ -2871,7 +2871,7 @@ class ChatCompletionsRequest(AbstractModel):
|
|
|
2871
2871
|
|
|
2872
2872
|
@property
|
|
2873
2873
|
def Metadata(self):
|
|
2874
|
-
r"""<p>额外元数据信息。例如:[{"Key":"topic_id","Value":"xxxxxxxx-xxxx"},{"Key":"topic_region","Value":"ap-guangzhou"}]</p>
|
|
2874
|
+
r"""<p>额外元数据信息。例如:[{"Key":"topic_id","Value":"xxxxxxxx-xxxx"},{"Key":"topic_region","Value":"ap-guangzhou"}]</p><p>建议按照示例传递元数据信息,否则可能造成结果不准确。例如 text2sql,不传 topic_id, topic_region,将导致无法根据日志主题索引生成准确的检索语句。</p>
|
|
2875
2875
|
:rtype: list of MetadataItem
|
|
2876
2876
|
"""
|
|
2877
2877
|
return self._Metadata
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-cls
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.79
|
|
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.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.79
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.79
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.78
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|