tencentcloud-sdk-hunyuan 3.0.906 → 3.0.907
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 +80 -6
- 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: bd67d0a6885101f0b531da6dc09c092d78e112ab
|
4
|
+
data.tar.gz: af059b6dbd867146c2513f943266ab4e3d7515f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e1a2aa7bc3f49ef4e9acf74d532cafe43bc3ec53f59ea989f104d0fa3fa1e0008eb722c3bd0603061825a9dc440a283ee80b834c6febec0c5e246c0108a3016
|
7
|
+
data.tar.gz: 6899698a71bcd5dc88007163efe0297aded319189c1a41d46c6c66db67283292ef098fb7cc68b2aef8e47a365738cc09db97a10f45df8ecce4174a572556492b
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.907
|
data/lib/v20230901/models.rb
CHANGED
@@ -101,11 +101,11 @@ module TencentCloud
|
|
101
101
|
# 3. 关闭时将直接由主模型生成回复内容,可以降低响应时延(对于流式输出时的首字时延尤为明显)。但在少数场景里,回复效果可能会下降。
|
102
102
|
# 4. 安全审核能力不属于功能增强范围,不受此字段影响。
|
103
103
|
# @type EnableEnhancement: Boolean
|
104
|
-
# @param Tools: 可调用的工具列表,仅对 hunyuan-functioncall 模型生效。
|
104
|
+
# @param Tools: 可调用的工具列表,仅对 hunyuan-pro、hunyuan-turbo、hunyuan-functioncall 模型生效。
|
105
105
|
# @type Tools: Array
|
106
106
|
# @param ToolChoice: 工具使用选项,可选值包括 none、auto、custom。
|
107
107
|
# 说明:
|
108
|
-
# 1. 仅对 hunyuan-functioncall 模型生效。
|
108
|
+
# 1. 仅对 hunyuan-pro、hunyuan-turbo、hunyuan-functioncall 模型生效。
|
109
109
|
# 2. none:不调用工具;auto:模型自行选择生成回复或调用工具;custom:强制模型调用指定的工具。
|
110
110
|
# 3. 未设置时,默认值为auto
|
111
111
|
# @type ToolChoice: String
|
@@ -121,10 +121,17 @@ module TencentCloud
|
|
121
121
|
# @type Citation: Boolean
|
122
122
|
# @param EnableSpeedSearch: 是否开启极速版搜索,默认false,不开启;在开启且命中搜索时,会启用极速版搜索,流式输出首字返回更快。
|
123
123
|
# @type EnableSpeedSearch: Boolean
|
124
|
+
# @param EnableMultimedia: 图文并茂开关。
|
125
|
+
# 说明:
|
126
|
+
# 1. 该参数仅在功能增强(如搜索)开关开启(EnableEnhancement=true)时生效。
|
127
|
+
# 2. hunyuan-lite 无图文并茂能力,该参数对 hunyuan-lite 版本不生效。
|
128
|
+
# 3. 未传值时默认关闭。
|
129
|
+
# 4. 开启并搜索到对应的多媒体信息时,会输出对应的多媒体地址,可以定制个性化的图文消息。
|
130
|
+
# @type EnableMultimedia: Boolean
|
124
131
|
|
125
|
-
attr_accessor :Model, :Messages, :Stream, :StreamModeration, :TopP, :Temperature, :EnableEnhancement, :Tools, :ToolChoice, :CustomTool, :SearchInfo, :Citation, :EnableSpeedSearch
|
132
|
+
attr_accessor :Model, :Messages, :Stream, :StreamModeration, :TopP, :Temperature, :EnableEnhancement, :Tools, :ToolChoice, :CustomTool, :SearchInfo, :Citation, :EnableSpeedSearch, :EnableMultimedia
|
126
133
|
|
127
|
-
def initialize(model=nil, messages=nil, stream=nil, streammoderation=nil, topp=nil, temperature=nil, enableenhancement=nil, tools=nil, toolchoice=nil, customtool=nil, searchinfo=nil, citation=nil, enablespeedsearch=nil)
|
134
|
+
def initialize(model=nil, messages=nil, stream=nil, streammoderation=nil, topp=nil, temperature=nil, enableenhancement=nil, tools=nil, toolchoice=nil, customtool=nil, searchinfo=nil, citation=nil, enablespeedsearch=nil, enablemultimedia=nil)
|
128
135
|
@Model = model
|
129
136
|
@Messages = messages
|
130
137
|
@Stream = stream
|
@@ -138,6 +145,7 @@ module TencentCloud
|
|
138
145
|
@SearchInfo = searchinfo
|
139
146
|
@Citation = citation
|
140
147
|
@EnableSpeedSearch = enablespeedsearch
|
148
|
+
@EnableMultimedia = enablemultimedia
|
141
149
|
end
|
142
150
|
|
143
151
|
def deserialize(params)
|
@@ -171,6 +179,7 @@ module TencentCloud
|
|
171
179
|
@SearchInfo = params['SearchInfo']
|
172
180
|
@Citation = params['Citation']
|
173
181
|
@EnableSpeedSearch = params['EnableSpeedSearch']
|
182
|
+
@EnableMultimedia = params['EnableMultimedia']
|
174
183
|
end
|
175
184
|
end
|
176
185
|
|
@@ -195,12 +204,17 @@ module TencentCloud
|
|
195
204
|
# @type ModerationLevel: String
|
196
205
|
# @param SearchInfo: 搜索结果信息
|
197
206
|
# @type SearchInfo: :class:`Tencentcloud::Hunyuan.v20230901.models.SearchInfo`
|
207
|
+
# @param Replaces: 多媒体信息。
|
208
|
+
# 说明:
|
209
|
+
# 1. 可以用多媒体信息替换回复内容里的占位符,得到完整的图文信息。
|
210
|
+
# 2. 可能会出现回复内容里存在占位符,但是因为审核等原因没有返回多媒体信息。
|
211
|
+
# @type Replaces: Array
|
198
212
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
|
199
213
|
# @type RequestId: String
|
200
214
|
|
201
|
-
attr_accessor :Created, :Usage, :Note, :Id, :Choices, :ErrorMsg, :ModerationLevel, :SearchInfo, :RequestId
|
215
|
+
attr_accessor :Created, :Usage, :Note, :Id, :Choices, :ErrorMsg, :ModerationLevel, :SearchInfo, :Replaces, :RequestId
|
202
216
|
|
203
|
-
def initialize(created=nil, usage=nil, note=nil, id=nil, choices=nil, errormsg=nil, moderationlevel=nil, searchinfo=nil, requestid=nil)
|
217
|
+
def initialize(created=nil, usage=nil, note=nil, id=nil, choices=nil, errormsg=nil, moderationlevel=nil, searchinfo=nil, replaces=nil, requestid=nil)
|
204
218
|
@Created = created
|
205
219
|
@Usage = usage
|
206
220
|
@Note = note
|
@@ -209,6 +223,7 @@ module TencentCloud
|
|
209
223
|
@ErrorMsg = errormsg
|
210
224
|
@ModerationLevel = moderationlevel
|
211
225
|
@SearchInfo = searchinfo
|
226
|
+
@Replaces = replaces
|
212
227
|
@RequestId = requestid
|
213
228
|
end
|
214
229
|
|
@@ -237,6 +252,14 @@ module TencentCloud
|
|
237
252
|
@SearchInfo = SearchInfo.new
|
238
253
|
@SearchInfo.deserialize(params['SearchInfo'])
|
239
254
|
end
|
255
|
+
unless params['Replaces'].nil?
|
256
|
+
@Replaces = []
|
257
|
+
params['Replaces'].each do |i|
|
258
|
+
replace_tmp = Replace.new
|
259
|
+
replace_tmp.deserialize(i)
|
260
|
+
@Replaces << replace_tmp
|
261
|
+
end
|
262
|
+
end
|
240
263
|
@RequestId = params['RequestId']
|
241
264
|
end
|
242
265
|
end
|
@@ -660,6 +683,30 @@ module TencentCloud
|
|
660
683
|
end
|
661
684
|
end
|
662
685
|
|
686
|
+
# 图文并茂详情
|
687
|
+
class Multimedia < TencentCloud::Common::AbstractModel
|
688
|
+
# @param Type: 多媒体类型,image:图片。
|
689
|
+
# @type Type: String
|
690
|
+
# @param Url: 多媒体预览地址。
|
691
|
+
# @type Url: String
|
692
|
+
# @param JumpUrl: 多媒体详情地址。
|
693
|
+
# @type JumpUrl: String
|
694
|
+
|
695
|
+
attr_accessor :Type, :Url, :JumpUrl
|
696
|
+
|
697
|
+
def initialize(type=nil, url=nil, jumpurl=nil)
|
698
|
+
@Type = type
|
699
|
+
@Url = url
|
700
|
+
@JumpUrl = jumpurl
|
701
|
+
end
|
702
|
+
|
703
|
+
def deserialize(params)
|
704
|
+
@Type = params['Type']
|
705
|
+
@Url = params['Url']
|
706
|
+
@JumpUrl = params['JumpUrl']
|
707
|
+
end
|
708
|
+
end
|
709
|
+
|
663
710
|
# QueryHunyuanImageChatJob请求参数结构体
|
664
711
|
class QueryHunyuanImageChatJobRequest < TencentCloud::Common::AbstractModel
|
665
712
|
# @param JobId: 任务 ID。
|
@@ -795,6 +842,33 @@ module TencentCloud
|
|
795
842
|
end
|
796
843
|
end
|
797
844
|
|
845
|
+
# 图文并茂占位符替换信息
|
846
|
+
class Replace < TencentCloud::Common::AbstractModel
|
847
|
+
# @param Id: 占位符序号
|
848
|
+
# @type Id: String
|
849
|
+
# @param Multimedia: 多媒体详情
|
850
|
+
# @type Multimedia: Array
|
851
|
+
|
852
|
+
attr_accessor :Id, :Multimedia
|
853
|
+
|
854
|
+
def initialize(id=nil, multimedia=nil)
|
855
|
+
@Id = id
|
856
|
+
@Multimedia = multimedia
|
857
|
+
end
|
858
|
+
|
859
|
+
def deserialize(params)
|
860
|
+
@Id = params['Id']
|
861
|
+
unless params['Multimedia'].nil?
|
862
|
+
@Multimedia = []
|
863
|
+
params['Multimedia'].each do |i|
|
864
|
+
multimedia_tmp = Multimedia.new
|
865
|
+
multimedia_tmp.deserialize(i)
|
866
|
+
@Multimedia << multimedia_tmp
|
867
|
+
end
|
868
|
+
end
|
869
|
+
end
|
870
|
+
end
|
871
|
+
|
798
872
|
# 搜索结果信息
|
799
873
|
class SearchInfo < TencentCloud::Common::AbstractModel
|
800
874
|
# @param SearchResults: 搜索引文信息
|
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.907
|
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-09-
|
11
|
+
date: 2024-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|