tencentcloud-sdk-tms 3.0.894 → 3.0.895
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20201229/client.rb +0 -24
- data/lib/v20201229/models.rb +0 -36
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2432c55ef1277b3b44cbd4322b299d5378e69ede
|
4
|
+
data.tar.gz: 54feb3693405f7bb1fe98280273da605d45ff3d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b232eeca7060987ca9ef2c63ff08793373f9f23b19590d4cbdba04af3b5a193630e153b04ca3544f2a43fd15d2ea5e480863261e1d742c8662926e145c8f3d5
|
7
|
+
data.tar.gz: 671b7ac9b8ef06455b65c4e76e24e6713d19e7838537652d54fd6cf4fc642e80d7eee3ec9413c247e211dfa3c8c8b104ea001f62feaaebcf97578af5ed8f78b9
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.895
|
data/lib/v20201229/client.rb
CHANGED
@@ -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.
|
data/lib/v20201229/models.rb
CHANGED
@@ -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.
|
4
|
+
version: 3.0.895
|
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-
|
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
|