tencentcloud-sdk-python-tokenhub 3.1.217__py2.py3-none-any.whl → 3.1.222__py2.py3-none-any.whl

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/__init__.py CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.217'
17
+ __version__ = '3.1.222'
@@ -692,6 +692,8 @@ class CreateEndpointRequest(AbstractModel):
692
692
  :type EndpointName: str
693
693
  :param _ModelId: <p>模型 ID。可通过 DescribeModelList 接口获取。</p>
694
694
  :type ModelId: str
695
+ :param _ServiceType: <p>服务类型。取值:TEXT_GENERATION(文本生成)、IMAGE_GENERATION(图片生成)、VIDEO_GENERATION(视频生成)。</p>
696
+ :type ServiceType: str
695
697
  :param _ChargeType: <p>计费方式。取值:FREE(免费体验)、TOKEN(按 Token 计费)、TPM(TPM 保障)、COMPUTE_UNIT(按算力单元计费)。</p>
696
698
  :type ChargeType: str
697
699
  :param _RPM: <p>RPM(每分钟请求数)限流上限。可选。必须大于 0,且不能超过用户在该模型上的 RPM 上限。不传则使用默认值(60)。</p>
@@ -705,6 +707,7 @@ class CreateEndpointRequest(AbstractModel):
705
707
  """
706
708
  self._EndpointName = None
707
709
  self._ModelId = None
710
+ self._ServiceType = None
708
711
  self._ChargeType = None
709
712
  self._RPM = None
710
713
  self._TPM = None
@@ -733,6 +736,17 @@ class CreateEndpointRequest(AbstractModel):
733
736
  def ModelId(self, ModelId):
734
737
  self._ModelId = ModelId
735
738
 
739
+ @property
740
+ def ServiceType(self):
741
+ r"""<p>服务类型。取值:TEXT_GENERATION(文本生成)、IMAGE_GENERATION(图片生成)、VIDEO_GENERATION(视频生成)。</p>
742
+ :rtype: str
743
+ """
744
+ return self._ServiceType
745
+
746
+ @ServiceType.setter
747
+ def ServiceType(self, ServiceType):
748
+ self._ServiceType = ServiceType
749
+
736
750
  @property
737
751
  def ChargeType(self):
738
752
  r"""<p>计费方式。取值:FREE(免费体验)、TOKEN(按 Token 计费)、TPM(TPM 保障)、COMPUTE_UNIT(按算力单元计费)。</p>
@@ -792,6 +806,7 @@ class CreateEndpointRequest(AbstractModel):
792
806
  def _deserialize(self, params):
793
807
  self._EndpointName = params.get("EndpointName")
794
808
  self._ModelId = params.get("ModelId")
809
+ self._ServiceType = params.get("ServiceType")
795
810
  self._ChargeType = params.get("ChargeType")
796
811
  self._RPM = params.get("RPM")
797
812
  self._TPM = params.get("TPM")
@@ -2846,6 +2861,190 @@ class DescribeGlossaryEntriesResponse(AbstractModel):
2846
2861
  self._RequestId = params.get("RequestId")
2847
2862
 
2848
2863
 
2864
+ class DescribeModelCapabilityListRequest(AbstractModel):
2865
+ r"""DescribeModelCapabilityList请求参数结构体
2866
+
2867
+ """
2868
+
2869
+ def __init__(self):
2870
+ r"""
2871
+ :param _Source: <p>API 来源。取值:Model(模型广场)、ApiKey(推理服务)。默认值为 Model。</p>
2872
+ :type Source: str
2873
+ :param _ModelId: <p>模型 ID,不传则查询所有能力,传入则查询指定模型的能力。可通过 DescribeModelList 接口获取。</p>
2874
+ :type ModelId: str
2875
+ :param _Limit: <p>返回数量,默认为 20,最大值为 100。</p>
2876
+ :type Limit: int
2877
+ :param _Offset: <p>偏移量,默认为 0。</p>
2878
+ :type Offset: int
2879
+ :param _Filters: <p>过滤条件列表。支持的过滤字段:CapabilityName。</p>
2880
+ :type Filters: list of RequestFilter
2881
+ :param _Sorts: <p>排序条件列表。</p>
2882
+ :type Sorts: list of RequestSort
2883
+ """
2884
+ self._Source = None
2885
+ self._ModelId = None
2886
+ self._Limit = None
2887
+ self._Offset = None
2888
+ self._Filters = None
2889
+ self._Sorts = None
2890
+
2891
+ @property
2892
+ def Source(self):
2893
+ r"""<p>API 来源。取值:Model(模型广场)、ApiKey(推理服务)。默认值为 Model。</p>
2894
+ :rtype: str
2895
+ """
2896
+ return self._Source
2897
+
2898
+ @Source.setter
2899
+ def Source(self, Source):
2900
+ self._Source = Source
2901
+
2902
+ @property
2903
+ def ModelId(self):
2904
+ r"""<p>模型 ID,不传则查询所有能力,传入则查询指定模型的能力。可通过 DescribeModelList 接口获取。</p>
2905
+ :rtype: str
2906
+ """
2907
+ return self._ModelId
2908
+
2909
+ @ModelId.setter
2910
+ def ModelId(self, ModelId):
2911
+ self._ModelId = ModelId
2912
+
2913
+ @property
2914
+ def Limit(self):
2915
+ r"""<p>返回数量,默认为 20,最大值为 100。</p>
2916
+ :rtype: int
2917
+ """
2918
+ return self._Limit
2919
+
2920
+ @Limit.setter
2921
+ def Limit(self, Limit):
2922
+ self._Limit = Limit
2923
+
2924
+ @property
2925
+ def Offset(self):
2926
+ r"""<p>偏移量,默认为 0。</p>
2927
+ :rtype: int
2928
+ """
2929
+ return self._Offset
2930
+
2931
+ @Offset.setter
2932
+ def Offset(self, Offset):
2933
+ self._Offset = Offset
2934
+
2935
+ @property
2936
+ def Filters(self):
2937
+ r"""<p>过滤条件列表。支持的过滤字段:CapabilityName。</p>
2938
+ :rtype: list of RequestFilter
2939
+ """
2940
+ return self._Filters
2941
+
2942
+ @Filters.setter
2943
+ def Filters(self, Filters):
2944
+ self._Filters = Filters
2945
+
2946
+ @property
2947
+ def Sorts(self):
2948
+ r"""<p>排序条件列表。</p>
2949
+ :rtype: list of RequestSort
2950
+ """
2951
+ return self._Sorts
2952
+
2953
+ @Sorts.setter
2954
+ def Sorts(self, Sorts):
2955
+ self._Sorts = Sorts
2956
+
2957
+
2958
+ def _deserialize(self, params):
2959
+ self._Source = params.get("Source")
2960
+ self._ModelId = params.get("ModelId")
2961
+ self._Limit = params.get("Limit")
2962
+ self._Offset = params.get("Offset")
2963
+ if params.get("Filters") is not None:
2964
+ self._Filters = []
2965
+ for item in params.get("Filters"):
2966
+ obj = RequestFilter()
2967
+ obj._deserialize(item)
2968
+ self._Filters.append(obj)
2969
+ if params.get("Sorts") is not None:
2970
+ self._Sorts = []
2971
+ for item in params.get("Sorts"):
2972
+ obj = RequestSort()
2973
+ obj._deserialize(item)
2974
+ self._Sorts.append(obj)
2975
+ memeber_set = set(params.keys())
2976
+ for name, value in vars(self).items():
2977
+ property_name = name[1:]
2978
+ if property_name in memeber_set:
2979
+ memeber_set.remove(property_name)
2980
+ if len(memeber_set) > 0:
2981
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2982
+
2983
+
2984
+
2985
+ class DescribeModelCapabilityListResponse(AbstractModel):
2986
+ r"""DescribeModelCapabilityList返回参数结构体
2987
+
2988
+ """
2989
+
2990
+ def __init__(self):
2991
+ r"""
2992
+ :param _CapabilitySet: <p>能力列表。</p>
2993
+ :type CapabilitySet: list of ModelCapability
2994
+ :param _TotalCount: <p>符合条件的能力总数。</p>
2995
+ :type TotalCount: int
2996
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2997
+ :type RequestId: str
2998
+ """
2999
+ self._CapabilitySet = None
3000
+ self._TotalCount = None
3001
+ self._RequestId = None
3002
+
3003
+ @property
3004
+ def CapabilitySet(self):
3005
+ r"""<p>能力列表。</p>
3006
+ :rtype: list of ModelCapability
3007
+ """
3008
+ return self._CapabilitySet
3009
+
3010
+ @CapabilitySet.setter
3011
+ def CapabilitySet(self, CapabilitySet):
3012
+ self._CapabilitySet = CapabilitySet
3013
+
3014
+ @property
3015
+ def TotalCount(self):
3016
+ r"""<p>符合条件的能力总数。</p>
3017
+ :rtype: int
3018
+ """
3019
+ return self._TotalCount
3020
+
3021
+ @TotalCount.setter
3022
+ def TotalCount(self, TotalCount):
3023
+ self._TotalCount = TotalCount
3024
+
3025
+ @property
3026
+ def RequestId(self):
3027
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3028
+ :rtype: str
3029
+ """
3030
+ return self._RequestId
3031
+
3032
+ @RequestId.setter
3033
+ def RequestId(self, RequestId):
3034
+ self._RequestId = RequestId
3035
+
3036
+
3037
+ def _deserialize(self, params):
3038
+ if params.get("CapabilitySet") is not None:
3039
+ self._CapabilitySet = []
3040
+ for item in params.get("CapabilitySet"):
3041
+ obj = ModelCapability()
3042
+ obj._deserialize(item)
3043
+ self._CapabilitySet.append(obj)
3044
+ self._TotalCount = params.get("TotalCount")
3045
+ self._RequestId = params.get("RequestId")
3046
+
3047
+
2849
3048
  class DescribeModelEndpointListRequest(AbstractModel):
2850
3049
  r"""DescribeModelEndpointList请求参数结构体
2851
3050
 
@@ -6142,6 +6341,87 @@ class ModelAccessInfo(AbstractModel):
6142
6341
 
6143
6342
 
6144
6343
 
6344
+ class ModelCapability(AbstractModel):
6345
+ r"""模型能力信息
6346
+
6347
+ """
6348
+
6349
+ def __init__(self):
6350
+ r"""
6351
+ :param _CapabilityName: <p>能力标识。</p><p>枚举值:</p><ul><li>DeepThink: 深度思考</li><li>StructOutput: 结构化输出</li><li>WebSearch: 联网搜索</li><li>FunctionCall: Function Calling</li><li>InputText: 文本输入</li><li>InputImage: 图片输入</li><li>InputVideo: 视频输入</li><li>InputAudio: 音频输入</li><li>Input3DModelFile: 3D模型文件输入</li><li>InputFile: 文件输入</li><li>OutputText: 文本输出</li><li>OutputImage: 图片输出</li><li>OutputVideo: 视频输出</li><li>OutputAudio: 音频输出</li><li>Output3DModelFile: 3D模型文件输出</li><li>CompletionsAPI: Completions API</li><li>AnthropicAPI: Anthropic API</li><li>ResponsesAPI: Response API</li></ul>
6352
+ :type CapabilityName: str
6353
+ :param _CapabilityValue: <p>能力值。</p><p>枚举值:</p><ul><li>true: 支持</li></ul>
6354
+ :type CapabilityValue: str
6355
+ :param _DisplayName: <p>能力显示名称。</p>
6356
+ :type DisplayName: str
6357
+ :param _Description: <p>能力描述。</p>
6358
+ :type Description: str
6359
+ """
6360
+ self._CapabilityName = None
6361
+ self._CapabilityValue = None
6362
+ self._DisplayName = None
6363
+ self._Description = None
6364
+
6365
+ @property
6366
+ def CapabilityName(self):
6367
+ r"""<p>能力标识。</p><p>枚举值:</p><ul><li>DeepThink: 深度思考</li><li>StructOutput: 结构化输出</li><li>WebSearch: 联网搜索</li><li>FunctionCall: Function Calling</li><li>InputText: 文本输入</li><li>InputImage: 图片输入</li><li>InputVideo: 视频输入</li><li>InputAudio: 音频输入</li><li>Input3DModelFile: 3D模型文件输入</li><li>InputFile: 文件输入</li><li>OutputText: 文本输出</li><li>OutputImage: 图片输出</li><li>OutputVideo: 视频输出</li><li>OutputAudio: 音频输出</li><li>Output3DModelFile: 3D模型文件输出</li><li>CompletionsAPI: Completions API</li><li>AnthropicAPI: Anthropic API</li><li>ResponsesAPI: Response API</li></ul>
6368
+ :rtype: str
6369
+ """
6370
+ return self._CapabilityName
6371
+
6372
+ @CapabilityName.setter
6373
+ def CapabilityName(self, CapabilityName):
6374
+ self._CapabilityName = CapabilityName
6375
+
6376
+ @property
6377
+ def CapabilityValue(self):
6378
+ r"""<p>能力值。</p><p>枚举值:</p><ul><li>true: 支持</li></ul>
6379
+ :rtype: str
6380
+ """
6381
+ return self._CapabilityValue
6382
+
6383
+ @CapabilityValue.setter
6384
+ def CapabilityValue(self, CapabilityValue):
6385
+ self._CapabilityValue = CapabilityValue
6386
+
6387
+ @property
6388
+ def DisplayName(self):
6389
+ r"""<p>能力显示名称。</p>
6390
+ :rtype: str
6391
+ """
6392
+ return self._DisplayName
6393
+
6394
+ @DisplayName.setter
6395
+ def DisplayName(self, DisplayName):
6396
+ self._DisplayName = DisplayName
6397
+
6398
+ @property
6399
+ def Description(self):
6400
+ r"""<p>能力描述。</p>
6401
+ :rtype: str
6402
+ """
6403
+ return self._Description
6404
+
6405
+ @Description.setter
6406
+ def Description(self, Description):
6407
+ self._Description = Description
6408
+
6409
+
6410
+ def _deserialize(self, params):
6411
+ self._CapabilityName = params.get("CapabilityName")
6412
+ self._CapabilityValue = params.get("CapabilityValue")
6413
+ self._DisplayName = params.get("DisplayName")
6414
+ self._Description = params.get("Description")
6415
+ memeber_set = set(params.keys())
6416
+ for name, value in vars(self).items():
6417
+ property_name = name[1:]
6418
+ if property_name in memeber_set:
6419
+ memeber_set.remove(property_name)
6420
+ if len(memeber_set) > 0:
6421
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
6422
+
6423
+
6424
+
6145
6425
  class ModelChargingInfo(AbstractModel):
6146
6426
  r"""模型计费信息
6147
6427
 
@@ -9731,42 +10011,46 @@ class UsageDetailItem(AbstractModel):
9731
10011
 
9732
10012
  def __init__(self):
9733
10013
  r"""
9734
- :param _Uin: 主账号 UIN。
10014
+ :param _Uin: <p>主账号 UIN。</p>
9735
10015
  :type Uin: str
9736
- :param _ModelName: 模型名称。
10016
+ :param _ModelName: <p>模型名称。</p>
9737
10017
  :type ModelName: str
9738
- :param _ApiKeyId: APIKey ID。
10018
+ :param _ApiKeyId: <p>APIKey ID。</p>
9739
10019
  :type ApiKeyId: str
9740
- :param _ApiKeyName: APIKey 名称。
10020
+ :param _ApiKeyName: <p>APIKey 名称。</p>
9741
10021
  :type ApiKeyName: str
9742
- :param _RequestId: 请求 ID。
10022
+ :param _RequestId: <p>请求 ID。</p>
9743
10023
  :type RequestId: str
9744
- :param _RequestTime: 请求时间(RFC3339 格式)。
10024
+ :param _RequestTime: <p>请求时间(RFC3339 格式)。</p>
9745
10025
  :type RequestTime: str
9746
- :param _InputToken: 输入 token 数。
10026
+ :param _InputToken: <p>输入 token 数。</p>
9747
10027
  :type InputToken: int
9748
- :param _CacheToken: 缓存 token 数。
10028
+ :param _CacheToken: <p>缓存 token 数。</p>
9749
10029
  :type CacheToken: int
9750
- :param _OutputToken: 输出 token 数。
10030
+ :param _OutputToken: <p>输出 token 数。</p>
9751
10031
  :type OutputToken: int
9752
- :param _TotalToken: 总 token 数。
10032
+ :param _TotalToken: <p>总 token 数。</p>
9753
10033
  :type TotalToken: int
9754
- :param _InputQuota: 未命中缓存输入消耗额度。单位说明如下:
9755
- - 套餐类型为专业套餐(enterprise),单位取值为积分;
9756
- - 套餐类型轻享套餐(enterprise-auto),单位取值为 token。
10034
+ :param _InputQuota: <p>未命中缓存输入消耗额度。单位说明如下:</p><ul><li>套餐类型为专业套餐(enterprise),单位取值为积分;</li><li>套餐类型轻享套餐(enterprise-auto),单位取值为 token。</li></ul>
9757
10035
  :type InputQuota: str
9758
- :param _CacheQuota: 缓存消耗额度。单位说明如下:
9759
- - 套餐类型为专业套餐(enterprise),单位取值为积分;
9760
- - 套餐类型轻享套餐(enterprise-auto),单位取值为 token。
10036
+ :param _CacheQuota: <p>缓存消耗额度。单位说明如下:</p><ul><li>套餐类型为专业套餐(enterprise),单位取值为积分;</li><li>套餐类型轻享套餐(enterprise-auto),单位取值为 token。</li></ul>
9761
10037
  :type CacheQuota: str
9762
- :param _OutputQuota: 输出消耗额度。单位说明如下:
9763
- - 套餐类型为专业套餐(enterprise),单位取值为积分;
9764
- - 套餐类型轻享套餐(enterprise-auto),单位取值为 token。
10038
+ :param _OutputQuota: <p>输出消耗额度。单位说明如下:</p><ul><li>套餐类型为专业套餐(enterprise),单位取值为积分;</li><li>套餐类型轻享套餐(enterprise-auto),单位取值为 token。</li></ul>
9765
10039
  :type OutputQuota: str
9766
- :param _TotalQuota: 总消耗额度。单位说明如下:
9767
- - 套餐类型为专业套餐(enterprise),单位取值为积分;
9768
- - 套餐类型轻享套餐(enterprise-auto),单位取值为 token。
10040
+ :param _TotalQuota: <p>总消耗额度。单位说明如下:</p><ul><li>套餐类型为专业套餐(enterprise),单位取值为积分;</li><li>套餐类型轻享套餐(enterprise-auto),单位取值为 token。</li></ul>
9769
10041
  :type TotalQuota: str
10042
+ :param _Protocol: <p>协议类型,如 /plan/v3/chat/completions</p>
10043
+ :type Protocol: str
10044
+ :param _SessionId: <p>客户端会话标识(X-Session-ID 原值,≤256 字节)</p>
10045
+ :type SessionId: str
10046
+ :param _CacheWrite5mQuota: <p>写缓存(5 分钟 TTL)积分</p>
10047
+ :type CacheWrite5mQuota: str
10048
+ :param _CacheWrite1hQuota: <p>写缓存(1 小时 TTL)积分</p>
10049
+ :type CacheWrite1hQuota: str
10050
+ :param _CacheWrite5mToken: <p>写缓存(5 分钟 TTL)token 数。</p>
10051
+ :type CacheWrite5mToken: int
10052
+ :param _CacheWrite1hToken: <p>写缓存(1 小时 TTL)token 数。</p>
10053
+ :type CacheWrite1hToken: int
9770
10054
  """
9771
10055
  self._Uin = None
9772
10056
  self._ModelName = None
@@ -9782,10 +10066,16 @@ class UsageDetailItem(AbstractModel):
9782
10066
  self._CacheQuota = None
9783
10067
  self._OutputQuota = None
9784
10068
  self._TotalQuota = None
10069
+ self._Protocol = None
10070
+ self._SessionId = None
10071
+ self._CacheWrite5mQuota = None
10072
+ self._CacheWrite1hQuota = None
10073
+ self._CacheWrite5mToken = None
10074
+ self._CacheWrite1hToken = None
9785
10075
 
9786
10076
  @property
9787
10077
  def Uin(self):
9788
- r"""主账号 UIN。
10078
+ r"""<p>主账号 UIN。</p>
9789
10079
  :rtype: str
9790
10080
  """
9791
10081
  return self._Uin
@@ -9796,7 +10086,7 @@ class UsageDetailItem(AbstractModel):
9796
10086
 
9797
10087
  @property
9798
10088
  def ModelName(self):
9799
- r"""模型名称。
10089
+ r"""<p>模型名称。</p>
9800
10090
  :rtype: str
9801
10091
  """
9802
10092
  return self._ModelName
@@ -9807,7 +10097,7 @@ class UsageDetailItem(AbstractModel):
9807
10097
 
9808
10098
  @property
9809
10099
  def ApiKeyId(self):
9810
- r"""APIKey ID。
10100
+ r"""<p>APIKey ID。</p>
9811
10101
  :rtype: str
9812
10102
  """
9813
10103
  return self._ApiKeyId
@@ -9818,7 +10108,7 @@ class UsageDetailItem(AbstractModel):
9818
10108
 
9819
10109
  @property
9820
10110
  def ApiKeyName(self):
9821
- r"""APIKey 名称。
10111
+ r"""<p>APIKey 名称。</p>
9822
10112
  :rtype: str
9823
10113
  """
9824
10114
  return self._ApiKeyName
@@ -9829,7 +10119,7 @@ class UsageDetailItem(AbstractModel):
9829
10119
 
9830
10120
  @property
9831
10121
  def RequestId(self):
9832
- r"""请求 ID。
10122
+ r"""<p>请求 ID。</p>
9833
10123
  :rtype: str
9834
10124
  """
9835
10125
  return self._RequestId
@@ -9840,7 +10130,7 @@ class UsageDetailItem(AbstractModel):
9840
10130
 
9841
10131
  @property
9842
10132
  def RequestTime(self):
9843
- r"""请求时间(RFC3339 格式)。
10133
+ r"""<p>请求时间(RFC3339 格式)。</p>
9844
10134
  :rtype: str
9845
10135
  """
9846
10136
  return self._RequestTime
@@ -9851,7 +10141,7 @@ class UsageDetailItem(AbstractModel):
9851
10141
 
9852
10142
  @property
9853
10143
  def InputToken(self):
9854
- r"""输入 token 数。
10144
+ r"""<p>输入 token 数。</p>
9855
10145
  :rtype: int
9856
10146
  """
9857
10147
  return self._InputToken
@@ -9862,7 +10152,7 @@ class UsageDetailItem(AbstractModel):
9862
10152
 
9863
10153
  @property
9864
10154
  def CacheToken(self):
9865
- r"""缓存 token 数。
10155
+ r"""<p>缓存 token 数。</p>
9866
10156
  :rtype: int
9867
10157
  """
9868
10158
  return self._CacheToken
@@ -9873,7 +10163,7 @@ class UsageDetailItem(AbstractModel):
9873
10163
 
9874
10164
  @property
9875
10165
  def OutputToken(self):
9876
- r"""输出 token 数。
10166
+ r"""<p>输出 token 数。</p>
9877
10167
  :rtype: int
9878
10168
  """
9879
10169
  return self._OutputToken
@@ -9884,7 +10174,7 @@ class UsageDetailItem(AbstractModel):
9884
10174
 
9885
10175
  @property
9886
10176
  def TotalToken(self):
9887
- r"""总 token 数。
10177
+ r"""<p>总 token 数。</p>
9888
10178
  :rtype: int
9889
10179
  """
9890
10180
  return self._TotalToken
@@ -9895,9 +10185,7 @@ class UsageDetailItem(AbstractModel):
9895
10185
 
9896
10186
  @property
9897
10187
  def InputQuota(self):
9898
- r"""未命中缓存输入消耗额度。单位说明如下:
9899
- - 套餐类型为专业套餐(enterprise),单位取值为积分;
9900
- - 套餐类型轻享套餐(enterprise-auto),单位取值为 token。
10188
+ r"""<p>未命中缓存输入消耗额度。单位说明如下:</p><ul><li>套餐类型为专业套餐(enterprise),单位取值为积分;</li><li>套餐类型轻享套餐(enterprise-auto),单位取值为 token。</li></ul>
9901
10189
  :rtype: str
9902
10190
  """
9903
10191
  return self._InputQuota
@@ -9908,9 +10196,7 @@ class UsageDetailItem(AbstractModel):
9908
10196
 
9909
10197
  @property
9910
10198
  def CacheQuota(self):
9911
- r"""缓存消耗额度。单位说明如下:
9912
- - 套餐类型为专业套餐(enterprise),单位取值为积分;
9913
- - 套餐类型轻享套餐(enterprise-auto),单位取值为 token。
10199
+ r"""<p>缓存消耗额度。单位说明如下:</p><ul><li>套餐类型为专业套餐(enterprise),单位取值为积分;</li><li>套餐类型轻享套餐(enterprise-auto),单位取值为 token。</li></ul>
9914
10200
  :rtype: str
9915
10201
  """
9916
10202
  return self._CacheQuota
@@ -9921,9 +10207,7 @@ class UsageDetailItem(AbstractModel):
9921
10207
 
9922
10208
  @property
9923
10209
  def OutputQuota(self):
9924
- r"""输出消耗额度。单位说明如下:
9925
- - 套餐类型为专业套餐(enterprise),单位取值为积分;
9926
- - 套餐类型轻享套餐(enterprise-auto),单位取值为 token。
10210
+ r"""<p>输出消耗额度。单位说明如下:</p><ul><li>套餐类型为专业套餐(enterprise),单位取值为积分;</li><li>套餐类型轻享套餐(enterprise-auto),单位取值为 token。</li></ul>
9927
10211
  :rtype: str
9928
10212
  """
9929
10213
  return self._OutputQuota
@@ -9934,9 +10218,7 @@ class UsageDetailItem(AbstractModel):
9934
10218
 
9935
10219
  @property
9936
10220
  def TotalQuota(self):
9937
- r"""总消耗额度。单位说明如下:
9938
- - 套餐类型为专业套餐(enterprise),单位取值为积分;
9939
- - 套餐类型轻享套餐(enterprise-auto),单位取值为 token。
10221
+ r"""<p>总消耗额度。单位说明如下:</p><ul><li>套餐类型为专业套餐(enterprise),单位取值为积分;</li><li>套餐类型轻享套餐(enterprise-auto),单位取值为 token。</li></ul>
9940
10222
  :rtype: str
9941
10223
  """
9942
10224
  return self._TotalQuota
@@ -9945,6 +10227,72 @@ class UsageDetailItem(AbstractModel):
9945
10227
  def TotalQuota(self, TotalQuota):
9946
10228
  self._TotalQuota = TotalQuota
9947
10229
 
10230
+ @property
10231
+ def Protocol(self):
10232
+ r"""<p>协议类型,如 /plan/v3/chat/completions</p>
10233
+ :rtype: str
10234
+ """
10235
+ return self._Protocol
10236
+
10237
+ @Protocol.setter
10238
+ def Protocol(self, Protocol):
10239
+ self._Protocol = Protocol
10240
+
10241
+ @property
10242
+ def SessionId(self):
10243
+ r"""<p>客户端会话标识(X-Session-ID 原值,≤256 字节)</p>
10244
+ :rtype: str
10245
+ """
10246
+ return self._SessionId
10247
+
10248
+ @SessionId.setter
10249
+ def SessionId(self, SessionId):
10250
+ self._SessionId = SessionId
10251
+
10252
+ @property
10253
+ def CacheWrite5mQuota(self):
10254
+ r"""<p>写缓存(5 分钟 TTL)积分</p>
10255
+ :rtype: str
10256
+ """
10257
+ return self._CacheWrite5mQuota
10258
+
10259
+ @CacheWrite5mQuota.setter
10260
+ def CacheWrite5mQuota(self, CacheWrite5mQuota):
10261
+ self._CacheWrite5mQuota = CacheWrite5mQuota
10262
+
10263
+ @property
10264
+ def CacheWrite1hQuota(self):
10265
+ r"""<p>写缓存(1 小时 TTL)积分</p>
10266
+ :rtype: str
10267
+ """
10268
+ return self._CacheWrite1hQuota
10269
+
10270
+ @CacheWrite1hQuota.setter
10271
+ def CacheWrite1hQuota(self, CacheWrite1hQuota):
10272
+ self._CacheWrite1hQuota = CacheWrite1hQuota
10273
+
10274
+ @property
10275
+ def CacheWrite5mToken(self):
10276
+ r"""<p>写缓存(5 分钟 TTL)token 数。</p>
10277
+ :rtype: int
10278
+ """
10279
+ return self._CacheWrite5mToken
10280
+
10281
+ @CacheWrite5mToken.setter
10282
+ def CacheWrite5mToken(self, CacheWrite5mToken):
10283
+ self._CacheWrite5mToken = CacheWrite5mToken
10284
+
10285
+ @property
10286
+ def CacheWrite1hToken(self):
10287
+ r"""<p>写缓存(1 小时 TTL)token 数。</p>
10288
+ :rtype: int
10289
+ """
10290
+ return self._CacheWrite1hToken
10291
+
10292
+ @CacheWrite1hToken.setter
10293
+ def CacheWrite1hToken(self, CacheWrite1hToken):
10294
+ self._CacheWrite1hToken = CacheWrite1hToken
10295
+
9948
10296
 
9949
10297
  def _deserialize(self, params):
9950
10298
  self._Uin = params.get("Uin")
@@ -9961,6 +10309,12 @@ class UsageDetailItem(AbstractModel):
9961
10309
  self._CacheQuota = params.get("CacheQuota")
9962
10310
  self._OutputQuota = params.get("OutputQuota")
9963
10311
  self._TotalQuota = params.get("TotalQuota")
10312
+ self._Protocol = params.get("Protocol")
10313
+ self._SessionId = params.get("SessionId")
10314
+ self._CacheWrite5mQuota = params.get("CacheWrite5mQuota")
10315
+ self._CacheWrite1hQuota = params.get("CacheWrite1hQuota")
10316
+ self._CacheWrite5mToken = params.get("CacheWrite5mToken")
10317
+ self._CacheWrite1hToken = params.get("CacheWrite1hToken")
9964
10318
  memeber_set = set(params.keys())
9965
10319
  for name, value in vars(self).items():
9966
10320
  property_name = name[1:]
@@ -421,6 +421,31 @@ class TokenhubClient(AbstractClient):
421
421
  raise TencentCloudSDKException(type(e).__name__, str(e))
422
422
 
423
423
 
424
+ def DescribeModelCapabilityList(self, request):
425
+ r"""查询模型能力列表。
426
+
427
+ 支持查询所有能力或指定模型的能力列表,支持分页。
428
+
429
+ :param request: Request instance for DescribeModelCapabilityList.
430
+ :type request: :class:`tencentcloud.tokenhub.v20260322.models.DescribeModelCapabilityListRequest`
431
+ :rtype: :class:`tencentcloud.tokenhub.v20260322.models.DescribeModelCapabilityListResponse`
432
+
433
+ """
434
+ try:
435
+ params = request._serialize()
436
+ headers = request.headers
437
+ body = self.call("DescribeModelCapabilityList", params, headers=headers)
438
+ response = json.loads(body)
439
+ model = models.DescribeModelCapabilityListResponse()
440
+ model._deserialize(response["Response"])
441
+ return model
442
+ except Exception as e:
443
+ if isinstance(e, TencentCloudSDKException):
444
+ raise
445
+ else:
446
+ raise TencentCloudSDKException(type(e).__name__, str(e))
447
+
448
+
424
449
  def DescribeModelEndpointList(self, request):
425
450
  r"""查询模型接入点列表。
426
451
 
@@ -340,6 +340,26 @@ class TokenhubClient(AbstractClient):
340
340
 
341
341
  return await self.call_and_deserialize(**kwargs)
342
342
 
343
+ async def DescribeModelCapabilityList(
344
+ self,
345
+ request: models.DescribeModelCapabilityListRequest,
346
+ opts: Dict = None,
347
+ ) -> models.DescribeModelCapabilityListResponse:
348
+ """
349
+ 查询模型能力列表。
350
+
351
+ 支持查询所有能力或指定模型的能力列表,支持分页。
352
+ """
353
+
354
+ kwargs = {}
355
+ kwargs["action"] = "DescribeModelCapabilityList"
356
+ kwargs["params"] = request._serialize()
357
+ kwargs["resp_cls"] = models.DescribeModelCapabilityListResponse
358
+ kwargs["headers"] = request.headers
359
+ kwargs["opts"] = opts or {}
360
+
361
+ return await self.call_and_deserialize(**kwargs)
362
+
343
363
  async def DescribeModelEndpointList(
344
364
  self,
345
365
  request: models.DescribeModelEndpointListRequest,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-tokenhub
3
- Version: 3.1.217
3
+ Version: 3.1.222
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.217
18
+ Requires-Dist: tencentcloud-sdk-python-common <4.0.0,>=3.1.222
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1,11 @@
1
+ tencentcloud/__init__.py,sha256=PcrCkULUzFK8IcPAi3WBKUtFKrhvSWjN2-AxwLgsDwE,630
2
+ tencentcloud/tokenhub/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ tencentcloud/tokenhub/v20260322/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ tencentcloud/tokenhub/v20260322/errorcodes.py,sha256=PbXuAwOFyrrqNktUv8iAHg_58Cr07sMxORM3XD1ubIA,5205
5
+ tencentcloud/tokenhub/v20260322/models.py,sha256=HUehyhe99M431P2HCyWWVQnnRRdAUgWNToISqQexvpk,356235
6
+ tencentcloud/tokenhub/v20260322/tokenhub_client.py,sha256=bxkpE8ZUSglgPfCLE8-IRTBmF3n7dr2zR7ZIjk4XWew,41047
7
+ tencentcloud/tokenhub/v20260322/tokenhub_client_async.py,sha256=tQZp90Pz60kUPCl7SVXUfrmJbeDM4EpfNxUlfOJbq0w,29399
8
+ tencentcloud_sdk_python_tokenhub-3.1.222.dist-info/METADATA,sha256=pxfK7GJQ7iE8BEvMVjgsbjrodnWbzyt6lkBkGejy5cQ,1522
9
+ tencentcloud_sdk_python_tokenhub-3.1.222.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
10
+ tencentcloud_sdk_python_tokenhub-3.1.222.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
11
+ tencentcloud_sdk_python_tokenhub-3.1.222.dist-info/RECORD,,
@@ -1,11 +0,0 @@
1
- tencentcloud/__init__.py,sha256=gk5NYm0m18CmAWHi4PGjCnVCOWbtzUde2vSUL-hN5AY,630
2
- tencentcloud/tokenhub/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- tencentcloud/tokenhub/v20260322/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- tencentcloud/tokenhub/v20260322/errorcodes.py,sha256=PbXuAwOFyrrqNktUv8iAHg_58Cr07sMxORM3XD1ubIA,5205
5
- tencentcloud/tokenhub/v20260322/models.py,sha256=kNKNqSMZ5SfYITKZFvUWVX7BJqHQN2KsPNvK_khsIqo,342547
6
- tencentcloud/tokenhub/v20260322/tokenhub_client.py,sha256=eVxqO5kw6MmEguFJTH-boe84H49u8YtuS03gTZEoY3w,40016
7
- tencentcloud/tokenhub/v20260322/tokenhub_client_async.py,sha256=DYpAsxxRzXpxorneDcySzvZ88cvb8GcDN1zXvriimvw,28687
8
- tencentcloud_sdk_python_tokenhub-3.1.217.dist-info/METADATA,sha256=RCIAn6WCJq8k573W3qRzlvpBxleFQ6A4UWPW_8qSQF0,1522
9
- tencentcloud_sdk_python_tokenhub-3.1.217.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
10
- tencentcloud_sdk_python_tokenhub-3.1.217.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
11
- tencentcloud_sdk_python_tokenhub-3.1.217.dist-info/RECORD,,