tencentcloud-sdk-python-lkeap 3.0.1319__tar.gz → 3.0.1322__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.1319 → tencentcloud-sdk-python-lkeap-3.0.1322}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-lkeap-3.0.1319 → tencentcloud-sdk-python-lkeap-3.0.1322}/setup.py +1 -1
- {tencentcloud-sdk-python-lkeap-3.0.1319 → tencentcloud-sdk-python-lkeap-3.0.1322}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-lkeap-3.0.1319 → tencentcloud-sdk-python-lkeap-3.0.1322}/tencentcloud/lkeap/v20240522/lkeap_client.py +6 -5
- {tencentcloud-sdk-python-lkeap-3.0.1319 → tencentcloud-sdk-python-lkeap-3.0.1322}/tencentcloud/lkeap/v20240522/models.py +120 -10
- {tencentcloud-sdk-python-lkeap-3.0.1319 → tencentcloud-sdk-python-lkeap-3.0.1322}/tencentcloud_sdk_python_lkeap.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-lkeap-3.0.1322/tencentcloud_sdk_python_lkeap.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-lkeap-3.0.1319/tencentcloud_sdk_python_lkeap.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-lkeap-3.0.1319 → tencentcloud-sdk-python-lkeap-3.0.1322}/README.rst +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1319 → tencentcloud-sdk-python-lkeap-3.0.1322}/setup.cfg +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1319 → tencentcloud-sdk-python-lkeap-3.0.1322}/tencentcloud/lkeap/__init__.py +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1319 → tencentcloud-sdk-python-lkeap-3.0.1322}/tencentcloud/lkeap/v20240522/__init__.py +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1319 → tencentcloud-sdk-python-lkeap-3.0.1322}/tencentcloud/lkeap/v20240522/errorcodes.py +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1319 → tencentcloud-sdk-python-lkeap-3.0.1322}/tencentcloud_sdk_python_lkeap.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1319 → tencentcloud-sdk-python-lkeap-3.0.1322}/tencentcloud_sdk_python_lkeap.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1319 → tencentcloud-sdk-python-lkeap-3.0.1322}/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.1322"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Lkeap SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -30,15 +30,15 @@ class LkeapClient(AbstractClient):
|
|
|
30
30
|
"""#### 接口功能
|
|
31
31
|
|
|
32
32
|
调用接口,发起一次对话请求。
|
|
33
|
-
如需使用OpenAI兼容接口, 请参考文档:[OpenAI
|
|
33
|
+
如需使用OpenAI兼容接口, 请参考文档:[Deepseek OpenAI对话接口](https://cloud.tencent.com/document/product/1772/115969)
|
|
34
34
|
|
|
35
35
|
#### 已支持的模型
|
|
36
36
|
- DeepSeek-V3(model 参数值为**deepseek-v3**)
|
|
37
37
|
- DeepSeek-V3为671B参数MoE模型,在百科知识、数学推理等多项任务上优势突出,评测成绩在主流榜单中位列开源模型榜首。
|
|
38
|
-
- 支持64K
|
|
38
|
+
- 支持64K上下文长度,最大输入56k,最大输出8k(不含思维链)。
|
|
39
39
|
- DeepSeek-R1(model 参数值为**deepseek-r1**)
|
|
40
40
|
- DeepSeek-R1为671B模型,使用强化学习训练,推理过程包含大量反思和验证,思维链长度可达数万字。 该系列模型在数学、代码以及各种复杂逻辑推理任务上推理效果优异,并为用户展现了完整的思考过程。
|
|
41
|
-
-
|
|
41
|
+
- 支持64K上下文长度,最大输入56k,最大输出8k(不含思维链)。
|
|
42
42
|
|
|
43
43
|
#### 计费说明
|
|
44
44
|
- 限时免费
|
|
@@ -49,7 +49,7 @@ class LkeapClient(AbstractClient):
|
|
|
49
49
|

|
|
50
50
|
|
|
51
51
|
### Openai兼容协议接口
|
|
52
|
-
知识引擎原子能力大模型对话 API 兼容了 OpenAI 的接口规范,这意味着您可以直接使用 OpenAI 官方提供的 SDK 来调用大模型对话接口。您仅需要将 base_url 和 [api_key](https://cloud.tencent.com/document/product/1772/115970) 替换成相关配置,不需要对应用做额外修改,即可无缝将您的应用切换到相应的大模型。请参考文档:[OpenAI
|
|
52
|
+
知识引擎原子能力大模型对话 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)。
|
|
53
53
|
> base_url: https://api.lkeap.cloud.tencent.com/v1
|
|
54
54
|
|
|
55
55
|
> api_key的获取请参考[API KEY管理](https://cloud.tencent.com/document/product/1772/115970)
|
|
@@ -693,7 +693,8 @@ class LkeapClient(AbstractClient):
|
|
|
693
693
|
|
|
694
694
|
|
|
695
695
|
def UploadDocRealtime(self, request):
|
|
696
|
-
"""
|
|
696
|
+
"""用于上传实时文档内容。
|
|
697
|
+
实时文档在上传后可以立即通过SearchRealtime进行实时检索,适用于在会话中对文档进行问答的场景。
|
|
697
698
|
|
|
698
699
|
:param request: Request instance for UploadDocRealtime.
|
|
699
700
|
:type request: :class:`tencentcloud.lkeap.v20240522.models.UploadDocRealtimeRequest`
|
|
@@ -518,10 +518,9 @@ class Choice(AbstractModel):
|
|
|
518
518
|
|
|
519
519
|
def __init__(self):
|
|
520
520
|
r"""
|
|
521
|
-
:param _FinishReason: 结束标志位,可能为 stop、
|
|
521
|
+
:param _FinishReason: 结束标志位,可能为 stop、 content_filter。
|
|
522
522
|
stop 表示输出正常结束。
|
|
523
|
-
|
|
524
|
-
tool_calls 标识函数调用。
|
|
523
|
+
content_filter 只在开启流式输出审核时会出现,表示安全审核未通过。
|
|
525
524
|
:type FinishReason: str
|
|
526
525
|
:param _Delta: 增量返回值,流式调用时使用该字段。
|
|
527
526
|
:type Delta: :class:`tencentcloud.lkeap.v20240522.models.Delta`
|
|
@@ -537,10 +536,9 @@ tool_calls 标识函数调用。
|
|
|
537
536
|
|
|
538
537
|
@property
|
|
539
538
|
def FinishReason(self):
|
|
540
|
-
"""结束标志位,可能为 stop、
|
|
539
|
+
"""结束标志位,可能为 stop、 content_filter。
|
|
541
540
|
stop 表示输出正常结束。
|
|
542
|
-
|
|
543
|
-
tool_calls 标识函数调用。
|
|
541
|
+
content_filter 只在开启流式输出审核时会出现,表示安全审核未通过。
|
|
544
542
|
:rtype: str
|
|
545
543
|
"""
|
|
546
544
|
return self._FinishReason
|
|
@@ -991,6 +989,7 @@ class CreateReconstructDocumentFlowRequest(AbstractModel):
|
|
|
991
989
|
参考:[腾讯云COS文档](https://cloud.tencent.com/document/product/436/7749)
|
|
992
990
|
:type FileUrl: str
|
|
993
991
|
:param _FileBase64: 文件的 Base64 值。
|
|
992
|
+
支持的文件类型: PNG、JPG、JPEG、PDF、GIF、BMP、TIFF
|
|
994
993
|
支持的文件大小:所下载文件经Base64编码后不超过 8M。文件下载时间不超过 3 秒。
|
|
995
994
|
支持的图片像素:单边介于20-10000px之间。
|
|
996
995
|
文件的 FileUrl、FileBase64 必须提供一个,如果都提供,只使用 FileUrl。
|
|
@@ -1048,6 +1047,7 @@ class CreateReconstructDocumentFlowRequest(AbstractModel):
|
|
|
1048
1047
|
@property
|
|
1049
1048
|
def FileBase64(self):
|
|
1050
1049
|
"""文件的 Base64 值。
|
|
1050
|
+
支持的文件类型: PNG、JPG、JPEG、PDF、GIF、BMP、TIFF
|
|
1051
1051
|
支持的文件大小:所下载文件经Base64编码后不超过 8M。文件下载时间不超过 3 秒。
|
|
1052
1052
|
支持的图片像素:单边介于20-10000px之间。
|
|
1053
1053
|
文件的 FileUrl、FileBase64 必须提供一个,如果都提供,只使用 FileUrl。
|
|
@@ -4747,6 +4747,116 @@ class UploadDocRealtimeRequest(AbstractModel):
|
|
|
4747
4747
|
|
|
4748
4748
|
"""
|
|
4749
4749
|
|
|
4750
|
+
def __init__(self):
|
|
4751
|
+
r"""
|
|
4752
|
+
:param _KnowledgeBaseId: 知识库ID
|
|
4753
|
+
:type KnowledgeBaseId: str
|
|
4754
|
+
:param _FileName: 文件名,可选。
|
|
4755
|
+
**需带文件类型后缀**,当文件名无法从传入的`FileUrl`获取时需要通过该字段来明确。
|
|
4756
|
+
:type FileName: str
|
|
4757
|
+
:param _FileType: 文件类型。
|
|
4758
|
+
**支持的文件类型:**
|
|
4759
|
+
- `PDF`、`DOC`、`DOCX`、`XLS`、`XLSX`、`PPT`、`PPTX`、`MD`、`TXT`、`PNG`、`JPG`、`JPEG`、`CSV`、`HTML`、`EPUB`
|
|
4760
|
+
|
|
4761
|
+
**支持的文件大小:**
|
|
4762
|
+
- `PDF`、`DOCX`、`DOC`、`PPT`、`PPTX` 最大 200M
|
|
4763
|
+
- `TXT`、`MD` 最大10M
|
|
4764
|
+
- 其他 最大20M
|
|
4765
|
+
:type FileType: str
|
|
4766
|
+
:param _FileUrl: 文件的 URL 地址。
|
|
4767
|
+
文件存储于腾讯云的 URL 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。 非腾讯云存储的 URL 速度和稳定性可能受一定影响。
|
|
4768
|
+
参考:[腾讯云COS文档](https://cloud.tencent.com/document/product/436/7749)
|
|
4769
|
+
:type FileUrl: str
|
|
4770
|
+
:param _ExpireTime: 过期时间的秒数,最长24小时,默认24小时
|
|
4771
|
+
:type ExpireTime: int
|
|
4772
|
+
"""
|
|
4773
|
+
self._KnowledgeBaseId = None
|
|
4774
|
+
self._FileName = None
|
|
4775
|
+
self._FileType = None
|
|
4776
|
+
self._FileUrl = None
|
|
4777
|
+
self._ExpireTime = None
|
|
4778
|
+
|
|
4779
|
+
@property
|
|
4780
|
+
def KnowledgeBaseId(self):
|
|
4781
|
+
"""知识库ID
|
|
4782
|
+
:rtype: str
|
|
4783
|
+
"""
|
|
4784
|
+
return self._KnowledgeBaseId
|
|
4785
|
+
|
|
4786
|
+
@KnowledgeBaseId.setter
|
|
4787
|
+
def KnowledgeBaseId(self, KnowledgeBaseId):
|
|
4788
|
+
self._KnowledgeBaseId = KnowledgeBaseId
|
|
4789
|
+
|
|
4790
|
+
@property
|
|
4791
|
+
def FileName(self):
|
|
4792
|
+
"""文件名,可选。
|
|
4793
|
+
**需带文件类型后缀**,当文件名无法从传入的`FileUrl`获取时需要通过该字段来明确。
|
|
4794
|
+
:rtype: str
|
|
4795
|
+
"""
|
|
4796
|
+
return self._FileName
|
|
4797
|
+
|
|
4798
|
+
@FileName.setter
|
|
4799
|
+
def FileName(self, FileName):
|
|
4800
|
+
self._FileName = FileName
|
|
4801
|
+
|
|
4802
|
+
@property
|
|
4803
|
+
def FileType(self):
|
|
4804
|
+
"""文件类型。
|
|
4805
|
+
**支持的文件类型:**
|
|
4806
|
+
- `PDF`、`DOC`、`DOCX`、`XLS`、`XLSX`、`PPT`、`PPTX`、`MD`、`TXT`、`PNG`、`JPG`、`JPEG`、`CSV`、`HTML`、`EPUB`
|
|
4807
|
+
|
|
4808
|
+
**支持的文件大小:**
|
|
4809
|
+
- `PDF`、`DOCX`、`DOC`、`PPT`、`PPTX` 最大 200M
|
|
4810
|
+
- `TXT`、`MD` 最大10M
|
|
4811
|
+
- 其他 最大20M
|
|
4812
|
+
:rtype: str
|
|
4813
|
+
"""
|
|
4814
|
+
return self._FileType
|
|
4815
|
+
|
|
4816
|
+
@FileType.setter
|
|
4817
|
+
def FileType(self, FileType):
|
|
4818
|
+
self._FileType = FileType
|
|
4819
|
+
|
|
4820
|
+
@property
|
|
4821
|
+
def FileUrl(self):
|
|
4822
|
+
"""文件的 URL 地址。
|
|
4823
|
+
文件存储于腾讯云的 URL 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。 非腾讯云存储的 URL 速度和稳定性可能受一定影响。
|
|
4824
|
+
参考:[腾讯云COS文档](https://cloud.tencent.com/document/product/436/7749)
|
|
4825
|
+
:rtype: str
|
|
4826
|
+
"""
|
|
4827
|
+
return self._FileUrl
|
|
4828
|
+
|
|
4829
|
+
@FileUrl.setter
|
|
4830
|
+
def FileUrl(self, FileUrl):
|
|
4831
|
+
self._FileUrl = FileUrl
|
|
4832
|
+
|
|
4833
|
+
@property
|
|
4834
|
+
def ExpireTime(self):
|
|
4835
|
+
"""过期时间的秒数,最长24小时,默认24小时
|
|
4836
|
+
:rtype: int
|
|
4837
|
+
"""
|
|
4838
|
+
return self._ExpireTime
|
|
4839
|
+
|
|
4840
|
+
@ExpireTime.setter
|
|
4841
|
+
def ExpireTime(self, ExpireTime):
|
|
4842
|
+
self._ExpireTime = ExpireTime
|
|
4843
|
+
|
|
4844
|
+
|
|
4845
|
+
def _deserialize(self, params):
|
|
4846
|
+
self._KnowledgeBaseId = params.get("KnowledgeBaseId")
|
|
4847
|
+
self._FileName = params.get("FileName")
|
|
4848
|
+
self._FileType = params.get("FileType")
|
|
4849
|
+
self._FileUrl = params.get("FileUrl")
|
|
4850
|
+
self._ExpireTime = params.get("ExpireTime")
|
|
4851
|
+
memeber_set = set(params.keys())
|
|
4852
|
+
for name, value in vars(self).items():
|
|
4853
|
+
property_name = name[1:]
|
|
4854
|
+
if property_name in memeber_set:
|
|
4855
|
+
memeber_set.remove(property_name)
|
|
4856
|
+
if len(memeber_set) > 0:
|
|
4857
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4858
|
+
|
|
4859
|
+
|
|
4750
4860
|
|
|
4751
4861
|
class UploadDocRealtimeResponse(AbstractModel):
|
|
4752
4862
|
"""UploadDocRealtime返回参数结构体
|
|
@@ -4785,8 +4895,8 @@ class UploadDocRequest(AbstractModel):
|
|
|
4785
4895
|
r"""
|
|
4786
4896
|
:param _KnowledgeBaseId: 知识库ID
|
|
4787
4897
|
:type KnowledgeBaseId: str
|
|
4788
|
-
:param _FileName:
|
|
4789
|
-
|
|
4898
|
+
:param _FileName: 文件名。
|
|
4899
|
+
**需带文件类型后缀**
|
|
4790
4900
|
:type FileName: str
|
|
4791
4901
|
:param _FileType: 文件类型。
|
|
4792
4902
|
|
|
@@ -4831,8 +4941,8 @@ class UploadDocRequest(AbstractModel):
|
|
|
4831
4941
|
|
|
4832
4942
|
@property
|
|
4833
4943
|
def FileName(self):
|
|
4834
|
-
"""
|
|
4835
|
-
|
|
4944
|
+
"""文件名。
|
|
4945
|
+
**需带文件类型后缀**
|
|
4836
4946
|
:rtype: str
|
|
4837
4947
|
"""
|
|
4838
4948
|
return self._FileName
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1322
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1319
|
{tencentcloud-sdk-python-lkeap-3.0.1319 → tencentcloud-sdk-python-lkeap-3.0.1322}/README.rst
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|