tencentcloud-sdk-python-clb 3.1.189__tar.gz → 3.1.192__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_clb-3.1.189 → tencentcloud_sdk_python_clb-3.1.192}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_clb-3.1.189 → tencentcloud_sdk_python_clb-3.1.192}/setup.py +1 -1
- {tencentcloud_sdk_python_clb-3.1.189 → tencentcloud_sdk_python_clb-3.1.192}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_clb-3.1.189 → tencentcloud_sdk_python_clb-3.1.192}/tencentcloud/clb/v20180317/clb_client.py +1 -1
- {tencentcloud_sdk_python_clb-3.1.189 → tencentcloud_sdk_python_clb-3.1.192}/tencentcloud/clb/v20180317/clb_client_async.py +1 -1
- {tencentcloud_sdk_python_clb-3.1.189 → tencentcloud_sdk_python_clb-3.1.192}/tencentcloud/clb/v20180317/errorcodes.py +6 -0
- {tencentcloud_sdk_python_clb-3.1.189 → tencentcloud_sdk_python_clb-3.1.192}/tencentcloud/clb/v20180317/models.py +30 -0
- {tencentcloud_sdk_python_clb-3.1.189 → tencentcloud_sdk_python_clb-3.1.192}/tencentcloud_sdk_python_clb.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_clb-3.1.192/tencentcloud_sdk_python_clb.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_clb-3.1.189/tencentcloud_sdk_python_clb.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_clb-3.1.189 → tencentcloud_sdk_python_clb-3.1.192}/README.rst +0 -0
- {tencentcloud_sdk_python_clb-3.1.189 → tencentcloud_sdk_python_clb-3.1.192}/setup.cfg +0 -0
- {tencentcloud_sdk_python_clb-3.1.189 → tencentcloud_sdk_python_clb-3.1.192}/tencentcloud/clb/__init__.py +0 -0
- {tencentcloud_sdk_python_clb-3.1.189 → tencentcloud_sdk_python_clb-3.1.192}/tencentcloud/clb/v20180317/__init__.py +0 -0
- {tencentcloud_sdk_python_clb-3.1.189 → tencentcloud_sdk_python_clb-3.1.192}/tencentcloud_sdk_python_clb.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_clb-3.1.189 → tencentcloud_sdk_python_clb-3.1.192}/tencentcloud_sdk_python_clb.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_clb-3.1.189 → tencentcloud_sdk_python_clb-3.1.192}/tencentcloud_sdk_python_clb.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-clb
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.192
|
|
4
4
|
Summary: Tencent Cloud Clb 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.192
|
|
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-clb',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.192,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Clb SDK for Python',
|
|
@@ -729,7 +729,7 @@ class ClbClient(AbstractClient):
|
|
|
729
729
|
|
|
730
730
|
|
|
731
731
|
def CreateUserGroup(self, request):
|
|
732
|
-
r"""在指定模型路由实例下创建一个用户组。用户组是介于模型路由实例与 Key 之间的一层可选分组,可为组内 Key 统一配置模型白名单,并通过关联 Budget 统一管理额度。创建为异步操作,接口会同步返回用户组ID,可凭返回的 RequestId 调用 DescribeAsyncJobs
|
|
732
|
+
r"""在指定模型路由实例下创建一个用户组。用户组是介于模型路由实例与 Key 之间的一层可选分组,可为组内 Key 统一配置模型白名单,并通过关联 Budget 统一管理额度。创建为异步操作,接口会同步返回用户组ID,可凭返回的 RequestId 调用 DescribeAsyncJobs 查询创建进度。支持建组时绑定 Prompt:传入 PromptId 与 PromptVersion 后,组内 Key 的请求将按该版本 Prompt 的 Content 与 RewriteStrategy 注入或改写 system 内容,并受该版本 MaxTokens 约束;不传则默认不绑定 Prompt,建组后可通过 ModifyUserGroupPrompt 绑定、更换版本或解绑。仅传入 PromptId 或 PromptVersion 其一时返回 InvalidParameter;PromptId 不存在时返回 ResourceNotFound.Prompt;PromptVersion 不存在于该 Prompt 的历史版本中时返回 ResourceNotFound.PromptVersion。
|
|
733
733
|
|
|
734
734
|
:param request: Request instance for CreateUserGroup.
|
|
735
735
|
:type request: :class:`tencentcloud.clb.v20180317.models.CreateUserGroupRequest`
|
|
@@ -588,7 +588,7 @@ class ClbClient(AbstractClient):
|
|
|
588
588
|
opts: Dict = None,
|
|
589
589
|
) -> models.CreateUserGroupResponse:
|
|
590
590
|
"""
|
|
591
|
-
在指定模型路由实例下创建一个用户组。用户组是介于模型路由实例与 Key 之间的一层可选分组,可为组内 Key 统一配置模型白名单,并通过关联 Budget 统一管理额度。创建为异步操作,接口会同步返回用户组ID,可凭返回的 RequestId 调用 DescribeAsyncJobs
|
|
591
|
+
在指定模型路由实例下创建一个用户组。用户组是介于模型路由实例与 Key 之间的一层可选分组,可为组内 Key 统一配置模型白名单,并通过关联 Budget 统一管理额度。创建为异步操作,接口会同步返回用户组ID,可凭返回的 RequestId 调用 DescribeAsyncJobs 查询创建进度。支持建组时绑定 Prompt:传入 PromptId 与 PromptVersion 后,组内 Key 的请求将按该版本 Prompt 的 Content 与 RewriteStrategy 注入或改写 system 内容,并受该版本 MaxTokens 约束;不传则默认不绑定 Prompt,建组后可通过 ModifyUserGroupPrompt 绑定、更换版本或解绑。仅传入 PromptId 或 PromptVersion 其一时返回 InvalidParameter;PromptId 不存在时返回 ResourceNotFound.Prompt;PromptVersion 不存在于该 Prompt 的历史版本中时返回 ResourceNotFound.PromptVersion。
|
|
592
592
|
"""
|
|
593
593
|
|
|
594
594
|
kwargs = {}
|
|
@@ -173,6 +173,12 @@ RESOURCEINSUFFICIENT = 'ResourceInsufficient'
|
|
|
173
173
|
# 资源不存在。
|
|
174
174
|
RESOURCENOTFOUND = 'ResourceNotFound'
|
|
175
175
|
|
|
176
|
+
# 提示词未找到
|
|
177
|
+
RESOURCENOTFOUND_PROMPT = 'ResourceNotFound.Prompt'
|
|
178
|
+
|
|
179
|
+
# ResourceNotFound.PromptVersion
|
|
180
|
+
RESOURCENOTFOUND_PROMPTVERSION = 'ResourceNotFound.PromptVersion'
|
|
181
|
+
|
|
176
182
|
# BYOK 实例(ServiceProvider)未找到或不属于当前用户。
|
|
177
183
|
RESOURCENOTFOUND_SERVICEPROVIDER = 'ResourceNotFound.ServiceProvider'
|
|
178
184
|
|
|
@@ -9156,6 +9156,10 @@ class CreateUserGroupRequest(AbstractModel):
|
|
|
9156
9156
|
:type UserGroupName: str
|
|
9157
9157
|
:param _BudgetId: <p>建组时直接关联的预算 ID(须为已存在的 Budget)。关联后由该 Budget 统一管理本组的消费上限与限速。不传表示不关联预算,可建组后再用 AssociateBudget 关联。</p>
|
|
9158
9158
|
:type BudgetId: str
|
|
9159
|
+
:param _PromptId: <p>建组时绑定的 Prompt 资源 ID(pmt-xxx,须为该实例下已存在的 Prompt)。与 PromptVersion 必须成对传入,仅传其一将返回错误。不传表示默认不绑定 Prompt,可建组后再调用 ModifyUserGroupPrompt 绑定或更换版本。绑定后,组内 Key 的请求将按该版本 Prompt 的 Content 与 RewriteStrategy 注入或改写 system 内容。</p>
|
|
9160
|
+
:type PromptId: str
|
|
9161
|
+
:param _PromptVersion: <p>绑定的 Prompt 版本号(如 v1、v2,由 CreatePrompt / CreatePromptVersion 生成,长度不超过16个字符),与 PromptId 必须成对传入,须为该 Prompt 下已存在的版本。版本为不可变快照,Prompt 后续新增版本不会自动生效于已绑定的用户组,需显式重新绑定新版本。一个用户组同时只关联一份 Prompt 的一个版本,重复绑定即为替换。</p>
|
|
9162
|
+
:type PromptVersion: str
|
|
9159
9163
|
:param _IntentRouters: <p>用户组意图路由白名单(ir-xxx)。每一项须为该实例已创建的意图路由名。命中意图路由名时其内部真实模型自动豁免白名单。为空表示不授权任何意图路由。</p>
|
|
9160
9164
|
:type IntentRouters: list of str
|
|
9161
9165
|
:param _KeyIds: <p>建组时同时绑定的已有 Key ID 列表,最多100个。每个 Key 须属于同一模型路由实例。建组与绑定为一个原子异步任务,任一 Key 失败则整组创建回滚。不传表示建空组。</p>
|
|
@@ -9168,6 +9172,8 @@ class CreateUserGroupRequest(AbstractModel):
|
|
|
9168
9172
|
self._ModelRouterId = None
|
|
9169
9173
|
self._UserGroupName = None
|
|
9170
9174
|
self._BudgetId = None
|
|
9175
|
+
self._PromptId = None
|
|
9176
|
+
self._PromptVersion = None
|
|
9171
9177
|
self._IntentRouters = None
|
|
9172
9178
|
self._KeyIds = None
|
|
9173
9179
|
self._Models = None
|
|
@@ -9206,6 +9212,28 @@ class CreateUserGroupRequest(AbstractModel):
|
|
|
9206
9212
|
def BudgetId(self, BudgetId):
|
|
9207
9213
|
self._BudgetId = BudgetId
|
|
9208
9214
|
|
|
9215
|
+
@property
|
|
9216
|
+
def PromptId(self):
|
|
9217
|
+
r"""<p>建组时绑定的 Prompt 资源 ID(pmt-xxx,须为该实例下已存在的 Prompt)。与 PromptVersion 必须成对传入,仅传其一将返回错误。不传表示默认不绑定 Prompt,可建组后再调用 ModifyUserGroupPrompt 绑定或更换版本。绑定后,组内 Key 的请求将按该版本 Prompt 的 Content 与 RewriteStrategy 注入或改写 system 内容。</p>
|
|
9218
|
+
:rtype: str
|
|
9219
|
+
"""
|
|
9220
|
+
return self._PromptId
|
|
9221
|
+
|
|
9222
|
+
@PromptId.setter
|
|
9223
|
+
def PromptId(self, PromptId):
|
|
9224
|
+
self._PromptId = PromptId
|
|
9225
|
+
|
|
9226
|
+
@property
|
|
9227
|
+
def PromptVersion(self):
|
|
9228
|
+
r"""<p>绑定的 Prompt 版本号(如 v1、v2,由 CreatePrompt / CreatePromptVersion 生成,长度不超过16个字符),与 PromptId 必须成对传入,须为该 Prompt 下已存在的版本。版本为不可变快照,Prompt 后续新增版本不会自动生效于已绑定的用户组,需显式重新绑定新版本。一个用户组同时只关联一份 Prompt 的一个版本,重复绑定即为替换。</p>
|
|
9229
|
+
:rtype: str
|
|
9230
|
+
"""
|
|
9231
|
+
return self._PromptVersion
|
|
9232
|
+
|
|
9233
|
+
@PromptVersion.setter
|
|
9234
|
+
def PromptVersion(self, PromptVersion):
|
|
9235
|
+
self._PromptVersion = PromptVersion
|
|
9236
|
+
|
|
9209
9237
|
@property
|
|
9210
9238
|
def IntentRouters(self):
|
|
9211
9239
|
r"""<p>用户组意图路由白名单(ir-xxx)。每一项须为该实例已创建的意图路由名。命中意图路由名时其内部真实模型自动豁免白名单。为空表示不授权任何意图路由。</p>
|
|
@@ -9255,6 +9283,8 @@ class CreateUserGroupRequest(AbstractModel):
|
|
|
9255
9283
|
self._ModelRouterId = params.get("ModelRouterId")
|
|
9256
9284
|
self._UserGroupName = params.get("UserGroupName")
|
|
9257
9285
|
self._BudgetId = params.get("BudgetId")
|
|
9286
|
+
self._PromptId = params.get("PromptId")
|
|
9287
|
+
self._PromptVersion = params.get("PromptVersion")
|
|
9258
9288
|
self._IntentRouters = params.get("IntentRouters")
|
|
9259
9289
|
self._KeyIds = params.get("KeyIds")
|
|
9260
9290
|
self._Models = params.get("Models")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-clb
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.192
|
|
4
4
|
Summary: Tencent Cloud Clb 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.192
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.192
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.189
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|