tencentcloud-sdk-python-lkeap 3.0.1313__tar.gz → 3.0.1315__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-lkeap-3.0.1313 → tencentcloud-sdk-python-lkeap-3.0.1315}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-lkeap-3.0.1313 → tencentcloud-sdk-python-lkeap-3.0.1315}/setup.py +1 -1
- {tencentcloud-sdk-python-lkeap-3.0.1313 → tencentcloud-sdk-python-lkeap-3.0.1315}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-lkeap-3.0.1313 → tencentcloud-sdk-python-lkeap-3.0.1315}/tencentcloud/lkeap/v20240522/lkeap_client.py +7 -0
- {tencentcloud-sdk-python-lkeap-3.0.1313 → tencentcloud-sdk-python-lkeap-3.0.1315}/tencentcloud/lkeap/v20240522/models.py +12 -2
- {tencentcloud-sdk-python-lkeap-3.0.1313 → tencentcloud-sdk-python-lkeap-3.0.1315}/tencentcloud_sdk_python_lkeap.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-lkeap-3.0.1315/tencentcloud_sdk_python_lkeap.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-lkeap-3.0.1313/tencentcloud_sdk_python_lkeap.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-lkeap-3.0.1313 → tencentcloud-sdk-python-lkeap-3.0.1315}/README.rst +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1313 → tencentcloud-sdk-python-lkeap-3.0.1315}/setup.cfg +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1313 → tencentcloud-sdk-python-lkeap-3.0.1315}/tencentcloud/lkeap/__init__.py +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1313 → tencentcloud-sdk-python-lkeap-3.0.1315}/tencentcloud/lkeap/v20240522/__init__.py +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1313 → tencentcloud-sdk-python-lkeap-3.0.1315}/tencentcloud/lkeap/v20240522/errorcodes.py +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1313 → tencentcloud-sdk-python-lkeap-3.0.1315}/tencentcloud_sdk_python_lkeap.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1313 → tencentcloud-sdk-python-lkeap-3.0.1315}/tencentcloud_sdk_python_lkeap.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1313 → tencentcloud-sdk-python-lkeap-3.0.1315}/tencentcloud_sdk_python_lkeap.egg-info/top_level.txt +0 -0
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-lkeap',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common==3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1315"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Lkeap SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -30,6 +30,7 @@ class LkeapClient(AbstractClient):
|
|
|
30
30
|
"""#### 接口功能
|
|
31
31
|
|
|
32
32
|
调用接口,发起一次对话请求。
|
|
33
|
+
如需使用OpenAI兼容接口, 请参考文档:[OpenAI 兼容接口](https://cloud.tencent.com/document/product/1772/115968)
|
|
33
34
|
|
|
34
35
|
#### 已支持的模型
|
|
35
36
|
- DeepSeek-V3(model 参数值为**deepseek-v3**)
|
|
@@ -46,6 +47,12 @@ class LkeapClient(AbstractClient):
|
|
|
46
47
|
- 标准计费(2025年2月26日起生效)
|
|
47
48
|

|
|
48
49
|
|
|
50
|
+
### Openai兼容协议接口
|
|
51
|
+
知识引擎原子能力大模型对话 API 兼容了 OpenAI 的接口规范,这意味着您可以直接使用 OpenAI 官方提供的 SDK 来调用大模型对话接口。您仅需要将 base_url 和 [api_key](https://cloud.tencent.com/document/product/1772/115970) 替换成相关配置,不需要对应用做额外修改,即可无缝将您的应用切换到相应的大模型。请参考文档:[OpenAI 兼容接口](https://cloud.tencent.com/document/product/1772/115968)。
|
|
52
|
+
> base_url: https://api.lkeap.cloud.tencent.com/v1
|
|
53
|
+
|
|
54
|
+
> api_key的获取请参考[API KEY管理](https://cloud.tencent.com/document/product/1772/115970)
|
|
55
|
+
|
|
49
56
|
|
|
50
57
|
#### 快速接入
|
|
51
58
|
1. 完成[实名认证](https://console.cloud.tencent.com/developer/auth)。
|
|
@@ -231,7 +231,12 @@ class ChatCompletionsRequest(AbstractModel):
|
|
|
231
231
|
r"""
|
|
232
232
|
:param _Model: 模型名称
|
|
233
233
|
:type Model: str
|
|
234
|
-
:param _Messages:
|
|
234
|
+
:param _Messages: 聊天上下文信息。
|
|
235
|
+
说明:
|
|
236
|
+
1. 长度最多为 40,按对话时间从旧到新在数组中排列。
|
|
237
|
+
2. Message.Role 可选值:system、user、assistant。
|
|
238
|
+
其中,system 角色可选,如存在则必须位于列表的最开始。user(tool) 和 assistant 需交替出现(一问一答),以 user 提问开始,user(tool)提问结束,其中tool可以连续出现多次,且 Content 不能为空。Role 的顺序示例:[system(可选) user assistant user(tool tool ...) assistant user(tool tool ...) ...]。
|
|
239
|
+
|
|
235
240
|
:type Messages: list of Message
|
|
236
241
|
:param _Stream: 是否流式输出
|
|
237
242
|
:type Stream: bool
|
|
@@ -259,7 +264,12 @@ class ChatCompletionsRequest(AbstractModel):
|
|
|
259
264
|
|
|
260
265
|
@property
|
|
261
266
|
def Messages(self):
|
|
262
|
-
"""
|
|
267
|
+
"""聊天上下文信息。
|
|
268
|
+
说明:
|
|
269
|
+
1. 长度最多为 40,按对话时间从旧到新在数组中排列。
|
|
270
|
+
2. Message.Role 可选值:system、user、assistant。
|
|
271
|
+
其中,system 角色可选,如存在则必须位于列表的最开始。user(tool) 和 assistant 需交替出现(一问一答),以 user 提问开始,user(tool)提问结束,其中tool可以连续出现多次,且 Content 不能为空。Role 的顺序示例:[system(可选) user assistant user(tool tool ...) assistant user(tool tool ...) ...]。
|
|
272
|
+
|
|
263
273
|
:rtype: list of Message
|
|
264
274
|
"""
|
|
265
275
|
return self._Messages
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1315
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1313
|
{tencentcloud-sdk-python-lkeap-3.0.1313 → tencentcloud-sdk-python-lkeap-3.0.1315}/README.rst
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|