tencentcloud-sdk-hunyuan 3.0.868 → 3.0.869
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/v20230901/models.rb +70 -7
- 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: 7cb07efe309e1f1bb18d47200d15392ad5ad3755
|
4
|
+
data.tar.gz: ca5fd94b737ff2a1d66a0175e22dbf420174896f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07fa8ef3a7f777e5be755849ca7a69618dd08184dea1f399674adde81417a44b7deab6961d00c6f5d9fc91c78bf97cc549b41e072846b04f0925d7a6951aa7f0
|
7
|
+
data.tar.gz: c182dafcb9681c596cb8aaf32ac52a93645400d9a2734a5382f0f60739500a86f284967026d828d0c126c4af44e898d22d5b3de250f51b96865b210cb5f0e18f
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.869
|
data/lib/v20230901/models.rb
CHANGED
@@ -81,10 +81,12 @@ module TencentCloud
|
|
81
81
|
# @type ToolChoice: String
|
82
82
|
# @param CustomTool: 强制模型调用指定的工具,当参数ToolChoice为custom时,此参数为必填
|
83
83
|
# @type CustomTool: :class:`Tencentcloud::Hunyuan.v20230901.models.Tool`
|
84
|
+
# @param SearchInfo: 默认是false,在值为true且命中搜索时,接口会返回SearchInfo
|
85
|
+
# @type SearchInfo: Boolean
|
84
86
|
|
85
|
-
attr_accessor :Model, :Messages, :Stream, :StreamModeration, :TopP, :Temperature, :EnableEnhancement, :Tools, :ToolChoice, :CustomTool
|
87
|
+
attr_accessor :Model, :Messages, :Stream, :StreamModeration, :TopP, :Temperature, :EnableEnhancement, :Tools, :ToolChoice, :CustomTool, :SearchInfo
|
86
88
|
|
87
|
-
def initialize(model=nil, messages=nil, stream=nil, streammoderation=nil, topp=nil, temperature=nil, enableenhancement=nil, tools=nil, toolchoice=nil, customtool=nil)
|
89
|
+
def initialize(model=nil, messages=nil, stream=nil, streammoderation=nil, topp=nil, temperature=nil, enableenhancement=nil, tools=nil, toolchoice=nil, customtool=nil, searchinfo=nil)
|
88
90
|
@Model = model
|
89
91
|
@Messages = messages
|
90
92
|
@Stream = stream
|
@@ -95,6 +97,7 @@ module TencentCloud
|
|
95
97
|
@Tools = tools
|
96
98
|
@ToolChoice = toolchoice
|
97
99
|
@CustomTool = customtool
|
100
|
+
@SearchInfo = searchinfo
|
98
101
|
end
|
99
102
|
|
100
103
|
def deserialize(params)
|
@@ -125,6 +128,7 @@ module TencentCloud
|
|
125
128
|
@CustomTool = Tool.new
|
126
129
|
@CustomTool.deserialize(params['CustomTool'])
|
127
130
|
end
|
131
|
+
@SearchInfo = params['SearchInfo']
|
128
132
|
end
|
129
133
|
end
|
130
134
|
|
@@ -147,12 +151,14 @@ module TencentCloud
|
|
147
151
|
# @type ErrorMsg: :class:`Tencentcloud::Hunyuan.v20230901.models.ErrorMsg`
|
148
152
|
# @param ModerationLevel: 多轮会话风险审核,值为1时,表明存在信息安全风险,建议终止客户多轮会话。
|
149
153
|
# @type ModerationLevel: String
|
154
|
+
# @param SearchInfo: 搜索结果信息
|
155
|
+
# @type SearchInfo: :class:`Tencentcloud::Hunyuan.v20230901.models.SearchInfo`
|
150
156
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
|
151
157
|
# @type RequestId: String
|
152
158
|
|
153
|
-
attr_accessor :Created, :Usage, :Note, :Id, :Choices, :ErrorMsg, :ModerationLevel, :RequestId
|
159
|
+
attr_accessor :Created, :Usage, :Note, :Id, :Choices, :ErrorMsg, :ModerationLevel, :SearchInfo, :RequestId
|
154
160
|
|
155
|
-
def initialize(created=nil, usage=nil, note=nil, id=nil, choices=nil, errormsg=nil, moderationlevel=nil, requestid=nil)
|
161
|
+
def initialize(created=nil, usage=nil, note=nil, id=nil, choices=nil, errormsg=nil, moderationlevel=nil, searchinfo=nil, requestid=nil)
|
156
162
|
@Created = created
|
157
163
|
@Usage = usage
|
158
164
|
@Note = note
|
@@ -160,6 +166,7 @@ module TencentCloud
|
|
160
166
|
@Choices = choices
|
161
167
|
@ErrorMsg = errormsg
|
162
168
|
@ModerationLevel = moderationlevel
|
169
|
+
@SearchInfo = searchinfo
|
163
170
|
@RequestId = requestid
|
164
171
|
end
|
165
172
|
|
@@ -184,6 +191,10 @@ module TencentCloud
|
|
184
191
|
@ErrorMsg.deserialize(params['ErrorMsg'])
|
185
192
|
end
|
186
193
|
@ModerationLevel = params['ModerationLevel']
|
194
|
+
unless params['SearchInfo'].nil?
|
195
|
+
@SearchInfo = SearchInfo.new
|
196
|
+
@SearchInfo.deserialize(params['SearchInfo'])
|
197
|
+
end
|
187
198
|
@RequestId = params['RequestId']
|
188
199
|
end
|
189
200
|
end
|
@@ -578,6 +589,57 @@ module TencentCloud
|
|
578
589
|
end
|
579
590
|
end
|
580
591
|
|
592
|
+
# 搜索结果信息
|
593
|
+
class SearchInfo < TencentCloud::Common::AbstractModel
|
594
|
+
# @param SearchResults: 搜索引文信息
|
595
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
596
|
+
# @type SearchResults: Array
|
597
|
+
|
598
|
+
attr_accessor :SearchResults
|
599
|
+
|
600
|
+
def initialize(searchresults=nil)
|
601
|
+
@SearchResults = searchresults
|
602
|
+
end
|
603
|
+
|
604
|
+
def deserialize(params)
|
605
|
+
unless params['SearchResults'].nil?
|
606
|
+
@SearchResults = []
|
607
|
+
params['SearchResults'].each do |i|
|
608
|
+
searchresult_tmp = SearchResult.new
|
609
|
+
searchresult_tmp.deserialize(i)
|
610
|
+
@SearchResults << searchresult_tmp
|
611
|
+
end
|
612
|
+
end
|
613
|
+
end
|
614
|
+
end
|
615
|
+
|
616
|
+
# 搜索引文信息
|
617
|
+
class SearchResult < TencentCloud::Common::AbstractModel
|
618
|
+
# @param Index: 搜索引文序号
|
619
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
620
|
+
# @type Index: String
|
621
|
+
# @param Title: 搜索引文标题
|
622
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
623
|
+
# @type Title: String
|
624
|
+
# @param Url: 搜索引文链接
|
625
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
626
|
+
# @type Url: String
|
627
|
+
|
628
|
+
attr_accessor :Index, :Title, :Url
|
629
|
+
|
630
|
+
def initialize(index=nil, title=nil, url=nil)
|
631
|
+
@Index = index
|
632
|
+
@Title = title
|
633
|
+
@Url = url
|
634
|
+
end
|
635
|
+
|
636
|
+
def deserialize(params)
|
637
|
+
@Index = params['Index']
|
638
|
+
@Title = params['Title']
|
639
|
+
@Url = params['Url']
|
640
|
+
end
|
641
|
+
end
|
642
|
+
|
581
643
|
# SubmitHunyuanImageJob请求参数结构体
|
582
644
|
class SubmitHunyuanImageJobRequest < TencentCloud::Common::AbstractModel
|
583
645
|
# @param Prompt: 文本描述。
|
@@ -653,8 +715,7 @@ module TencentCloud
|
|
653
715
|
# 推荐使用中文。最多可传256个 utf-8 字符。
|
654
716
|
# @type NegativePrompt: String
|
655
717
|
# @param Style: 绘画风格。
|
656
|
-
# 请在 [
|
657
|
-
# 推荐使用且只使用一种风格。不传默认使用201(日系动漫风格)。
|
718
|
+
# 请在 [文生图轻量版风格列表](https://cloud.tencent.com/document/product/1729/108992) 中选择期望的风格,传入风格编号。不传默认使用201(日系动漫风格)。
|
658
719
|
# @type Style: String
|
659
720
|
# @param Resolution: 生成图分辨率。
|
660
721
|
# 支持生成以下分辨率的图片:768:768(1:1)、768:1024(3:4)、1024:768(4:3)、1024:1024(1:1)、720:1280(9:16)、1280:720(16:9)、768:1280(3:5)、1280:768(5:3)、1080:1920(9:16)、1920:1080(16:9),不传默认使用768:768。
|
@@ -691,7 +752,9 @@ module TencentCloud
|
|
691
752
|
|
692
753
|
# TextToImageLite返回参数结构体
|
693
754
|
class TextToImageLiteResponse < TencentCloud::Common::AbstractModel
|
694
|
-
# @param ResultImage: 根据入参 RspImgType
|
755
|
+
# @param ResultImage: 根据入参 RspImgType 填入不同,返回不同的内容。
|
756
|
+
# 如果传入 base64 则返回生成图 Base64 编码。
|
757
|
+
# 如果传入 url 则返回的生成图 URL , 有效期1小时,请及时保存。
|
695
758
|
# @type ResultImage: String
|
696
759
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
697
760
|
# @type RequestId: String
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-hunyuan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.869
|
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-07-
|
11
|
+
date: 2024-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|