tencentcloud-sdk-python 3.0.1478__py2.py3-none-any.whl → 3.0.1480__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.
Potentially problematic release.
This version of tencentcloud-sdk-python might be problematic. Click here for more details.
- tencentcloud/__init__.py +1 -1
- tencentcloud/cdb/v20170320/models.py +30 -0
- tencentcloud/cdn/v20180606/errorcodes.py +3 -0
- tencentcloud/cdwdoris/v20211228/models.py +20 -0
- tencentcloud/cfg/v20210820/models.py +15 -0
- tencentcloud/csip/v20221121/models.py +84 -0
- tencentcloud/dts/v20211206/dts_client.py +8 -8
- tencentcloud/dts/v20211206/errorcodes.py +9 -0
- tencentcloud/dts/v20211206/models.py +259 -104
- tencentcloud/es/v20180416/models.py +150 -0
- tencentcloud/live/v20180801/models.py +2 -0
- tencentcloud/monitor/v20180724/models.py +182 -2
- tencentcloud/monitor/v20180724/monitor_client.py +23 -0
- tencentcloud/oceanus/v20190422/models.py +4 -4
- tencentcloud/ocr/v20181119/models.py +159 -0
- tencentcloud/ocr/v20181119/ocr_client.py +40 -5
- tencentcloud/organization/v20210331/models.py +15 -0
- tencentcloud/teo/v20220901/models.py +1953 -204
- tencentcloud/tke/v20180525/models.py +232 -8
- tencentcloud/tms/v20201229/errorcodes.py +30 -0
- tencentcloud/tms/v20201229/models.py +431 -0
- tencentcloud/tms/v20201229/tms_client.py +46 -0
- tencentcloud/tsf/v20180326/errorcodes.py +3 -0
- tencentcloud/tsf/v20180326/models.py +96 -0
- tencentcloud/vclm/v20240523/models.py +260 -0
- tencentcloud/vclm/v20240523/vclm_client.py +46 -0
- {tencentcloud_sdk_python-3.0.1478.dist-info → tencentcloud_sdk_python-3.0.1480.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1478.dist-info → tencentcloud_sdk_python-3.0.1480.dist-info}/RECORD +31 -31
- {tencentcloud_sdk_python-3.0.1478.dist-info → tencentcloud_sdk_python-3.0.1480.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1478.dist-info → tencentcloud_sdk_python-3.0.1480.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1478.dist-info → tencentcloud_sdk_python-3.0.1480.dist-info}/top_level.txt +0 -0
|
@@ -18,6 +18,148 @@ import warnings
|
|
|
18
18
|
from tencentcloud.common.abstract_model import AbstractModel
|
|
19
19
|
|
|
20
20
|
|
|
21
|
+
class CreateFinancialLLMTaskRequest(AbstractModel):
|
|
22
|
+
r"""CreateFinancialLLMTask请求参数结构体
|
|
23
|
+
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
def __init__(self):
|
|
27
|
+
r"""
|
|
28
|
+
:param _BizType: 审核策略BizType
|
|
29
|
+
:type BizType: str
|
|
30
|
+
:param _FileType: 待审文件类型,目前支持:PDF, DOC, DOCX
|
|
31
|
+
:type FileType: str
|
|
32
|
+
:param _ContentType: 送审内容类型:1-文档,2-文本
|
|
33
|
+
:type ContentType: int
|
|
34
|
+
:param _Content: 送审内容,根据ContentType字段的取值,传入送审文档的Url链接,或送审文本的Base64编码
|
|
35
|
+
|
|
36
|
+
文档限制:
|
|
37
|
+
|
|
38
|
+
- 文件下载时间不超过15秒(文件存储于腾讯云的Url可保障更高的下载速度和稳定性,建议文件存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。)
|
|
39
|
+
- 所下载文件经 Base64 编码后不超过支持的文件大小:PDF/DOC/DOCX - 200M
|
|
40
|
+
- 文档解析后的纯文本长度不超过 10000字
|
|
41
|
+
|
|
42
|
+
文本限制:Base64解码后的文本长度不超过10000字
|
|
43
|
+
|
|
44
|
+
:type Content: str
|
|
45
|
+
"""
|
|
46
|
+
self._BizType = None
|
|
47
|
+
self._FileType = None
|
|
48
|
+
self._ContentType = None
|
|
49
|
+
self._Content = None
|
|
50
|
+
|
|
51
|
+
@property
|
|
52
|
+
def BizType(self):
|
|
53
|
+
r"""审核策略BizType
|
|
54
|
+
:rtype: str
|
|
55
|
+
"""
|
|
56
|
+
return self._BizType
|
|
57
|
+
|
|
58
|
+
@BizType.setter
|
|
59
|
+
def BizType(self, BizType):
|
|
60
|
+
self._BizType = BizType
|
|
61
|
+
|
|
62
|
+
@property
|
|
63
|
+
def FileType(self):
|
|
64
|
+
r"""待审文件类型,目前支持:PDF, DOC, DOCX
|
|
65
|
+
:rtype: str
|
|
66
|
+
"""
|
|
67
|
+
return self._FileType
|
|
68
|
+
|
|
69
|
+
@FileType.setter
|
|
70
|
+
def FileType(self, FileType):
|
|
71
|
+
self._FileType = FileType
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def ContentType(self):
|
|
75
|
+
r"""送审内容类型:1-文档,2-文本
|
|
76
|
+
:rtype: int
|
|
77
|
+
"""
|
|
78
|
+
return self._ContentType
|
|
79
|
+
|
|
80
|
+
@ContentType.setter
|
|
81
|
+
def ContentType(self, ContentType):
|
|
82
|
+
self._ContentType = ContentType
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def Content(self):
|
|
86
|
+
r"""送审内容,根据ContentType字段的取值,传入送审文档的Url链接,或送审文本的Base64编码
|
|
87
|
+
|
|
88
|
+
文档限制:
|
|
89
|
+
|
|
90
|
+
- 文件下载时间不超过15秒(文件存储于腾讯云的Url可保障更高的下载速度和稳定性,建议文件存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。)
|
|
91
|
+
- 所下载文件经 Base64 编码后不超过支持的文件大小:PDF/DOC/DOCX - 200M
|
|
92
|
+
- 文档解析后的纯文本长度不超过 10000字
|
|
93
|
+
|
|
94
|
+
文本限制:Base64解码后的文本长度不超过10000字
|
|
95
|
+
|
|
96
|
+
:rtype: str
|
|
97
|
+
"""
|
|
98
|
+
return self._Content
|
|
99
|
+
|
|
100
|
+
@Content.setter
|
|
101
|
+
def Content(self, Content):
|
|
102
|
+
self._Content = Content
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
def _deserialize(self, params):
|
|
106
|
+
self._BizType = params.get("BizType")
|
|
107
|
+
self._FileType = params.get("FileType")
|
|
108
|
+
self._ContentType = params.get("ContentType")
|
|
109
|
+
self._Content = params.get("Content")
|
|
110
|
+
memeber_set = set(params.keys())
|
|
111
|
+
for name, value in vars(self).items():
|
|
112
|
+
property_name = name[1:]
|
|
113
|
+
if property_name in memeber_set:
|
|
114
|
+
memeber_set.remove(property_name)
|
|
115
|
+
if len(memeber_set) > 0:
|
|
116
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
class CreateFinancialLLMTaskResponse(AbstractModel):
|
|
121
|
+
r"""CreateFinancialLLMTask返回参数结构体
|
|
122
|
+
|
|
123
|
+
"""
|
|
124
|
+
|
|
125
|
+
def __init__(self):
|
|
126
|
+
r"""
|
|
127
|
+
:param _TaskId: 金融大模型审校任务ID
|
|
128
|
+
:type TaskId: str
|
|
129
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
130
|
+
:type RequestId: str
|
|
131
|
+
"""
|
|
132
|
+
self._TaskId = None
|
|
133
|
+
self._RequestId = None
|
|
134
|
+
|
|
135
|
+
@property
|
|
136
|
+
def TaskId(self):
|
|
137
|
+
r"""金融大模型审校任务ID
|
|
138
|
+
:rtype: str
|
|
139
|
+
"""
|
|
140
|
+
return self._TaskId
|
|
141
|
+
|
|
142
|
+
@TaskId.setter
|
|
143
|
+
def TaskId(self, TaskId):
|
|
144
|
+
self._TaskId = TaskId
|
|
145
|
+
|
|
146
|
+
@property
|
|
147
|
+
def RequestId(self):
|
|
148
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
149
|
+
:rtype: str
|
|
150
|
+
"""
|
|
151
|
+
return self._RequestId
|
|
152
|
+
|
|
153
|
+
@RequestId.setter
|
|
154
|
+
def RequestId(self, RequestId):
|
|
155
|
+
self._RequestId = RequestId
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
def _deserialize(self, params):
|
|
159
|
+
self._TaskId = params.get("TaskId")
|
|
160
|
+
self._RequestId = params.get("RequestId")
|
|
161
|
+
|
|
162
|
+
|
|
21
163
|
class DetailResults(AbstractModel):
|
|
22
164
|
r"""文本审核返回的详细结果
|
|
23
165
|
|
|
@@ -331,6 +473,295 @@ class Device(AbstractModel):
|
|
|
331
473
|
|
|
332
474
|
|
|
333
475
|
|
|
476
|
+
class FinancialLLMViolationDetail(AbstractModel):
|
|
477
|
+
r"""金融大模型审校 违规明细
|
|
478
|
+
|
|
479
|
+
"""
|
|
480
|
+
|
|
481
|
+
def __init__(self):
|
|
482
|
+
r"""
|
|
483
|
+
:param _Label: 违规点
|
|
484
|
+
:type Label: str
|
|
485
|
+
:param _Suggestion: 处置建议
|
|
486
|
+
:type Suggestion: str
|
|
487
|
+
:param _Reasons: 违规原因列表
|
|
488
|
+
:type Reasons: list of FinancialLLMViolationReason
|
|
489
|
+
"""
|
|
490
|
+
self._Label = None
|
|
491
|
+
self._Suggestion = None
|
|
492
|
+
self._Reasons = None
|
|
493
|
+
|
|
494
|
+
@property
|
|
495
|
+
def Label(self):
|
|
496
|
+
r"""违规点
|
|
497
|
+
:rtype: str
|
|
498
|
+
"""
|
|
499
|
+
return self._Label
|
|
500
|
+
|
|
501
|
+
@Label.setter
|
|
502
|
+
def Label(self, Label):
|
|
503
|
+
self._Label = Label
|
|
504
|
+
|
|
505
|
+
@property
|
|
506
|
+
def Suggestion(self):
|
|
507
|
+
r"""处置建议
|
|
508
|
+
:rtype: str
|
|
509
|
+
"""
|
|
510
|
+
return self._Suggestion
|
|
511
|
+
|
|
512
|
+
@Suggestion.setter
|
|
513
|
+
def Suggestion(self, Suggestion):
|
|
514
|
+
self._Suggestion = Suggestion
|
|
515
|
+
|
|
516
|
+
@property
|
|
517
|
+
def Reasons(self):
|
|
518
|
+
r"""违规原因列表
|
|
519
|
+
:rtype: list of FinancialLLMViolationReason
|
|
520
|
+
"""
|
|
521
|
+
return self._Reasons
|
|
522
|
+
|
|
523
|
+
@Reasons.setter
|
|
524
|
+
def Reasons(self, Reasons):
|
|
525
|
+
self._Reasons = Reasons
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
def _deserialize(self, params):
|
|
529
|
+
self._Label = params.get("Label")
|
|
530
|
+
self._Suggestion = params.get("Suggestion")
|
|
531
|
+
if params.get("Reasons") is not None:
|
|
532
|
+
self._Reasons = []
|
|
533
|
+
for item in params.get("Reasons"):
|
|
534
|
+
obj = FinancialLLMViolationReason()
|
|
535
|
+
obj._deserialize(item)
|
|
536
|
+
self._Reasons.append(obj)
|
|
537
|
+
memeber_set = set(params.keys())
|
|
538
|
+
for name, value in vars(self).items():
|
|
539
|
+
property_name = name[1:]
|
|
540
|
+
if property_name in memeber_set:
|
|
541
|
+
memeber_set.remove(property_name)
|
|
542
|
+
if len(memeber_set) > 0:
|
|
543
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
class FinancialLLMViolationReason(AbstractModel):
|
|
548
|
+
r"""金融大模型审校-违规原因
|
|
549
|
+
|
|
550
|
+
"""
|
|
551
|
+
|
|
552
|
+
def __init__(self):
|
|
553
|
+
r"""
|
|
554
|
+
:param _TargetText: 违规原文片段
|
|
555
|
+
:type TargetText: str
|
|
556
|
+
:param _Reason: 违规原因
|
|
557
|
+
:type Reason: str
|
|
558
|
+
"""
|
|
559
|
+
self._TargetText = None
|
|
560
|
+
self._Reason = None
|
|
561
|
+
|
|
562
|
+
@property
|
|
563
|
+
def TargetText(self):
|
|
564
|
+
r"""违规原文片段
|
|
565
|
+
:rtype: str
|
|
566
|
+
"""
|
|
567
|
+
return self._TargetText
|
|
568
|
+
|
|
569
|
+
@TargetText.setter
|
|
570
|
+
def TargetText(self, TargetText):
|
|
571
|
+
self._TargetText = TargetText
|
|
572
|
+
|
|
573
|
+
@property
|
|
574
|
+
def Reason(self):
|
|
575
|
+
r"""违规原因
|
|
576
|
+
:rtype: str
|
|
577
|
+
"""
|
|
578
|
+
return self._Reason
|
|
579
|
+
|
|
580
|
+
@Reason.setter
|
|
581
|
+
def Reason(self, Reason):
|
|
582
|
+
self._Reason = Reason
|
|
583
|
+
|
|
584
|
+
|
|
585
|
+
def _deserialize(self, params):
|
|
586
|
+
self._TargetText = params.get("TargetText")
|
|
587
|
+
self._Reason = params.get("Reason")
|
|
588
|
+
memeber_set = set(params.keys())
|
|
589
|
+
for name, value in vars(self).items():
|
|
590
|
+
property_name = name[1:]
|
|
591
|
+
if property_name in memeber_set:
|
|
592
|
+
memeber_set.remove(property_name)
|
|
593
|
+
if len(memeber_set) > 0:
|
|
594
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
class GetFinancialLLMTaskResultRequest(AbstractModel):
|
|
599
|
+
r"""GetFinancialLLMTaskResult请求参数结构体
|
|
600
|
+
|
|
601
|
+
"""
|
|
602
|
+
|
|
603
|
+
def __init__(self):
|
|
604
|
+
r"""
|
|
605
|
+
:param _TaskId: 金融大模型审校任务ID
|
|
606
|
+
:type TaskId: str
|
|
607
|
+
"""
|
|
608
|
+
self._TaskId = None
|
|
609
|
+
|
|
610
|
+
@property
|
|
611
|
+
def TaskId(self):
|
|
612
|
+
r"""金融大模型审校任务ID
|
|
613
|
+
:rtype: str
|
|
614
|
+
"""
|
|
615
|
+
return self._TaskId
|
|
616
|
+
|
|
617
|
+
@TaskId.setter
|
|
618
|
+
def TaskId(self, TaskId):
|
|
619
|
+
self._TaskId = TaskId
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
def _deserialize(self, params):
|
|
623
|
+
self._TaskId = params.get("TaskId")
|
|
624
|
+
memeber_set = set(params.keys())
|
|
625
|
+
for name, value in vars(self).items():
|
|
626
|
+
property_name = name[1:]
|
|
627
|
+
if property_name in memeber_set:
|
|
628
|
+
memeber_set.remove(property_name)
|
|
629
|
+
if len(memeber_set) > 0:
|
|
630
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
class GetFinancialLLMTaskResultResponse(AbstractModel):
|
|
635
|
+
r"""GetFinancialLLMTaskResult返回参数结构体
|
|
636
|
+
|
|
637
|
+
"""
|
|
638
|
+
|
|
639
|
+
def __init__(self):
|
|
640
|
+
r"""
|
|
641
|
+
:param _Status: 审校任务状态:
|
|
642
|
+
|
|
643
|
+
- Success: 成功
|
|
644
|
+
- Processing: 处理中,请等待
|
|
645
|
+
- Failed: 失败
|
|
646
|
+
:type Status: str
|
|
647
|
+
:param _ModerationResult: 大模型审校结果
|
|
648
|
+
:type ModerationResult: str
|
|
649
|
+
:param _FailureReason: 审校任务失败原因,仅当任务失败时有值
|
|
650
|
+
:type FailureReason: str
|
|
651
|
+
:param _StartTime: 审校任务开始时间
|
|
652
|
+
:type StartTime: str
|
|
653
|
+
:param _ReviewedLabels: 本次检测的违规点列表
|
|
654
|
+
:type ReviewedLabels: list of str
|
|
655
|
+
:param _Details: 违规明细
|
|
656
|
+
:type Details: list of FinancialLLMViolationDetail
|
|
657
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
658
|
+
:type RequestId: str
|
|
659
|
+
"""
|
|
660
|
+
self._Status = None
|
|
661
|
+
self._ModerationResult = None
|
|
662
|
+
self._FailureReason = None
|
|
663
|
+
self._StartTime = None
|
|
664
|
+
self._ReviewedLabels = None
|
|
665
|
+
self._Details = None
|
|
666
|
+
self._RequestId = None
|
|
667
|
+
|
|
668
|
+
@property
|
|
669
|
+
def Status(self):
|
|
670
|
+
r"""审校任务状态:
|
|
671
|
+
|
|
672
|
+
- Success: 成功
|
|
673
|
+
- Processing: 处理中,请等待
|
|
674
|
+
- Failed: 失败
|
|
675
|
+
:rtype: str
|
|
676
|
+
"""
|
|
677
|
+
return self._Status
|
|
678
|
+
|
|
679
|
+
@Status.setter
|
|
680
|
+
def Status(self, Status):
|
|
681
|
+
self._Status = Status
|
|
682
|
+
|
|
683
|
+
@property
|
|
684
|
+
def ModerationResult(self):
|
|
685
|
+
r"""大模型审校结果
|
|
686
|
+
:rtype: str
|
|
687
|
+
"""
|
|
688
|
+
return self._ModerationResult
|
|
689
|
+
|
|
690
|
+
@ModerationResult.setter
|
|
691
|
+
def ModerationResult(self, ModerationResult):
|
|
692
|
+
self._ModerationResult = ModerationResult
|
|
693
|
+
|
|
694
|
+
@property
|
|
695
|
+
def FailureReason(self):
|
|
696
|
+
r"""审校任务失败原因,仅当任务失败时有值
|
|
697
|
+
:rtype: str
|
|
698
|
+
"""
|
|
699
|
+
return self._FailureReason
|
|
700
|
+
|
|
701
|
+
@FailureReason.setter
|
|
702
|
+
def FailureReason(self, FailureReason):
|
|
703
|
+
self._FailureReason = FailureReason
|
|
704
|
+
|
|
705
|
+
@property
|
|
706
|
+
def StartTime(self):
|
|
707
|
+
r"""审校任务开始时间
|
|
708
|
+
:rtype: str
|
|
709
|
+
"""
|
|
710
|
+
return self._StartTime
|
|
711
|
+
|
|
712
|
+
@StartTime.setter
|
|
713
|
+
def StartTime(self, StartTime):
|
|
714
|
+
self._StartTime = StartTime
|
|
715
|
+
|
|
716
|
+
@property
|
|
717
|
+
def ReviewedLabels(self):
|
|
718
|
+
r"""本次检测的违规点列表
|
|
719
|
+
:rtype: list of str
|
|
720
|
+
"""
|
|
721
|
+
return self._ReviewedLabels
|
|
722
|
+
|
|
723
|
+
@ReviewedLabels.setter
|
|
724
|
+
def ReviewedLabels(self, ReviewedLabels):
|
|
725
|
+
self._ReviewedLabels = ReviewedLabels
|
|
726
|
+
|
|
727
|
+
@property
|
|
728
|
+
def Details(self):
|
|
729
|
+
r"""违规明细
|
|
730
|
+
:rtype: list of FinancialLLMViolationDetail
|
|
731
|
+
"""
|
|
732
|
+
return self._Details
|
|
733
|
+
|
|
734
|
+
@Details.setter
|
|
735
|
+
def Details(self, Details):
|
|
736
|
+
self._Details = Details
|
|
737
|
+
|
|
738
|
+
@property
|
|
739
|
+
def RequestId(self):
|
|
740
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
741
|
+
:rtype: str
|
|
742
|
+
"""
|
|
743
|
+
return self._RequestId
|
|
744
|
+
|
|
745
|
+
@RequestId.setter
|
|
746
|
+
def RequestId(self, RequestId):
|
|
747
|
+
self._RequestId = RequestId
|
|
748
|
+
|
|
749
|
+
|
|
750
|
+
def _deserialize(self, params):
|
|
751
|
+
self._Status = params.get("Status")
|
|
752
|
+
self._ModerationResult = params.get("ModerationResult")
|
|
753
|
+
self._FailureReason = params.get("FailureReason")
|
|
754
|
+
self._StartTime = params.get("StartTime")
|
|
755
|
+
self._ReviewedLabels = params.get("ReviewedLabels")
|
|
756
|
+
if params.get("Details") is not None:
|
|
757
|
+
self._Details = []
|
|
758
|
+
for item in params.get("Details"):
|
|
759
|
+
obj = FinancialLLMViolationDetail()
|
|
760
|
+
obj._deserialize(item)
|
|
761
|
+
self._Details.append(obj)
|
|
762
|
+
self._RequestId = params.get("RequestId")
|
|
763
|
+
|
|
764
|
+
|
|
334
765
|
class HitInfo(AbstractModel):
|
|
335
766
|
r"""关键词命中位置信息
|
|
336
767
|
|
|
@@ -26,6 +26,52 @@ class TmsClient(AbstractClient):
|
|
|
26
26
|
_service = 'tms'
|
|
27
27
|
|
|
28
28
|
|
|
29
|
+
def CreateFinancialLLMTask(self, request):
|
|
30
|
+
r"""创建金融大模型审校任务
|
|
31
|
+
|
|
32
|
+
:param request: Request instance for CreateFinancialLLMTask.
|
|
33
|
+
:type request: :class:`tencentcloud.tms.v20201229.models.CreateFinancialLLMTaskRequest`
|
|
34
|
+
:rtype: :class:`tencentcloud.tms.v20201229.models.CreateFinancialLLMTaskResponse`
|
|
35
|
+
|
|
36
|
+
"""
|
|
37
|
+
try:
|
|
38
|
+
params = request._serialize()
|
|
39
|
+
headers = request.headers
|
|
40
|
+
body = self.call("CreateFinancialLLMTask", params, headers=headers)
|
|
41
|
+
response = json.loads(body)
|
|
42
|
+
model = models.CreateFinancialLLMTaskResponse()
|
|
43
|
+
model._deserialize(response["Response"])
|
|
44
|
+
return model
|
|
45
|
+
except Exception as e:
|
|
46
|
+
if isinstance(e, TencentCloudSDKException):
|
|
47
|
+
raise
|
|
48
|
+
else:
|
|
49
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def GetFinancialLLMTaskResult(self, request):
|
|
53
|
+
r"""获取金融大模型审校任务结果
|
|
54
|
+
|
|
55
|
+
:param request: Request instance for GetFinancialLLMTaskResult.
|
|
56
|
+
:type request: :class:`tencentcloud.tms.v20201229.models.GetFinancialLLMTaskResultRequest`
|
|
57
|
+
:rtype: :class:`tencentcloud.tms.v20201229.models.GetFinancialLLMTaskResultResponse`
|
|
58
|
+
|
|
59
|
+
"""
|
|
60
|
+
try:
|
|
61
|
+
params = request._serialize()
|
|
62
|
+
headers = request.headers
|
|
63
|
+
body = self.call("GetFinancialLLMTaskResult", params, headers=headers)
|
|
64
|
+
response = json.loads(body)
|
|
65
|
+
model = models.GetFinancialLLMTaskResultResponse()
|
|
66
|
+
model._deserialize(response["Response"])
|
|
67
|
+
return model
|
|
68
|
+
except Exception as e:
|
|
69
|
+
if isinstance(e, TencentCloudSDKException):
|
|
70
|
+
raise
|
|
71
|
+
else:
|
|
72
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
73
|
+
|
|
74
|
+
|
|
29
75
|
def TextModeration(self, request):
|
|
30
76
|
r"""本接口(Text Moderation)用于提交文本内容进行智能审核任务。使用前请您使用腾讯云主账号登录控制台 [开通文本内容安全服务](https://console.cloud.tencent.com/cms) 并调整好对应的业务配置。
|
|
31
77
|
|
|
@@ -731,6 +731,9 @@ INVALIDPARAMETERVALUE_CONTAINERGROUPAPPLICATIONIDNULL = 'InvalidParameterValue.C
|
|
|
731
731
|
# 集群 CPU 资源不足。
|
|
732
732
|
INVALIDPARAMETERVALUE_CONTAINERGROUPCPULIMITOVER = 'InvalidParameterValue.ContainergroupCpulimitOver'
|
|
733
733
|
|
|
734
|
+
# 容器Env的Value和ValueFrom不能同时使用
|
|
735
|
+
INVALIDPARAMETERVALUE_CONTAINERGROUPENVVALUEBOTHSET = 'InvalidParameterValue.ContainergroupEnvValueBothSet'
|
|
736
|
+
|
|
734
737
|
# 容器 Env 的 Value 和 ValueFrom 至少要有一个。
|
|
735
738
|
INVALIDPARAMETERVALUE_CONTAINERGROUPENVVALUENOTSET = 'InvalidParameterValue.ContainergroupEnvValueNotSet'
|
|
736
739
|
|