tencentcloud-sdk-python-tokenhub 3.1.124__tar.gz → 3.1.127__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_tokenhub-3.1.124 → tencentcloud_sdk_python_tokenhub-3.1.127}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_tokenhub-3.1.124 → tencentcloud_sdk_python_tokenhub-3.1.127}/setup.py +1 -1
- {tencentcloud_sdk_python_tokenhub-3.1.124 → tencentcloud_sdk_python_tokenhub-3.1.127}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_tokenhub-3.1.124 → tencentcloud_sdk_python_tokenhub-3.1.127}/tencentcloud/tokenhub/v20260322/models.py +871 -0
- {tencentcloud_sdk_python_tokenhub-3.1.124 → tencentcloud_sdk_python_tokenhub-3.1.127}/tencentcloud_sdk_python_tokenhub.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_tokenhub-3.1.127/tencentcloud_sdk_python_tokenhub.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_tokenhub-3.1.124/tencentcloud_sdk_python_tokenhub.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_tokenhub-3.1.124 → tencentcloud_sdk_python_tokenhub-3.1.127}/README.rst +0 -0
- {tencentcloud_sdk_python_tokenhub-3.1.124 → tencentcloud_sdk_python_tokenhub-3.1.127}/setup.cfg +0 -0
- {tencentcloud_sdk_python_tokenhub-3.1.124 → tencentcloud_sdk_python_tokenhub-3.1.127}/tencentcloud/tokenhub/__init__.py +0 -0
- {tencentcloud_sdk_python_tokenhub-3.1.124 → tencentcloud_sdk_python_tokenhub-3.1.127}/tencentcloud/tokenhub/v20260322/__init__.py +0 -0
- {tencentcloud_sdk_python_tokenhub-3.1.124 → tencentcloud_sdk_python_tokenhub-3.1.127}/tencentcloud/tokenhub/v20260322/errorcodes.py +0 -0
- {tencentcloud_sdk_python_tokenhub-3.1.124 → tencentcloud_sdk_python_tokenhub-3.1.127}/tencentcloud/tokenhub/v20260322/tokenhub_client.py +0 -0
- {tencentcloud_sdk_python_tokenhub-3.1.124 → tencentcloud_sdk_python_tokenhub-3.1.127}/tencentcloud/tokenhub/v20260322/tokenhub_client_async.py +0 -0
- {tencentcloud_sdk_python_tokenhub-3.1.124 → tencentcloud_sdk_python_tokenhub-3.1.127}/tencentcloud_sdk_python_tokenhub.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_tokenhub-3.1.124 → tencentcloud_sdk_python_tokenhub-3.1.127}/tencentcloud_sdk_python_tokenhub.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_tokenhub-3.1.124 → tencentcloud_sdk_python_tokenhub-3.1.127}/tencentcloud_sdk_python_tokenhub.egg-info/top_level.txt +0 -0
{tencentcloud_sdk_python_tokenhub-3.1.124 → tencentcloud_sdk_python_tokenhub-3.1.127}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-tokenhub
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.127
|
|
4
4
|
Summary: Tencent Cloud Tokenhub 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.127
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
{tencentcloud_sdk_python_tokenhub-3.1.124 → tencentcloud_sdk_python_tokenhub-3.1.127}/setup.py
RENAMED
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-tokenhub',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.127,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Tokenhub SDK for Python',
|
|
@@ -2233,11 +2233,39 @@ class DescribeModelListResponse(AbstractModel):
|
|
|
2233
2233
|
|
|
2234
2234
|
def __init__(self):
|
|
2235
2235
|
r"""
|
|
2236
|
+
:param _ModelSet: <p>模型列表。</p>
|
|
2237
|
+
:type ModelSet: list of Model
|
|
2238
|
+
:param _TotalCount: <p>符合条件的模型总数。</p>
|
|
2239
|
+
:type TotalCount: int
|
|
2236
2240
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2237
2241
|
:type RequestId: str
|
|
2238
2242
|
"""
|
|
2243
|
+
self._ModelSet = None
|
|
2244
|
+
self._TotalCount = None
|
|
2239
2245
|
self._RequestId = None
|
|
2240
2246
|
|
|
2247
|
+
@property
|
|
2248
|
+
def ModelSet(self):
|
|
2249
|
+
r"""<p>模型列表。</p>
|
|
2250
|
+
:rtype: list of Model
|
|
2251
|
+
"""
|
|
2252
|
+
return self._ModelSet
|
|
2253
|
+
|
|
2254
|
+
@ModelSet.setter
|
|
2255
|
+
def ModelSet(self, ModelSet):
|
|
2256
|
+
self._ModelSet = ModelSet
|
|
2257
|
+
|
|
2258
|
+
@property
|
|
2259
|
+
def TotalCount(self):
|
|
2260
|
+
r"""<p>符合条件的模型总数。</p>
|
|
2261
|
+
:rtype: int
|
|
2262
|
+
"""
|
|
2263
|
+
return self._TotalCount
|
|
2264
|
+
|
|
2265
|
+
@TotalCount.setter
|
|
2266
|
+
def TotalCount(self, TotalCount):
|
|
2267
|
+
self._TotalCount = TotalCount
|
|
2268
|
+
|
|
2241
2269
|
@property
|
|
2242
2270
|
def RequestId(self):
|
|
2243
2271
|
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -2251,6 +2279,13 @@ class DescribeModelListResponse(AbstractModel):
|
|
|
2251
2279
|
|
|
2252
2280
|
|
|
2253
2281
|
def _deserialize(self, params):
|
|
2282
|
+
if params.get("ModelSet") is not None:
|
|
2283
|
+
self._ModelSet = []
|
|
2284
|
+
for item in params.get("ModelSet"):
|
|
2285
|
+
obj = Model()
|
|
2286
|
+
obj._deserialize(item)
|
|
2287
|
+
self._ModelSet.append(obj)
|
|
2288
|
+
self._TotalCount = params.get("TotalCount")
|
|
2254
2289
|
self._RequestId = params.get("RequestId")
|
|
2255
2290
|
|
|
2256
2291
|
|
|
@@ -3972,6 +4007,842 @@ class GlossaryItem(AbstractModel):
|
|
|
3972
4007
|
|
|
3973
4008
|
|
|
3974
4009
|
|
|
4010
|
+
class Model(AbstractModel):
|
|
4011
|
+
r"""模型信息
|
|
4012
|
+
|
|
4013
|
+
"""
|
|
4014
|
+
|
|
4015
|
+
def __init__(self):
|
|
4016
|
+
r"""
|
|
4017
|
+
:param _ModelName: <p>模型名称</p>
|
|
4018
|
+
:type ModelName: str
|
|
4019
|
+
:param _ModelId: <p>模型 ID。</p>
|
|
4020
|
+
:type ModelId: str
|
|
4021
|
+
:param _DisplayName: <p>模型显示名称。</p>
|
|
4022
|
+
:type DisplayName: str
|
|
4023
|
+
:param _Description: <p>模型描述。</p>
|
|
4024
|
+
:type Description: str
|
|
4025
|
+
:param _Summary: <p>模型概要。</p>
|
|
4026
|
+
:type Summary: str
|
|
4027
|
+
:param _ModelType: <p>模型类型。取值:Text(文本)、Vision(视觉)、Multimodal(多模态)、Speech(语音)、Embedding(向量)。</p><p>枚举值:</p><ul><li>Text: 语言模型</li><li>Vision: 视觉模型</li><li>Multimodal: 多模态模型</li></ul>
|
|
4028
|
+
:type ModelType: str
|
|
4029
|
+
:param _Brand: <p>模型品牌。</p>
|
|
4030
|
+
:type Brand: str
|
|
4031
|
+
:param _ModelImage: <p>模型图标。</p>
|
|
4032
|
+
:type ModelImage: :class:`tencentcloud.tokenhub.v20260322.models.ModelImage`
|
|
4033
|
+
:param _Provider: <p>模型供应商。</p>
|
|
4034
|
+
:type Provider: str
|
|
4035
|
+
:param _Status: <p>模型状态。取值:online(上线)、offline(下线)。</p><p>枚举值:</p><ul><li>online : 上线</li><li>pre-offline: 预下线</li></ul>
|
|
4036
|
+
:type Status: str
|
|
4037
|
+
:param _Tags: <p>标签列表。</p>
|
|
4038
|
+
:type Tags: list of str
|
|
4039
|
+
:param _ModelChargingInfo: <p>计费信息列表。</p>
|
|
4040
|
+
:type ModelChargingInfo: list of ModelChargingInfo
|
|
4041
|
+
:param _ModelSpec: <p>模型规格。</p>
|
|
4042
|
+
:type ModelSpec: :class:`tencentcloud.tokenhub.v20260322.models.ModelSpec`
|
|
4043
|
+
:param _ReleaseAt: <p>发布时间。</p>
|
|
4044
|
+
:type ReleaseAt: str
|
|
4045
|
+
:param _RecommendWeight: <p>推荐顺序,值越小排序越靠前。</p>
|
|
4046
|
+
:type RecommendWeight: int
|
|
4047
|
+
:param _ModelAccessInfo: <p>模型访问信息。包含模型在各站点和地域的可用性配置。为空时表示未配置地域信息,模型不可用。</p>
|
|
4048
|
+
:type ModelAccessInfo: :class:`tencentcloud.tokenhub.v20260322.models.ModelAccessInfo`
|
|
4049
|
+
:param _FreeTrialInfo: <p>体验包信息。</p>
|
|
4050
|
+
:type FreeTrialInfo: :class:`tencentcloud.tokenhub.v20260322.models.ModelFreeTrialInfo`
|
|
4051
|
+
:param _OfflineAt: <p>模型下线时间,Status=pre-offline 时,会配置模型下线时间</p>
|
|
4052
|
+
:type OfflineAt: str
|
|
4053
|
+
"""
|
|
4054
|
+
self._ModelName = None
|
|
4055
|
+
self._ModelId = None
|
|
4056
|
+
self._DisplayName = None
|
|
4057
|
+
self._Description = None
|
|
4058
|
+
self._Summary = None
|
|
4059
|
+
self._ModelType = None
|
|
4060
|
+
self._Brand = None
|
|
4061
|
+
self._ModelImage = None
|
|
4062
|
+
self._Provider = None
|
|
4063
|
+
self._Status = None
|
|
4064
|
+
self._Tags = None
|
|
4065
|
+
self._ModelChargingInfo = None
|
|
4066
|
+
self._ModelSpec = None
|
|
4067
|
+
self._ReleaseAt = None
|
|
4068
|
+
self._RecommendWeight = None
|
|
4069
|
+
self._ModelAccessInfo = None
|
|
4070
|
+
self._FreeTrialInfo = None
|
|
4071
|
+
self._OfflineAt = None
|
|
4072
|
+
|
|
4073
|
+
@property
|
|
4074
|
+
def ModelName(self):
|
|
4075
|
+
r"""<p>模型名称</p>
|
|
4076
|
+
:rtype: str
|
|
4077
|
+
"""
|
|
4078
|
+
return self._ModelName
|
|
4079
|
+
|
|
4080
|
+
@ModelName.setter
|
|
4081
|
+
def ModelName(self, ModelName):
|
|
4082
|
+
self._ModelName = ModelName
|
|
4083
|
+
|
|
4084
|
+
@property
|
|
4085
|
+
def ModelId(self):
|
|
4086
|
+
r"""<p>模型 ID。</p>
|
|
4087
|
+
:rtype: str
|
|
4088
|
+
"""
|
|
4089
|
+
return self._ModelId
|
|
4090
|
+
|
|
4091
|
+
@ModelId.setter
|
|
4092
|
+
def ModelId(self, ModelId):
|
|
4093
|
+
self._ModelId = ModelId
|
|
4094
|
+
|
|
4095
|
+
@property
|
|
4096
|
+
def DisplayName(self):
|
|
4097
|
+
r"""<p>模型显示名称。</p>
|
|
4098
|
+
:rtype: str
|
|
4099
|
+
"""
|
|
4100
|
+
return self._DisplayName
|
|
4101
|
+
|
|
4102
|
+
@DisplayName.setter
|
|
4103
|
+
def DisplayName(self, DisplayName):
|
|
4104
|
+
self._DisplayName = DisplayName
|
|
4105
|
+
|
|
4106
|
+
@property
|
|
4107
|
+
def Description(self):
|
|
4108
|
+
r"""<p>模型描述。</p>
|
|
4109
|
+
:rtype: str
|
|
4110
|
+
"""
|
|
4111
|
+
return self._Description
|
|
4112
|
+
|
|
4113
|
+
@Description.setter
|
|
4114
|
+
def Description(self, Description):
|
|
4115
|
+
self._Description = Description
|
|
4116
|
+
|
|
4117
|
+
@property
|
|
4118
|
+
def Summary(self):
|
|
4119
|
+
r"""<p>模型概要。</p>
|
|
4120
|
+
:rtype: str
|
|
4121
|
+
"""
|
|
4122
|
+
return self._Summary
|
|
4123
|
+
|
|
4124
|
+
@Summary.setter
|
|
4125
|
+
def Summary(self, Summary):
|
|
4126
|
+
self._Summary = Summary
|
|
4127
|
+
|
|
4128
|
+
@property
|
|
4129
|
+
def ModelType(self):
|
|
4130
|
+
r"""<p>模型类型。取值:Text(文本)、Vision(视觉)、Multimodal(多模态)、Speech(语音)、Embedding(向量)。</p><p>枚举值:</p><ul><li>Text: 语言模型</li><li>Vision: 视觉模型</li><li>Multimodal: 多模态模型</li></ul>
|
|
4131
|
+
:rtype: str
|
|
4132
|
+
"""
|
|
4133
|
+
return self._ModelType
|
|
4134
|
+
|
|
4135
|
+
@ModelType.setter
|
|
4136
|
+
def ModelType(self, ModelType):
|
|
4137
|
+
self._ModelType = ModelType
|
|
4138
|
+
|
|
4139
|
+
@property
|
|
4140
|
+
def Brand(self):
|
|
4141
|
+
r"""<p>模型品牌。</p>
|
|
4142
|
+
:rtype: str
|
|
4143
|
+
"""
|
|
4144
|
+
return self._Brand
|
|
4145
|
+
|
|
4146
|
+
@Brand.setter
|
|
4147
|
+
def Brand(self, Brand):
|
|
4148
|
+
self._Brand = Brand
|
|
4149
|
+
|
|
4150
|
+
@property
|
|
4151
|
+
def ModelImage(self):
|
|
4152
|
+
r"""<p>模型图标。</p>
|
|
4153
|
+
:rtype: :class:`tencentcloud.tokenhub.v20260322.models.ModelImage`
|
|
4154
|
+
"""
|
|
4155
|
+
return self._ModelImage
|
|
4156
|
+
|
|
4157
|
+
@ModelImage.setter
|
|
4158
|
+
def ModelImage(self, ModelImage):
|
|
4159
|
+
self._ModelImage = ModelImage
|
|
4160
|
+
|
|
4161
|
+
@property
|
|
4162
|
+
def Provider(self):
|
|
4163
|
+
r"""<p>模型供应商。</p>
|
|
4164
|
+
:rtype: str
|
|
4165
|
+
"""
|
|
4166
|
+
return self._Provider
|
|
4167
|
+
|
|
4168
|
+
@Provider.setter
|
|
4169
|
+
def Provider(self, Provider):
|
|
4170
|
+
self._Provider = Provider
|
|
4171
|
+
|
|
4172
|
+
@property
|
|
4173
|
+
def Status(self):
|
|
4174
|
+
r"""<p>模型状态。取值:online(上线)、offline(下线)。</p><p>枚举值:</p><ul><li>online : 上线</li><li>pre-offline: 预下线</li></ul>
|
|
4175
|
+
:rtype: str
|
|
4176
|
+
"""
|
|
4177
|
+
return self._Status
|
|
4178
|
+
|
|
4179
|
+
@Status.setter
|
|
4180
|
+
def Status(self, Status):
|
|
4181
|
+
self._Status = Status
|
|
4182
|
+
|
|
4183
|
+
@property
|
|
4184
|
+
def Tags(self):
|
|
4185
|
+
r"""<p>标签列表。</p>
|
|
4186
|
+
:rtype: list of str
|
|
4187
|
+
"""
|
|
4188
|
+
return self._Tags
|
|
4189
|
+
|
|
4190
|
+
@Tags.setter
|
|
4191
|
+
def Tags(self, Tags):
|
|
4192
|
+
self._Tags = Tags
|
|
4193
|
+
|
|
4194
|
+
@property
|
|
4195
|
+
def ModelChargingInfo(self):
|
|
4196
|
+
r"""<p>计费信息列表。</p>
|
|
4197
|
+
:rtype: list of ModelChargingInfo
|
|
4198
|
+
"""
|
|
4199
|
+
return self._ModelChargingInfo
|
|
4200
|
+
|
|
4201
|
+
@ModelChargingInfo.setter
|
|
4202
|
+
def ModelChargingInfo(self, ModelChargingInfo):
|
|
4203
|
+
self._ModelChargingInfo = ModelChargingInfo
|
|
4204
|
+
|
|
4205
|
+
@property
|
|
4206
|
+
def ModelSpec(self):
|
|
4207
|
+
r"""<p>模型规格。</p>
|
|
4208
|
+
:rtype: :class:`tencentcloud.tokenhub.v20260322.models.ModelSpec`
|
|
4209
|
+
"""
|
|
4210
|
+
return self._ModelSpec
|
|
4211
|
+
|
|
4212
|
+
@ModelSpec.setter
|
|
4213
|
+
def ModelSpec(self, ModelSpec):
|
|
4214
|
+
self._ModelSpec = ModelSpec
|
|
4215
|
+
|
|
4216
|
+
@property
|
|
4217
|
+
def ReleaseAt(self):
|
|
4218
|
+
r"""<p>发布时间。</p>
|
|
4219
|
+
:rtype: str
|
|
4220
|
+
"""
|
|
4221
|
+
return self._ReleaseAt
|
|
4222
|
+
|
|
4223
|
+
@ReleaseAt.setter
|
|
4224
|
+
def ReleaseAt(self, ReleaseAt):
|
|
4225
|
+
self._ReleaseAt = ReleaseAt
|
|
4226
|
+
|
|
4227
|
+
@property
|
|
4228
|
+
def RecommendWeight(self):
|
|
4229
|
+
r"""<p>推荐顺序,值越小排序越靠前。</p>
|
|
4230
|
+
:rtype: int
|
|
4231
|
+
"""
|
|
4232
|
+
return self._RecommendWeight
|
|
4233
|
+
|
|
4234
|
+
@RecommendWeight.setter
|
|
4235
|
+
def RecommendWeight(self, RecommendWeight):
|
|
4236
|
+
self._RecommendWeight = RecommendWeight
|
|
4237
|
+
|
|
4238
|
+
@property
|
|
4239
|
+
def ModelAccessInfo(self):
|
|
4240
|
+
r"""<p>模型访问信息。包含模型在各站点和地域的可用性配置。为空时表示未配置地域信息,模型不可用。</p>
|
|
4241
|
+
:rtype: :class:`tencentcloud.tokenhub.v20260322.models.ModelAccessInfo`
|
|
4242
|
+
"""
|
|
4243
|
+
return self._ModelAccessInfo
|
|
4244
|
+
|
|
4245
|
+
@ModelAccessInfo.setter
|
|
4246
|
+
def ModelAccessInfo(self, ModelAccessInfo):
|
|
4247
|
+
self._ModelAccessInfo = ModelAccessInfo
|
|
4248
|
+
|
|
4249
|
+
@property
|
|
4250
|
+
def FreeTrialInfo(self):
|
|
4251
|
+
r"""<p>体验包信息。</p>
|
|
4252
|
+
:rtype: :class:`tencentcloud.tokenhub.v20260322.models.ModelFreeTrialInfo`
|
|
4253
|
+
"""
|
|
4254
|
+
return self._FreeTrialInfo
|
|
4255
|
+
|
|
4256
|
+
@FreeTrialInfo.setter
|
|
4257
|
+
def FreeTrialInfo(self, FreeTrialInfo):
|
|
4258
|
+
self._FreeTrialInfo = FreeTrialInfo
|
|
4259
|
+
|
|
4260
|
+
@property
|
|
4261
|
+
def OfflineAt(self):
|
|
4262
|
+
r"""<p>模型下线时间,Status=pre-offline 时,会配置模型下线时间</p>
|
|
4263
|
+
:rtype: str
|
|
4264
|
+
"""
|
|
4265
|
+
return self._OfflineAt
|
|
4266
|
+
|
|
4267
|
+
@OfflineAt.setter
|
|
4268
|
+
def OfflineAt(self, OfflineAt):
|
|
4269
|
+
self._OfflineAt = OfflineAt
|
|
4270
|
+
|
|
4271
|
+
|
|
4272
|
+
def _deserialize(self, params):
|
|
4273
|
+
self._ModelName = params.get("ModelName")
|
|
4274
|
+
self._ModelId = params.get("ModelId")
|
|
4275
|
+
self._DisplayName = params.get("DisplayName")
|
|
4276
|
+
self._Description = params.get("Description")
|
|
4277
|
+
self._Summary = params.get("Summary")
|
|
4278
|
+
self._ModelType = params.get("ModelType")
|
|
4279
|
+
self._Brand = params.get("Brand")
|
|
4280
|
+
if params.get("ModelImage") is not None:
|
|
4281
|
+
self._ModelImage = ModelImage()
|
|
4282
|
+
self._ModelImage._deserialize(params.get("ModelImage"))
|
|
4283
|
+
self._Provider = params.get("Provider")
|
|
4284
|
+
self._Status = params.get("Status")
|
|
4285
|
+
self._Tags = params.get("Tags")
|
|
4286
|
+
if params.get("ModelChargingInfo") is not None:
|
|
4287
|
+
self._ModelChargingInfo = []
|
|
4288
|
+
for item in params.get("ModelChargingInfo"):
|
|
4289
|
+
obj = ModelChargingInfo()
|
|
4290
|
+
obj._deserialize(item)
|
|
4291
|
+
self._ModelChargingInfo.append(obj)
|
|
4292
|
+
if params.get("ModelSpec") is not None:
|
|
4293
|
+
self._ModelSpec = ModelSpec()
|
|
4294
|
+
self._ModelSpec._deserialize(params.get("ModelSpec"))
|
|
4295
|
+
self._ReleaseAt = params.get("ReleaseAt")
|
|
4296
|
+
self._RecommendWeight = params.get("RecommendWeight")
|
|
4297
|
+
if params.get("ModelAccessInfo") is not None:
|
|
4298
|
+
self._ModelAccessInfo = ModelAccessInfo()
|
|
4299
|
+
self._ModelAccessInfo._deserialize(params.get("ModelAccessInfo"))
|
|
4300
|
+
if params.get("FreeTrialInfo") is not None:
|
|
4301
|
+
self._FreeTrialInfo = ModelFreeTrialInfo()
|
|
4302
|
+
self._FreeTrialInfo._deserialize(params.get("FreeTrialInfo"))
|
|
4303
|
+
self._OfflineAt = params.get("OfflineAt")
|
|
4304
|
+
memeber_set = set(params.keys())
|
|
4305
|
+
for name, value in vars(self).items():
|
|
4306
|
+
property_name = name[1:]
|
|
4307
|
+
if property_name in memeber_set:
|
|
4308
|
+
memeber_set.remove(property_name)
|
|
4309
|
+
if len(memeber_set) > 0:
|
|
4310
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4311
|
+
|
|
4312
|
+
|
|
4313
|
+
|
|
4314
|
+
class ModelAccessInfo(AbstractModel):
|
|
4315
|
+
r"""模型访问信息
|
|
4316
|
+
|
|
4317
|
+
"""
|
|
4318
|
+
|
|
4319
|
+
def __init__(self):
|
|
4320
|
+
r"""
|
|
4321
|
+
:param _ModelSiteRegions: 各站点的地域可用性列表。为空时表示未配置地域信息,模型不可用。
|
|
4322
|
+
:type ModelSiteRegions: list of ModelSiteRegion
|
|
4323
|
+
"""
|
|
4324
|
+
self._ModelSiteRegions = None
|
|
4325
|
+
|
|
4326
|
+
@property
|
|
4327
|
+
def ModelSiteRegions(self):
|
|
4328
|
+
r"""各站点的地域可用性列表。为空时表示未配置地域信息,模型不可用。
|
|
4329
|
+
:rtype: list of ModelSiteRegion
|
|
4330
|
+
"""
|
|
4331
|
+
return self._ModelSiteRegions
|
|
4332
|
+
|
|
4333
|
+
@ModelSiteRegions.setter
|
|
4334
|
+
def ModelSiteRegions(self, ModelSiteRegions):
|
|
4335
|
+
self._ModelSiteRegions = ModelSiteRegions
|
|
4336
|
+
|
|
4337
|
+
|
|
4338
|
+
def _deserialize(self, params):
|
|
4339
|
+
if params.get("ModelSiteRegions") is not None:
|
|
4340
|
+
self._ModelSiteRegions = []
|
|
4341
|
+
for item in params.get("ModelSiteRegions"):
|
|
4342
|
+
obj = ModelSiteRegion()
|
|
4343
|
+
obj._deserialize(item)
|
|
4344
|
+
self._ModelSiteRegions.append(obj)
|
|
4345
|
+
memeber_set = set(params.keys())
|
|
4346
|
+
for name, value in vars(self).items():
|
|
4347
|
+
property_name = name[1:]
|
|
4348
|
+
if property_name in memeber_set:
|
|
4349
|
+
memeber_set.remove(property_name)
|
|
4350
|
+
if len(memeber_set) > 0:
|
|
4351
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4352
|
+
|
|
4353
|
+
|
|
4354
|
+
|
|
4355
|
+
class ModelChargingInfo(AbstractModel):
|
|
4356
|
+
r"""模型计费信息
|
|
4357
|
+
|
|
4358
|
+
"""
|
|
4359
|
+
|
|
4360
|
+
def __init__(self):
|
|
4361
|
+
r"""
|
|
4362
|
+
:param _Type: 计费类型。取值:Uniform(统一计费)、Tiered(阶梯计费)。
|
|
4363
|
+
:type Type: str
|
|
4364
|
+
:param _Name: 计费名称,阶梯计费时表示区间标识,统一计费为空。
|
|
4365
|
+
:type Name: str
|
|
4366
|
+
:param _Scenario: 计费场景,用于区分同一产品不同功能的计费。
|
|
4367
|
+
:type Scenario: str
|
|
4368
|
+
:param _ChargingItems: 计费条目列表,顺序即前端展示顺序。
|
|
4369
|
+
:type ChargingItems: list of ModelChargingItem
|
|
4370
|
+
:param _ChargeUnit: 计费单位。取值:TOKEN(词元)、COUNT(次)、CREDIT(积分)、PICTURE(张)。
|
|
4371
|
+
:type ChargeUnit: str
|
|
4372
|
+
:param _Reference: 计费参考链接。
|
|
4373
|
+
:type Reference: str
|
|
4374
|
+
"""
|
|
4375
|
+
self._Type = None
|
|
4376
|
+
self._Name = None
|
|
4377
|
+
self._Scenario = None
|
|
4378
|
+
self._ChargingItems = None
|
|
4379
|
+
self._ChargeUnit = None
|
|
4380
|
+
self._Reference = None
|
|
4381
|
+
|
|
4382
|
+
@property
|
|
4383
|
+
def Type(self):
|
|
4384
|
+
r"""计费类型。取值:Uniform(统一计费)、Tiered(阶梯计费)。
|
|
4385
|
+
:rtype: str
|
|
4386
|
+
"""
|
|
4387
|
+
return self._Type
|
|
4388
|
+
|
|
4389
|
+
@Type.setter
|
|
4390
|
+
def Type(self, Type):
|
|
4391
|
+
self._Type = Type
|
|
4392
|
+
|
|
4393
|
+
@property
|
|
4394
|
+
def Name(self):
|
|
4395
|
+
r"""计费名称,阶梯计费时表示区间标识,统一计费为空。
|
|
4396
|
+
:rtype: str
|
|
4397
|
+
"""
|
|
4398
|
+
return self._Name
|
|
4399
|
+
|
|
4400
|
+
@Name.setter
|
|
4401
|
+
def Name(self, Name):
|
|
4402
|
+
self._Name = Name
|
|
4403
|
+
|
|
4404
|
+
@property
|
|
4405
|
+
def Scenario(self):
|
|
4406
|
+
r"""计费场景,用于区分同一产品不同功能的计费。
|
|
4407
|
+
:rtype: str
|
|
4408
|
+
"""
|
|
4409
|
+
return self._Scenario
|
|
4410
|
+
|
|
4411
|
+
@Scenario.setter
|
|
4412
|
+
def Scenario(self, Scenario):
|
|
4413
|
+
self._Scenario = Scenario
|
|
4414
|
+
|
|
4415
|
+
@property
|
|
4416
|
+
def ChargingItems(self):
|
|
4417
|
+
r"""计费条目列表,顺序即前端展示顺序。
|
|
4418
|
+
:rtype: list of ModelChargingItem
|
|
4419
|
+
"""
|
|
4420
|
+
return self._ChargingItems
|
|
4421
|
+
|
|
4422
|
+
@ChargingItems.setter
|
|
4423
|
+
def ChargingItems(self, ChargingItems):
|
|
4424
|
+
self._ChargingItems = ChargingItems
|
|
4425
|
+
|
|
4426
|
+
@property
|
|
4427
|
+
def ChargeUnit(self):
|
|
4428
|
+
r"""计费单位。取值:TOKEN(词元)、COUNT(次)、CREDIT(积分)、PICTURE(张)。
|
|
4429
|
+
:rtype: str
|
|
4430
|
+
"""
|
|
4431
|
+
return self._ChargeUnit
|
|
4432
|
+
|
|
4433
|
+
@ChargeUnit.setter
|
|
4434
|
+
def ChargeUnit(self, ChargeUnit):
|
|
4435
|
+
self._ChargeUnit = ChargeUnit
|
|
4436
|
+
|
|
4437
|
+
@property
|
|
4438
|
+
def Reference(self):
|
|
4439
|
+
r"""计费参考链接。
|
|
4440
|
+
:rtype: str
|
|
4441
|
+
"""
|
|
4442
|
+
return self._Reference
|
|
4443
|
+
|
|
4444
|
+
@Reference.setter
|
|
4445
|
+
def Reference(self, Reference):
|
|
4446
|
+
self._Reference = Reference
|
|
4447
|
+
|
|
4448
|
+
|
|
4449
|
+
def _deserialize(self, params):
|
|
4450
|
+
self._Type = params.get("Type")
|
|
4451
|
+
self._Name = params.get("Name")
|
|
4452
|
+
self._Scenario = params.get("Scenario")
|
|
4453
|
+
if params.get("ChargingItems") is not None:
|
|
4454
|
+
self._ChargingItems = []
|
|
4455
|
+
for item in params.get("ChargingItems"):
|
|
4456
|
+
obj = ModelChargingItem()
|
|
4457
|
+
obj._deserialize(item)
|
|
4458
|
+
self._ChargingItems.append(obj)
|
|
4459
|
+
self._ChargeUnit = params.get("ChargeUnit")
|
|
4460
|
+
self._Reference = params.get("Reference")
|
|
4461
|
+
memeber_set = set(params.keys())
|
|
4462
|
+
for name, value in vars(self).items():
|
|
4463
|
+
property_name = name[1:]
|
|
4464
|
+
if property_name in memeber_set:
|
|
4465
|
+
memeber_set.remove(property_name)
|
|
4466
|
+
if len(memeber_set) > 0:
|
|
4467
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4468
|
+
|
|
4469
|
+
|
|
4470
|
+
|
|
4471
|
+
class ModelChargingItem(AbstractModel):
|
|
4472
|
+
r"""计费条目
|
|
4473
|
+
|
|
4474
|
+
"""
|
|
4475
|
+
|
|
4476
|
+
def __init__(self):
|
|
4477
|
+
r"""
|
|
4478
|
+
:param _PriceName: 价格维度标识。取值:Input(输入)、Output(输出)、Cache(缓存命中)、Thinking(思考)、BatchInput(批量输入)、BatchOutput(批量输出)、BatchCache(批量缓存命中)、ImageInput(输入图片)、ImageOutput(输出图片)、Search(搜索调用)。
|
|
4479
|
+
:type PriceName: str
|
|
4480
|
+
:param _DisplayName: 价格维度展示名,后端直接提供当前语言文本(如 输入、Input),前端无需翻译。
|
|
4481
|
+
:type DisplayName: str
|
|
4482
|
+
:param _Price: 价格数值。
|
|
4483
|
+
:type Price: str
|
|
4484
|
+
:param _PriceUnit: 价格单位,后端直接提供当前语言文本(如 元/百万tokens、元/张、积分/次)。
|
|
4485
|
+
:type PriceUnit: str
|
|
4486
|
+
"""
|
|
4487
|
+
self._PriceName = None
|
|
4488
|
+
self._DisplayName = None
|
|
4489
|
+
self._Price = None
|
|
4490
|
+
self._PriceUnit = None
|
|
4491
|
+
|
|
4492
|
+
@property
|
|
4493
|
+
def PriceName(self):
|
|
4494
|
+
r"""价格维度标识。取值:Input(输入)、Output(输出)、Cache(缓存命中)、Thinking(思考)、BatchInput(批量输入)、BatchOutput(批量输出)、BatchCache(批量缓存命中)、ImageInput(输入图片)、ImageOutput(输出图片)、Search(搜索调用)。
|
|
4495
|
+
:rtype: str
|
|
4496
|
+
"""
|
|
4497
|
+
return self._PriceName
|
|
4498
|
+
|
|
4499
|
+
@PriceName.setter
|
|
4500
|
+
def PriceName(self, PriceName):
|
|
4501
|
+
self._PriceName = PriceName
|
|
4502
|
+
|
|
4503
|
+
@property
|
|
4504
|
+
def DisplayName(self):
|
|
4505
|
+
r"""价格维度展示名,后端直接提供当前语言文本(如 输入、Input),前端无需翻译。
|
|
4506
|
+
:rtype: str
|
|
4507
|
+
"""
|
|
4508
|
+
return self._DisplayName
|
|
4509
|
+
|
|
4510
|
+
@DisplayName.setter
|
|
4511
|
+
def DisplayName(self, DisplayName):
|
|
4512
|
+
self._DisplayName = DisplayName
|
|
4513
|
+
|
|
4514
|
+
@property
|
|
4515
|
+
def Price(self):
|
|
4516
|
+
r"""价格数值。
|
|
4517
|
+
:rtype: str
|
|
4518
|
+
"""
|
|
4519
|
+
return self._Price
|
|
4520
|
+
|
|
4521
|
+
@Price.setter
|
|
4522
|
+
def Price(self, Price):
|
|
4523
|
+
self._Price = Price
|
|
4524
|
+
|
|
4525
|
+
@property
|
|
4526
|
+
def PriceUnit(self):
|
|
4527
|
+
r"""价格单位,后端直接提供当前语言文本(如 元/百万tokens、元/张、积分/次)。
|
|
4528
|
+
:rtype: str
|
|
4529
|
+
"""
|
|
4530
|
+
return self._PriceUnit
|
|
4531
|
+
|
|
4532
|
+
@PriceUnit.setter
|
|
4533
|
+
def PriceUnit(self, PriceUnit):
|
|
4534
|
+
self._PriceUnit = PriceUnit
|
|
4535
|
+
|
|
4536
|
+
|
|
4537
|
+
def _deserialize(self, params):
|
|
4538
|
+
self._PriceName = params.get("PriceName")
|
|
4539
|
+
self._DisplayName = params.get("DisplayName")
|
|
4540
|
+
self._Price = params.get("Price")
|
|
4541
|
+
self._PriceUnit = params.get("PriceUnit")
|
|
4542
|
+
memeber_set = set(params.keys())
|
|
4543
|
+
for name, value in vars(self).items():
|
|
4544
|
+
property_name = name[1:]
|
|
4545
|
+
if property_name in memeber_set:
|
|
4546
|
+
memeber_set.remove(property_name)
|
|
4547
|
+
if len(memeber_set) > 0:
|
|
4548
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4549
|
+
|
|
4550
|
+
|
|
4551
|
+
|
|
4552
|
+
class ModelFreeTrialInfo(AbstractModel):
|
|
4553
|
+
r"""模型体验包信息
|
|
4554
|
+
|
|
4555
|
+
"""
|
|
4556
|
+
|
|
4557
|
+
def __init__(self):
|
|
4558
|
+
r"""
|
|
4559
|
+
:param _RecommendWeight: 推荐顺序,值越小排序越靠前。为空表示使用模型默认权重。
|
|
4560
|
+
:type RecommendWeight: int
|
|
4561
|
+
:param _CapacitySize: 体验包容量大小。
|
|
4562
|
+
:type CapacitySize: int
|
|
4563
|
+
:param _Unit: 容量单位。取值:token。
|
|
4564
|
+
:type Unit: str
|
|
4565
|
+
:param _ValidityDays: 有效期天数(如90天)。为空表示不限期。
|
|
4566
|
+
:type ValidityDays: int
|
|
4567
|
+
"""
|
|
4568
|
+
self._RecommendWeight = None
|
|
4569
|
+
self._CapacitySize = None
|
|
4570
|
+
self._Unit = None
|
|
4571
|
+
self._ValidityDays = None
|
|
4572
|
+
|
|
4573
|
+
@property
|
|
4574
|
+
def RecommendWeight(self):
|
|
4575
|
+
r"""推荐顺序,值越小排序越靠前。为空表示使用模型默认权重。
|
|
4576
|
+
:rtype: int
|
|
4577
|
+
"""
|
|
4578
|
+
return self._RecommendWeight
|
|
4579
|
+
|
|
4580
|
+
@RecommendWeight.setter
|
|
4581
|
+
def RecommendWeight(self, RecommendWeight):
|
|
4582
|
+
self._RecommendWeight = RecommendWeight
|
|
4583
|
+
|
|
4584
|
+
@property
|
|
4585
|
+
def CapacitySize(self):
|
|
4586
|
+
r"""体验包容量大小。
|
|
4587
|
+
:rtype: int
|
|
4588
|
+
"""
|
|
4589
|
+
return self._CapacitySize
|
|
4590
|
+
|
|
4591
|
+
@CapacitySize.setter
|
|
4592
|
+
def CapacitySize(self, CapacitySize):
|
|
4593
|
+
self._CapacitySize = CapacitySize
|
|
4594
|
+
|
|
4595
|
+
@property
|
|
4596
|
+
def Unit(self):
|
|
4597
|
+
r"""容量单位。取值:token。
|
|
4598
|
+
:rtype: str
|
|
4599
|
+
"""
|
|
4600
|
+
return self._Unit
|
|
4601
|
+
|
|
4602
|
+
@Unit.setter
|
|
4603
|
+
def Unit(self, Unit):
|
|
4604
|
+
self._Unit = Unit
|
|
4605
|
+
|
|
4606
|
+
@property
|
|
4607
|
+
def ValidityDays(self):
|
|
4608
|
+
r"""有效期天数(如90天)。为空表示不限期。
|
|
4609
|
+
:rtype: int
|
|
4610
|
+
"""
|
|
4611
|
+
return self._ValidityDays
|
|
4612
|
+
|
|
4613
|
+
@ValidityDays.setter
|
|
4614
|
+
def ValidityDays(self, ValidityDays):
|
|
4615
|
+
self._ValidityDays = ValidityDays
|
|
4616
|
+
|
|
4617
|
+
|
|
4618
|
+
def _deserialize(self, params):
|
|
4619
|
+
self._RecommendWeight = params.get("RecommendWeight")
|
|
4620
|
+
self._CapacitySize = params.get("CapacitySize")
|
|
4621
|
+
self._Unit = params.get("Unit")
|
|
4622
|
+
self._ValidityDays = params.get("ValidityDays")
|
|
4623
|
+
memeber_set = set(params.keys())
|
|
4624
|
+
for name, value in vars(self).items():
|
|
4625
|
+
property_name = name[1:]
|
|
4626
|
+
if property_name in memeber_set:
|
|
4627
|
+
memeber_set.remove(property_name)
|
|
4628
|
+
if len(memeber_set) > 0:
|
|
4629
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4630
|
+
|
|
4631
|
+
|
|
4632
|
+
|
|
4633
|
+
class ModelImage(AbstractModel):
|
|
4634
|
+
r"""模型图标信息
|
|
4635
|
+
|
|
4636
|
+
"""
|
|
4637
|
+
|
|
4638
|
+
def __init__(self):
|
|
4639
|
+
r"""
|
|
4640
|
+
:param _Url: 图标 URL。
|
|
4641
|
+
:type Url: str
|
|
4642
|
+
"""
|
|
4643
|
+
self._Url = None
|
|
4644
|
+
|
|
4645
|
+
@property
|
|
4646
|
+
def Url(self):
|
|
4647
|
+
r"""图标 URL。
|
|
4648
|
+
:rtype: str
|
|
4649
|
+
"""
|
|
4650
|
+
return self._Url
|
|
4651
|
+
|
|
4652
|
+
@Url.setter
|
|
4653
|
+
def Url(self, Url):
|
|
4654
|
+
self._Url = Url
|
|
4655
|
+
|
|
4656
|
+
|
|
4657
|
+
def _deserialize(self, params):
|
|
4658
|
+
self._Url = params.get("Url")
|
|
4659
|
+
memeber_set = set(params.keys())
|
|
4660
|
+
for name, value in vars(self).items():
|
|
4661
|
+
property_name = name[1:]
|
|
4662
|
+
if property_name in memeber_set:
|
|
4663
|
+
memeber_set.remove(property_name)
|
|
4664
|
+
if len(memeber_set) > 0:
|
|
4665
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4666
|
+
|
|
4667
|
+
|
|
4668
|
+
|
|
4669
|
+
class ModelSiteRegion(AbstractModel):
|
|
4670
|
+
r"""模型上线的站点、地域信息
|
|
4671
|
+
|
|
4672
|
+
"""
|
|
4673
|
+
|
|
4674
|
+
def __init__(self):
|
|
4675
|
+
r"""
|
|
4676
|
+
:param _Site: 站点标识。取值:domestic(国内站)、international(国际站)。
|
|
4677
|
+
:type Site: str
|
|
4678
|
+
:param _Regions: 该站点下可用的地域列表,遵循腾讯云标准地域编码(如 ap-guangzhou、ap-beijing、ap-singapore、na-siliconvalley 等)。为空数组时表示该站点无可用地域。
|
|
4679
|
+
:type Regions: list of str
|
|
4680
|
+
"""
|
|
4681
|
+
self._Site = None
|
|
4682
|
+
self._Regions = None
|
|
4683
|
+
|
|
4684
|
+
@property
|
|
4685
|
+
def Site(self):
|
|
4686
|
+
r"""站点标识。取值:domestic(国内站)、international(国际站)。
|
|
4687
|
+
:rtype: str
|
|
4688
|
+
"""
|
|
4689
|
+
return self._Site
|
|
4690
|
+
|
|
4691
|
+
@Site.setter
|
|
4692
|
+
def Site(self, Site):
|
|
4693
|
+
self._Site = Site
|
|
4694
|
+
|
|
4695
|
+
@property
|
|
4696
|
+
def Regions(self):
|
|
4697
|
+
r"""该站点下可用的地域列表,遵循腾讯云标准地域编码(如 ap-guangzhou、ap-beijing、ap-singapore、na-siliconvalley 等)。为空数组时表示该站点无可用地域。
|
|
4698
|
+
:rtype: list of str
|
|
4699
|
+
"""
|
|
4700
|
+
return self._Regions
|
|
4701
|
+
|
|
4702
|
+
@Regions.setter
|
|
4703
|
+
def Regions(self, Regions):
|
|
4704
|
+
self._Regions = Regions
|
|
4705
|
+
|
|
4706
|
+
|
|
4707
|
+
def _deserialize(self, params):
|
|
4708
|
+
self._Site = params.get("Site")
|
|
4709
|
+
self._Regions = params.get("Regions")
|
|
4710
|
+
memeber_set = set(params.keys())
|
|
4711
|
+
for name, value in vars(self).items():
|
|
4712
|
+
property_name = name[1:]
|
|
4713
|
+
if property_name in memeber_set:
|
|
4714
|
+
memeber_set.remove(property_name)
|
|
4715
|
+
if len(memeber_set) > 0:
|
|
4716
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4717
|
+
|
|
4718
|
+
|
|
4719
|
+
|
|
4720
|
+
class ModelSpec(AbstractModel):
|
|
4721
|
+
r"""模型规格信息
|
|
4722
|
+
|
|
4723
|
+
"""
|
|
4724
|
+
|
|
4725
|
+
def __init__(self):
|
|
4726
|
+
r"""
|
|
4727
|
+
:param _TPM: 每分钟处理 Token 数(Tokens Per Minute)。
|
|
4728
|
+
:type TPM: str
|
|
4729
|
+
:param _QPM: 每分钟请求数(Queries Per Minute)。
|
|
4730
|
+
:type QPM: str
|
|
4731
|
+
:param _MaxInputToken: 最大输入 Token 长度。
|
|
4732
|
+
:type MaxInputToken: str
|
|
4733
|
+
:param _MaxOutputToken: 最大输出 Token 长度。
|
|
4734
|
+
:type MaxOutputToken: str
|
|
4735
|
+
:param _ContextLength: 上下文窗口长度。
|
|
4736
|
+
:type ContextLength: str
|
|
4737
|
+
:param _Concurrency: 并发数。
|
|
4738
|
+
:type Concurrency: str
|
|
4739
|
+
:param _InputDescription: 输入要求描述。
|
|
4740
|
+
:type InputDescription: str
|
|
4741
|
+
"""
|
|
4742
|
+
self._TPM = None
|
|
4743
|
+
self._QPM = None
|
|
4744
|
+
self._MaxInputToken = None
|
|
4745
|
+
self._MaxOutputToken = None
|
|
4746
|
+
self._ContextLength = None
|
|
4747
|
+
self._Concurrency = None
|
|
4748
|
+
self._InputDescription = None
|
|
4749
|
+
|
|
4750
|
+
@property
|
|
4751
|
+
def TPM(self):
|
|
4752
|
+
r"""每分钟处理 Token 数(Tokens Per Minute)。
|
|
4753
|
+
:rtype: str
|
|
4754
|
+
"""
|
|
4755
|
+
return self._TPM
|
|
4756
|
+
|
|
4757
|
+
@TPM.setter
|
|
4758
|
+
def TPM(self, TPM):
|
|
4759
|
+
self._TPM = TPM
|
|
4760
|
+
|
|
4761
|
+
@property
|
|
4762
|
+
def QPM(self):
|
|
4763
|
+
r"""每分钟请求数(Queries Per Minute)。
|
|
4764
|
+
:rtype: str
|
|
4765
|
+
"""
|
|
4766
|
+
return self._QPM
|
|
4767
|
+
|
|
4768
|
+
@QPM.setter
|
|
4769
|
+
def QPM(self, QPM):
|
|
4770
|
+
self._QPM = QPM
|
|
4771
|
+
|
|
4772
|
+
@property
|
|
4773
|
+
def MaxInputToken(self):
|
|
4774
|
+
r"""最大输入 Token 长度。
|
|
4775
|
+
:rtype: str
|
|
4776
|
+
"""
|
|
4777
|
+
return self._MaxInputToken
|
|
4778
|
+
|
|
4779
|
+
@MaxInputToken.setter
|
|
4780
|
+
def MaxInputToken(self, MaxInputToken):
|
|
4781
|
+
self._MaxInputToken = MaxInputToken
|
|
4782
|
+
|
|
4783
|
+
@property
|
|
4784
|
+
def MaxOutputToken(self):
|
|
4785
|
+
r"""最大输出 Token 长度。
|
|
4786
|
+
:rtype: str
|
|
4787
|
+
"""
|
|
4788
|
+
return self._MaxOutputToken
|
|
4789
|
+
|
|
4790
|
+
@MaxOutputToken.setter
|
|
4791
|
+
def MaxOutputToken(self, MaxOutputToken):
|
|
4792
|
+
self._MaxOutputToken = MaxOutputToken
|
|
4793
|
+
|
|
4794
|
+
@property
|
|
4795
|
+
def ContextLength(self):
|
|
4796
|
+
r"""上下文窗口长度。
|
|
4797
|
+
:rtype: str
|
|
4798
|
+
"""
|
|
4799
|
+
return self._ContextLength
|
|
4800
|
+
|
|
4801
|
+
@ContextLength.setter
|
|
4802
|
+
def ContextLength(self, ContextLength):
|
|
4803
|
+
self._ContextLength = ContextLength
|
|
4804
|
+
|
|
4805
|
+
@property
|
|
4806
|
+
def Concurrency(self):
|
|
4807
|
+
r"""并发数。
|
|
4808
|
+
:rtype: str
|
|
4809
|
+
"""
|
|
4810
|
+
return self._Concurrency
|
|
4811
|
+
|
|
4812
|
+
@Concurrency.setter
|
|
4813
|
+
def Concurrency(self, Concurrency):
|
|
4814
|
+
self._Concurrency = Concurrency
|
|
4815
|
+
|
|
4816
|
+
@property
|
|
4817
|
+
def InputDescription(self):
|
|
4818
|
+
r"""输入要求描述。
|
|
4819
|
+
:rtype: str
|
|
4820
|
+
"""
|
|
4821
|
+
return self._InputDescription
|
|
4822
|
+
|
|
4823
|
+
@InputDescription.setter
|
|
4824
|
+
def InputDescription(self, InputDescription):
|
|
4825
|
+
self._InputDescription = InputDescription
|
|
4826
|
+
|
|
4827
|
+
|
|
4828
|
+
def _deserialize(self, params):
|
|
4829
|
+
self._TPM = params.get("TPM")
|
|
4830
|
+
self._QPM = params.get("QPM")
|
|
4831
|
+
self._MaxInputToken = params.get("MaxInputToken")
|
|
4832
|
+
self._MaxOutputToken = params.get("MaxOutputToken")
|
|
4833
|
+
self._ContextLength = params.get("ContextLength")
|
|
4834
|
+
self._Concurrency = params.get("Concurrency")
|
|
4835
|
+
self._InputDescription = params.get("InputDescription")
|
|
4836
|
+
memeber_set = set(params.keys())
|
|
4837
|
+
for name, value in vars(self).items():
|
|
4838
|
+
property_name = name[1:]
|
|
4839
|
+
if property_name in memeber_set:
|
|
4840
|
+
memeber_set.remove(property_name)
|
|
4841
|
+
if len(memeber_set) > 0:
|
|
4842
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4843
|
+
|
|
4844
|
+
|
|
4845
|
+
|
|
3975
4846
|
class ModifyGlossaryEntriesRequest(AbstractModel):
|
|
3976
4847
|
r"""ModifyGlossaryEntries请求参数结构体
|
|
3977
4848
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-tokenhub
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.127
|
|
4
4
|
Summary: Tencent Cloud Tokenhub 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.127
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
tencentcloud_sdk_python_tokenhub-3.1.127/tencentcloud_sdk_python_tokenhub.egg-info/requires.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.127
|
tencentcloud_sdk_python_tokenhub-3.1.124/tencentcloud_sdk_python_tokenhub.egg-info/requires.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.124
|
{tencentcloud_sdk_python_tokenhub-3.1.124 → tencentcloud_sdk_python_tokenhub-3.1.127}/README.rst
RENAMED
|
File without changes
|
{tencentcloud_sdk_python_tokenhub-3.1.124 → tencentcloud_sdk_python_tokenhub-3.1.127}/setup.cfg
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|