tencentcloud-sdk-python 3.0.1307__py2.py3-none-any.whl → 3.0.1308__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.
@@ -500,6 +500,9 @@ MISSINGPARAMETER = 'MissingParameter'
500
500
  # 操作被拒绝。
501
501
  OPERATIONDENIED = 'OperationDenied'
502
502
 
503
+ # 地域错误
504
+ REGIONERROR = 'RegionError'
505
+
503
506
  # 资源被占用。
504
507
  RESOURCEINUSE = 'ResourceInUse'
505
508
 
@@ -31446,11 +31446,11 @@ class TPartition(AbstractModel):
31446
31446
  :type Type: str
31447
31447
  :param _Comment: 字段描述
31448
31448
  :type Comment: str
31449
- :param _PartitionType: 分区类型
31449
+ :param _PartitionType: 分区类型(已废弃)
31450
31450
  :type PartitionType: str
31451
- :param _PartitionFormat: 分区格式
31451
+ :param _PartitionFormat: 分区格式(已废弃)
31452
31452
  :type PartitionFormat: str
31453
- :param _PartitionDot: 分区分隔数
31453
+ :param _PartitionDot: 分区分隔数(已废弃)
31454
31454
  :type PartitionDot: int
31455
31455
  :param _Transform: 分区转换策略
31456
31456
  :type Transform: str
@@ -31501,7 +31501,7 @@ class TPartition(AbstractModel):
31501
31501
 
31502
31502
  @property
31503
31503
  def PartitionType(self):
31504
- """分区类型
31504
+ """分区类型(已废弃)
31505
31505
  :rtype: str
31506
31506
  """
31507
31507
  return self._PartitionType
@@ -31512,7 +31512,7 @@ class TPartition(AbstractModel):
31512
31512
 
31513
31513
  @property
31514
31514
  def PartitionFormat(self):
31515
- """分区格式
31515
+ """分区格式(已废弃)
31516
31516
  :rtype: str
31517
31517
  """
31518
31518
  return self._PartitionFormat
@@ -31523,7 +31523,7 @@ class TPartition(AbstractModel):
31523
31523
 
31524
31524
  @property
31525
31525
  def PartitionDot(self):
31526
- """分区分隔数
31526
+ """分区分隔数(已废弃)
31527
31527
  :rtype: int
31528
31528
  """
31529
31529
  return self._PartitionDot
@@ -647,6 +647,8 @@ class ChatCompletionsResponse(AbstractModel):
647
647
 
648
648
  @property
649
649
  def ModerationLevel(self):
650
+ warnings.warn("parameter `ModerationLevel` is deprecated", DeprecationWarning)
651
+
650
652
  """多轮会话风险审核,值为1时,表明存在信息安全风险,建议终止客户多轮会话。
651
653
  :rtype: str
652
654
  """
@@ -654,6 +656,8 @@ class ChatCompletionsResponse(AbstractModel):
654
656
 
655
657
  @ModerationLevel.setter
656
658
  def ModerationLevel(self, ModerationLevel):
659
+ warnings.warn("parameter `ModerationLevel` is deprecated", DeprecationWarning)
660
+
657
661
  self._ModerationLevel = ModerationLevel
658
662
 
659
663
  @property
@@ -1048,11 +1052,14 @@ tool_calls 标识函数调用。
1048
1052
  :type Message: :class:`tencentcloud.hunyuan.v20230901.models.Message`
1049
1053
  :param _Index: 索引值,流式调用时使用该字段。
1050
1054
  :type Index: int
1055
+ :param _ModerationLevel: 多轮会话风险审核,值为1时,表明存在信息安全风险,建议终止客户多轮会话。
1056
+ :type ModerationLevel: str
1051
1057
  """
1052
1058
  self._FinishReason = None
1053
1059
  self._Delta = None
1054
1060
  self._Message = None
1055
1061
  self._Index = None
1062
+ self._ModerationLevel = None
1056
1063
 
1057
1064
  @property
1058
1065
  def FinishReason(self):
@@ -1103,6 +1110,17 @@ tool_calls 标识函数调用。
1103
1110
  def Index(self, Index):
1104
1111
  self._Index = Index
1105
1112
 
1113
+ @property
1114
+ def ModerationLevel(self):
1115
+ """多轮会话风险审核,值为1时,表明存在信息安全风险,建议终止客户多轮会话。
1116
+ :rtype: str
1117
+ """
1118
+ return self._ModerationLevel
1119
+
1120
+ @ModerationLevel.setter
1121
+ def ModerationLevel(self, ModerationLevel):
1122
+ self._ModerationLevel = ModerationLevel
1123
+
1106
1124
 
1107
1125
  def _deserialize(self, params):
1108
1126
  self._FinishReason = params.get("FinishReason")
@@ -1113,6 +1131,7 @@ tool_calls 标识函数调用。
1113
1131
  self._Message = Message()
1114
1132
  self._Message._deserialize(params.get("Message"))
1115
1133
  self._Index = params.get("Index")
1134
+ self._ModerationLevel = params.get("ModerationLevel")
1116
1135
  memeber_set = set(params.keys())
1117
1136
  for name, value in vars(self).items():
1118
1137
  property_name = name[1:]