tencentcloud-sdk-aiart 3.0.981 → 3.0.982

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e96772caaaa414d729b682536b7edc087382d525
4
- data.tar.gz: dc874e98f34fe2eabb2c3b544a403a66f1521bb7
3
+ metadata.gz: 9fcedb31bb31083c7e4a378243baa4eaa8b8b296
4
+ data.tar.gz: 99be04864ab79034fa6a25fa14d9ab402cb9e252
5
5
  SHA512:
6
- metadata.gz: aa5a92def39f8d7fa62ed2eaac57cc82c16a91394683e21d9847603512f45d14a9887a41cb4761995b7becc01fa0db363fa483130354d1b9e6ba3bcadf086a10
7
- data.tar.gz: cb30926fa1ad99a229abc86b612d7714e73d045cc543e728af932ade3b51d4bb27e977438c3fb57359d0e748905d59ad5e68052d0282ac9ea8027563b5688280
6
+ metadata.gz: f39fb1862b7bb45ec26238e4e17575ad0c24ffea33321fa69eae59f5cd1ecc68d7ddef0c03ae5b6cb1d55a84bf4eac191ed6e5c62fcd73a0e48d6633a5fc3e09
7
+ data.tar.gz: db708fdb86de72b4b37cbc019ceaff780c5ddd02fbf8e9b814860c727f2ac3a0ab3a6961095d394709367db02ae70dae883637d75aacc3bd7b5dc2231469b03d
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.981
1
+ 3.0.982
@@ -765,6 +765,7 @@ module TencentCloud
765
765
  # @type ProductUrl: String
766
766
  # @param Prompt: 对新背景的文本描述。
767
767
  # 最多支持256个 utf-8 字符,支持中、英文。
768
+ # 如果 Prompt = "BackgroundTemplate" 代表启用背景模板,需要在参数 BackgroundTemplate 中指定一个背景名称。
768
769
  # @type Prompt: String
769
770
  # @param NegativePrompt: 反向提示词。
770
771
  # 最多支持256个 utf-8 字符,支持中、英文。
@@ -772,6 +773,9 @@ module TencentCloud
772
773
  # @param Product: 商品图中的商品主体名称。
773
774
  # 建议说明商品主体,否则影响生成效果。
774
775
  # @type Product: String
776
+ # @param BackgroundTemplate: 背景模板。
777
+ # 仅当 Prompt = "BackgroundTemplate" 时生效,可支持的模板详见 [商品背景模板列表](https://cloud.tencent.com/document/product/1668/115391) ,请传入字段“背景名称”中的值。
778
+ # @type BackgroundTemplate: String
775
779
  # @param MaskUrl: 商品 Mask 图 Url,要求背景透明,保留商品主体。
776
780
  # 如果不传,将自动使用内置的商品分割算法得到 Mask。
777
781
  # 支持自定义上传 Mask,如果该参数不为空,则以实际上传的数据为准。
@@ -794,13 +798,14 @@ module TencentCloud
794
798
  # 生成图分辨率较大时建议选择 url,使用 base64 可能因图片过大导致返回失败。
795
799
  # @type RspImgType: String
796
800
 
797
- attr_accessor :ProductUrl, :Prompt, :NegativePrompt, :Product, :MaskUrl, :Resolution, :LogoAdd, :LogoParam, :RspImgType
801
+ attr_accessor :ProductUrl, :Prompt, :NegativePrompt, :Product, :BackgroundTemplate, :MaskUrl, :Resolution, :LogoAdd, :LogoParam, :RspImgType
798
802
 
799
- def initialize(producturl=nil, prompt=nil, negativeprompt=nil, product=nil, maskurl=nil, resolution=nil, logoadd=nil, logoparam=nil, rspimgtype=nil)
803
+ def initialize(producturl=nil, prompt=nil, negativeprompt=nil, product=nil, backgroundtemplate=nil, maskurl=nil, resolution=nil, logoadd=nil, logoparam=nil, rspimgtype=nil)
800
804
  @ProductUrl = producturl
801
805
  @Prompt = prompt
802
806
  @NegativePrompt = negativeprompt
803
807
  @Product = product
808
+ @BackgroundTemplate = backgroundtemplate
804
809
  @MaskUrl = maskurl
805
810
  @Resolution = resolution
806
811
  @LogoAdd = logoadd
@@ -813,6 +818,7 @@ module TencentCloud
813
818
  @Prompt = params['Prompt']
814
819
  @NegativePrompt = params['NegativePrompt']
815
820
  @Product = params['Product']
821
+ @BackgroundTemplate = params['BackgroundTemplate']
816
822
  @MaskUrl = params['MaskUrl']
817
823
  @Resolution = params['Resolution']
818
824
  @LogoAdd = params['LogoAdd']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-aiart
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.981
4
+ version: 3.0.982
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-01-13 00:00:00.000000000 Z
11
+ date: 2025-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common