tencentcloud-sdk-tms 3.0.894 → 3.0.896

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6e5938847da2b651c2c200ae212143e14f95ba34
4
- data.tar.gz: 17dcefbed6fff192a322f2be79439d8bb89740f9
3
+ metadata.gz: 938dd377aeb471749dd91bec81bf137f3495e510
4
+ data.tar.gz: c032fbfd14434a9df9f103c3e080991e30acbe91
5
5
  SHA512:
6
- metadata.gz: 2979a309d9ba622c2049567cbd16b06ad8d1b376c0f0e9db6661112c25db4fee7a14e674dc8e9c6ebafb1617916d1f62798a5f3228b53ff9ec3107a0df70c4ff
7
- data.tar.gz: 1a29667b7cff1aa1141ace9c3bb76b4e03d7806306ad4e2b1f788249a890d20bf777a77b48611a1715e472bc22cf6416c963876e1393474179aeb4a2ef4b0b9b
6
+ metadata.gz: e9ad7335f42d27b992a0db7e39f15b4f7375c6d76c2b605af111f29cdf27fa4201ad177d9aa70f6cd45e2c2f5f2b60a3348079b5e592cd1616e0beb1e4f7c664
7
+ data.tar.gz: 8edf7966eb92d0f7d588e2df34ebaa245a04f8654099c9edfb5ebb6731dc60e6174d91ffc8272bb67989d59b07ff411f8a67dca84b9523c63082d6204e43a025
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.894
1
+ 3.0.896
@@ -29,30 +29,6 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
- # "AIGC代答"产品帮助客户在其AIGC场景下,对于敏感类的问题,不是由客户的大模型机器人来回答,而是我们来进行代答,尽最大可能帮助客户规避风险。
33
-
34
- # @param request: Request instance for AnswerQuestion.
35
- # @type request: :class:`Tencentcloud::tms::V20201229::AnswerQuestionRequest`
36
- # @rtype: :class:`Tencentcloud::tms::V20201229::AnswerQuestionResponse`
37
- def AnswerQuestion(request)
38
- body = send_request('AnswerQuestion', request.serialize)
39
- response = JSON.parse(body)
40
- if response['Response'].key?('Error') == false
41
- model = AnswerQuestionResponse.new
42
- model.deserialize(response['Response'])
43
- model
44
- else
45
- code = response['Response']['Error']['Code']
46
- message = response['Response']['Error']['Message']
47
- reqid = response['Response']['RequestId']
48
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
- end
50
- rescue TencentCloud::Common::TencentCloudSDKException => e
51
- raise e
52
- rescue StandardError => e
53
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
- end
55
-
56
32
  # 天御文本内容安全定制标签文本审核接口为定制接口,会按照客户定制标签输出审核结果,如需使用请联系商务经理或[在线客服](https://cloud.tencent.com/online-service?from=doc_1125)咨询。
57
33
 
58
34
  # @param request: Request instance for ModerateText.
@@ -17,42 +17,6 @@
17
17
  module TencentCloud
18
18
  module Tms
19
19
  module V20201229
20
- # AnswerQuestion请求参数结构体
21
- class AnswerQuestionRequest < TencentCloud::Common::AbstractModel
22
- # @param Question: 用户问题
23
- # @type Question: String
24
-
25
- attr_accessor :Question
26
-
27
- def initialize(question=nil)
28
- @Question = question
29
- end
30
-
31
- def deserialize(params)
32
- @Question = params['Question']
33
- end
34
- end
35
-
36
- # AnswerQuestion返回参数结构体
37
- class AnswerQuestionResponse < TencentCloud::Common::AbstractModel
38
- # @param Answer: 匹配到的答案
39
- # @type Answer: String
40
- # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
41
- # @type RequestId: String
42
-
43
- attr_accessor :Answer, :RequestId
44
-
45
- def initialize(answer=nil, requestid=nil)
46
- @Answer = answer
47
- @RequestId = requestid
48
- end
49
-
50
- def deserialize(params)
51
- @Answer = params['Answer']
52
- @RequestId = params['RequestId']
53
- end
54
- end
55
-
56
20
  # 文本审核返回的详细结果
57
21
  class DetailResults < TencentCloud::Common::AbstractModel
58
22
  # @param Label: 该字段用于返回检测结果所对应的全部恶意标签。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告;以及其他令人反感、不安全或不适宜的内容类型。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-tms
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.894
4
+ version: 3.0.896
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-26 00:00:00.000000000 Z
11
+ date: 2024-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common