tencentcloud-sdk-hunyuan 3.0.968 → 3.0.969

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20230901/models.rb +16 -4
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e2d54cc02ea991de713bbb734ff94c4c2e6280ee
4
- data.tar.gz: 351206c54cb58ee830c18345419feb33d5b9b0e7
3
+ metadata.gz: 0bddae97924bec2463fe2c96b71b2d6fca85161b
4
+ data.tar.gz: d19d27d079e5055e3ff743070b68dc8e27948272
5
5
  SHA512:
6
- metadata.gz: 23b9d38dc3dd85f36596e56d468b2a539575cb0a0d640fc1abe752ee08d9fbd3672fc54ea6da7895f835f72186d83aae725ba95bb24658d61e9d0997ec9bd401
7
- data.tar.gz: e3ee04f594c044c449a0eac1a2808b4c3f71cd4b97d9262048e5c9d6995414d8072bc55735abbc81969712c433757a39ac798b9607cf41f4d59f97e945638ad6
6
+ metadata.gz: 8642e63fc35caafa51074775c3b18d8dbc209fb91c9a044b65f82a936614f48a93fe36e047b9f1c921ae551d1a5253b48a1746c1893ea6e1e129940733ee78e8
7
+ data.tar.gz: 0ab45c3d16f6bb6312b10eafe89771c2e43954c33c153f2b2a10b78cf73772c93d006ad8d755be838c06d943d191a9f19b341cac21d634158ff5a81c1cfefa0b
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.968
1
+ 3.0.969
@@ -141,10 +141,15 @@ module TencentCloud
141
141
  # @type ForceSearchEnhancement: Boolean
142
142
  # @param Stop: 自定义结束生成字符串
143
143
  # @type Stop: Array
144
+ # @param EnableRecommendedQuestions: 推荐问答开关。
145
+ # 说明:
146
+ # 1. 未传值时默认关闭。
147
+ # 2. 开启后,返回值里将增加 RecommendedQuestions 字段返回推荐问答, 最多只返回3条。
148
+ # @type EnableRecommendedQuestions: Boolean
144
149
 
145
- attr_accessor :Model, :Messages, :Stream, :StreamModeration, :TopP, :Temperature, :EnableEnhancement, :Tools, :ToolChoice, :CustomTool, :SearchInfo, :Citation, :EnableSpeedSearch, :EnableMultimedia, :EnableDeepSearch, :Seed, :ForceSearchEnhancement, :Stop
150
+ attr_accessor :Model, :Messages, :Stream, :StreamModeration, :TopP, :Temperature, :EnableEnhancement, :Tools, :ToolChoice, :CustomTool, :SearchInfo, :Citation, :EnableSpeedSearch, :EnableMultimedia, :EnableDeepSearch, :Seed, :ForceSearchEnhancement, :Stop, :EnableRecommendedQuestions
146
151
 
147
- 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, enabledeepsearch=nil, seed=nil, forcesearchenhancement=nil, stop=nil)
152
+ 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, enabledeepsearch=nil, seed=nil, forcesearchenhancement=nil, stop=nil, enablerecommendedquestions=nil)
148
153
  @Model = model
149
154
  @Messages = messages
150
155
  @Stream = stream
@@ -163,6 +168,7 @@ module TencentCloud
163
168
  @Seed = seed
164
169
  @ForceSearchEnhancement = forcesearchenhancement
165
170
  @Stop = stop
171
+ @EnableRecommendedQuestions = enablerecommendedquestions
166
172
  end
167
173
 
168
174
  def deserialize(params)
@@ -201,6 +207,7 @@ module TencentCloud
201
207
  @Seed = params['Seed']
202
208
  @ForceSearchEnhancement = params['ForceSearchEnhancement']
203
209
  @Stop = params['Stop']
210
+ @EnableRecommendedQuestions = params['EnableRecommendedQuestions']
204
211
  end
205
212
  end
206
213
 
@@ -230,12 +237,14 @@ module TencentCloud
230
237
  # 1. 可以用多媒体信息替换回复内容里的占位符,得到完整的消息。
231
238
  # 2. 可能会出现回复内容里存在占位符,但是因为审核等原因没有返回多媒体信息。
232
239
  # @type Replaces: Array
240
+ # @param RecommendedQuestions: 推荐问答。
241
+ # @type RecommendedQuestions: Array
233
242
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
234
243
  # @type RequestId: String
235
244
 
236
- attr_accessor :Created, :Usage, :Note, :Id, :Choices, :ErrorMsg, :ModerationLevel, :SearchInfo, :Replaces, :RequestId
245
+ attr_accessor :Created, :Usage, :Note, :Id, :Choices, :ErrorMsg, :ModerationLevel, :SearchInfo, :Replaces, :RecommendedQuestions, :RequestId
237
246
 
238
- def initialize(created=nil, usage=nil, note=nil, id=nil, choices=nil, errormsg=nil, moderationlevel=nil, searchinfo=nil, replaces=nil, requestid=nil)
247
+ def initialize(created=nil, usage=nil, note=nil, id=nil, choices=nil, errormsg=nil, moderationlevel=nil, searchinfo=nil, replaces=nil, recommendedquestions=nil, requestid=nil)
239
248
  @Created = created
240
249
  @Usage = usage
241
250
  @Note = note
@@ -245,6 +254,7 @@ module TencentCloud
245
254
  @ModerationLevel = moderationlevel
246
255
  @SearchInfo = searchinfo
247
256
  @Replaces = replaces
257
+ @RecommendedQuestions = recommendedquestions
248
258
  @RequestId = requestid
249
259
  end
250
260
 
@@ -281,6 +291,7 @@ module TencentCloud
281
291
  @Replaces << replace_tmp
282
292
  end
283
293
  end
294
+ @RecommendedQuestions = params['RecommendedQuestions']
284
295
  @RequestId = params['RequestId']
285
296
  end
286
297
  end
@@ -447,6 +458,7 @@ module TencentCloud
447
458
  # @param Type: 内容类型
448
459
  # 注意:
449
460
  # 当前只支持传入单张图片,传入多张图片时,以第一个图片为准。
461
+ # 参数值可选范围:[text", "image_url"]
450
462
  # 注意:此字段可能返回 null,表示取不到有效值。
451
463
  # @type Type: String
452
464
  # @param Text: 当 Type 为 text 时使用,表示具体的文本内容
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.968
4
+ version: 3.0.969
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-12-24 00:00:00.000000000 Z
11
+ date: 2024-12-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common