tencentcloud-sdk-python-lkeap 3.0.1355__tar.gz → 3.0.1356__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.1355 → tencentcloud-sdk-python-lkeap-3.0.1356}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-lkeap-3.0.1355 → tencentcloud-sdk-python-lkeap-3.0.1356}/setup.py +1 -1
- {tencentcloud-sdk-python-lkeap-3.0.1355 → tencentcloud-sdk-python-lkeap-3.0.1356}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-lkeap-3.0.1355 → tencentcloud-sdk-python-lkeap-3.0.1356}/tencentcloud/lkeap/v20240522/lkeap_client.py +24 -1
- {tencentcloud-sdk-python-lkeap-3.0.1355 → tencentcloud-sdk-python-lkeap-3.0.1356}/tencentcloud/lkeap/v20240522/models.py +64 -0
- {tencentcloud-sdk-python-lkeap-3.0.1355 → tencentcloud-sdk-python-lkeap-3.0.1356}/tencentcloud_sdk_python_lkeap.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-lkeap-3.0.1356/tencentcloud_sdk_python_lkeap.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-lkeap-3.0.1355/tencentcloud_sdk_python_lkeap.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-lkeap-3.0.1355 → tencentcloud-sdk-python-lkeap-3.0.1356}/README.rst +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1355 → tencentcloud-sdk-python-lkeap-3.0.1356}/setup.cfg +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1355 → tencentcloud-sdk-python-lkeap-3.0.1356}/tencentcloud/lkeap/__init__.py +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1355 → tencentcloud-sdk-python-lkeap-3.0.1356}/tencentcloud/lkeap/v20240522/__init__.py +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1355 → tencentcloud-sdk-python-lkeap-3.0.1356}/tencentcloud/lkeap/v20240522/errorcodes.py +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1355 → tencentcloud-sdk-python-lkeap-3.0.1356}/tencentcloud_sdk_python_lkeap.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1355 → tencentcloud-sdk-python-lkeap-3.0.1356}/tencentcloud_sdk_python_lkeap.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-lkeap-3.0.1355 → tencentcloud-sdk-python-lkeap-3.0.1356}/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.1356"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Lkeap SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -29,7 +29,7 @@ class LkeapClient(AbstractClient):
|
|
|
29
29
|
def ChatCompletions(self, request):
|
|
30
30
|
"""### 接口功能
|
|
31
31
|
|
|
32
|
-
调用接口,发起一次对话请求。单账号限制接口并发上限为
|
|
32
|
+
调用接口,发起一次对话请求。单账号限制接口并发上限为100。
|
|
33
33
|
如需使用OpenAI兼容接口, 请参考文档:[Deepseek OpenAI对话接口](https://cloud.tencent.com/document/product/1772/115969)
|
|
34
34
|
|
|
35
35
|
#### 在线体验
|
|
@@ -382,6 +382,29 @@ class LkeapClient(AbstractClient):
|
|
|
382
382
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
383
383
|
|
|
384
384
|
|
|
385
|
+
def GetCharacterUsage(self, request):
|
|
386
|
+
"""获取字符使用量统计
|
|
387
|
+
|
|
388
|
+
:param request: Request instance for GetCharacterUsage.
|
|
389
|
+
:type request: :class:`tencentcloud.lkeap.v20240522.models.GetCharacterUsageRequest`
|
|
390
|
+
:rtype: :class:`tencentcloud.lkeap.v20240522.models.GetCharacterUsageResponse`
|
|
391
|
+
|
|
392
|
+
"""
|
|
393
|
+
try:
|
|
394
|
+
params = request._serialize()
|
|
395
|
+
headers = request.headers
|
|
396
|
+
body = self.call("GetCharacterUsage", params, headers=headers)
|
|
397
|
+
response = json.loads(body)
|
|
398
|
+
model = models.GetCharacterUsageResponse()
|
|
399
|
+
model._deserialize(response["Response"])
|
|
400
|
+
return model
|
|
401
|
+
except Exception as e:
|
|
402
|
+
if isinstance(e, TencentCloudSDKException):
|
|
403
|
+
raise
|
|
404
|
+
else:
|
|
405
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
406
|
+
|
|
407
|
+
|
|
385
408
|
def GetEmbedding(self, request):
|
|
386
409
|
"""本接口(GetEmbedding)调用文本表示模型,将文本转化为用数值表示的向量形式,可用于文本检索、信息推荐、知识挖掘等场景。
|
|
387
410
|
本接口(GetEmbedding)有单账号调用上限控制,如您有提高并发限制的需求请 [联系我们](https://cloud.tencent.com/act/event/Online_service) 。
|
|
@@ -2256,6 +2256,70 @@ class EmbeddingObject(AbstractModel):
|
|
|
2256
2256
|
|
|
2257
2257
|
|
|
2258
2258
|
|
|
2259
|
+
class GetCharacterUsageRequest(AbstractModel):
|
|
2260
|
+
"""GetCharacterUsage请求参数结构体
|
|
2261
|
+
|
|
2262
|
+
"""
|
|
2263
|
+
|
|
2264
|
+
|
|
2265
|
+
class GetCharacterUsageResponse(AbstractModel):
|
|
2266
|
+
"""GetCharacterUsage返回参数结构体
|
|
2267
|
+
|
|
2268
|
+
"""
|
|
2269
|
+
|
|
2270
|
+
def __init__(self):
|
|
2271
|
+
r"""
|
|
2272
|
+
:param _Used: 已用字符数
|
|
2273
|
+
:type Used: int
|
|
2274
|
+
:param _Total: 可用字符数
|
|
2275
|
+
:type Total: int
|
|
2276
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2277
|
+
:type RequestId: str
|
|
2278
|
+
"""
|
|
2279
|
+
self._Used = None
|
|
2280
|
+
self._Total = None
|
|
2281
|
+
self._RequestId = None
|
|
2282
|
+
|
|
2283
|
+
@property
|
|
2284
|
+
def Used(self):
|
|
2285
|
+
"""已用字符数
|
|
2286
|
+
:rtype: int
|
|
2287
|
+
"""
|
|
2288
|
+
return self._Used
|
|
2289
|
+
|
|
2290
|
+
@Used.setter
|
|
2291
|
+
def Used(self, Used):
|
|
2292
|
+
self._Used = Used
|
|
2293
|
+
|
|
2294
|
+
@property
|
|
2295
|
+
def Total(self):
|
|
2296
|
+
"""可用字符数
|
|
2297
|
+
:rtype: int
|
|
2298
|
+
"""
|
|
2299
|
+
return self._Total
|
|
2300
|
+
|
|
2301
|
+
@Total.setter
|
|
2302
|
+
def Total(self, Total):
|
|
2303
|
+
self._Total = Total
|
|
2304
|
+
|
|
2305
|
+
@property
|
|
2306
|
+
def RequestId(self):
|
|
2307
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2308
|
+
:rtype: str
|
|
2309
|
+
"""
|
|
2310
|
+
return self._RequestId
|
|
2311
|
+
|
|
2312
|
+
@RequestId.setter
|
|
2313
|
+
def RequestId(self, RequestId):
|
|
2314
|
+
self._RequestId = RequestId
|
|
2315
|
+
|
|
2316
|
+
|
|
2317
|
+
def _deserialize(self, params):
|
|
2318
|
+
self._Used = params.get("Used")
|
|
2319
|
+
self._Total = params.get("Total")
|
|
2320
|
+
self._RequestId = params.get("RequestId")
|
|
2321
|
+
|
|
2322
|
+
|
|
2259
2323
|
class GetEmbeddingRequest(AbstractModel):
|
|
2260
2324
|
"""GetEmbedding请求参数结构体
|
|
2261
2325
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1356
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1355
|
{tencentcloud-sdk-python-lkeap-3.0.1355 → tencentcloud-sdk-python-lkeap-3.0.1356}/README.rst
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|