tencentcloud-sdk-hunyuan 3.0.942 → 3.0.944

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20230901/models.rb +13 -5
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dd85ecdab45a9c6b4aebce4439c2d8f28b65dd2e
4
- data.tar.gz: 28c8ba197bbb98355bf2cd87862c9ba053ff8c8d
3
+ metadata.gz: 28afc2fc8338eb82e94365b410690cfaa2302a84
4
+ data.tar.gz: bfebdf1f261e9b7c13dbf68e12cbe9800fc5c9c8
5
5
  SHA512:
6
- metadata.gz: 1e634ac032433af56191671a58aa2be7ab06e2a73d1935dbd433ab68f0291443825b3038d1c7982e7bbaeabc8cf717138105f04d36b94f0024a027f4101d51eb
7
- data.tar.gz: 026dadf5db61a3cf39e9698589ce9c69db6a7bef0dc6befd375c654f96fb926d218c3659031d871a64138b9395e0531f7271e8332550b7882d8735972316f7d7
6
+ metadata.gz: 760bdd8305c93e85d53b1ac167df4a061f4e59a5ae58382a16085b69596642a8588e41da21d52b269891fe01944450b53696347a4251728c4c5ccbd747eaad0d
7
+ data.tar.gz: ff847d46a117224fcb08218dde5b6d81f3b672efc5d0bd7ab83204212204125e3810f77279ae87c2441c47c6dc88bbbb907ea41b8405e3bdc23f198325c6f41e
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.942
1
+ 3.0.944
@@ -287,13 +287,16 @@ module TencentCloud
287
287
  # @param Message: 返回值,非流式调用时使用该字段。
288
288
  # 注意:此字段可能返回 null,表示取不到有效值。
289
289
  # @type Message: :class:`Tencentcloud::Hunyuan.v20230901.models.Message`
290
+ # @param Index: 索引值,流式调用时使用该字段。
291
+ # @type Index: Integer
290
292
 
291
- attr_accessor :FinishReason, :Delta, :Message
293
+ attr_accessor :FinishReason, :Delta, :Message, :Index
292
294
 
293
- def initialize(finishreason=nil, delta=nil, message=nil)
295
+ def initialize(finishreason=nil, delta=nil, message=nil, index=nil)
294
296
  @FinishReason = finishreason
295
297
  @Delta = delta
296
298
  @Message = message
299
+ @Index = index
297
300
  end
298
301
 
299
302
  def deserialize(params)
@@ -306,6 +309,7 @@ module TencentCloud
306
309
  @Message = Message.new
307
310
  @Message.deserialize(params['Message'])
308
311
  end
312
+ @Index = params['Index']
309
313
  end
310
314
  end
311
315
 
@@ -1352,7 +1356,7 @@ module TencentCloud
1352
1356
  # @type ResultImage: Array
1353
1357
  # @param ResultDetails: 结果 detail 数组,Success 代表成功。
1354
1358
  # @type ResultDetails: Array
1355
- # @param RevisedPrompt: 对应 SubmitTextToImageProJob 接口中 Revise 参数。开启扩写时,返回扩写后的 prompt 文本。 如果关闭扩写,将直接返回原始输入的 prompt。
1359
+ # @param RevisedPrompt: 对应 SubmitHunyuanImageJob 接口中 Revise 参数。开启扩写时,返回扩写后的 prompt 文本。 如果关闭扩写,将直接返回原始输入的 prompt。
1356
1360
  # @type RevisedPrompt: Array
1357
1361
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1358
1362
  # @type RequestId: String
@@ -1785,6 +1789,8 @@ module TencentCloud
1785
1789
  # 算法将根据输入的文本智能生成与之相关的图像。
1786
1790
  # 不能为空,推荐使用中文。最多可传1024个 utf-8 字符。
1787
1791
  # @type Prompt: String
1792
+ # @param NegativePrompt: 反向提示词。 推荐使用中文。最多可传1024个 utf-8 字符。
1793
+ # @type NegativePrompt: String
1788
1794
  # @param Style: 绘画风格。
1789
1795
  # 请在 [混元生图风格列表](https://cloud.tencent.com/document/product/1729/105846) 中选择期望的风格,传入风格编号。
1790
1796
  # 不传默认不指定风格。
@@ -1814,10 +1820,11 @@ module TencentCloud
1814
1820
  # 默认在生成结果图右下角添加“图片由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
1815
1821
  # @type LogoParam: :class:`Tencentcloud::Hunyuan.v20230901.models.LogoParam`
1816
1822
 
1817
- attr_accessor :Prompt, :Style, :Resolution, :Num, :Seed, :Revise, :LogoAdd, :LogoParam
1823
+ attr_accessor :Prompt, :NegativePrompt, :Style, :Resolution, :Num, :Seed, :Revise, :LogoAdd, :LogoParam
1818
1824
 
1819
- def initialize(prompt=nil, style=nil, resolution=nil, num=nil, seed=nil, revise=nil, logoadd=nil, logoparam=nil)
1825
+ def initialize(prompt=nil, negativeprompt=nil, style=nil, resolution=nil, num=nil, seed=nil, revise=nil, logoadd=nil, logoparam=nil)
1820
1826
  @Prompt = prompt
1827
+ @NegativePrompt = negativeprompt
1821
1828
  @Style = style
1822
1829
  @Resolution = resolution
1823
1830
  @Num = num
@@ -1829,6 +1836,7 @@ module TencentCloud
1829
1836
 
1830
1837
  def deserialize(params)
1831
1838
  @Prompt = params['Prompt']
1839
+ @NegativePrompt = params['NegativePrompt']
1832
1840
  @Style = params['Style']
1833
1841
  @Resolution = params['Resolution']
1834
1842
  @Num = params['Num']
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.942
4
+ version: 3.0.944
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-11-15 00:00:00.000000000 Z
11
+ date: 2024-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common