tencentcloud-sdk-aiart 3.0.803 → 3.0.805

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/v20221229/models.rb +15 -4
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d8005a0a2692d2e3370e1e9dba8c7b690a4dcc2a
4
- data.tar.gz: 2f49ca87f1d01bcb424b0439782ef34e72aff902
3
+ metadata.gz: 2efc26d35ed08a35cbd1d33297fec79997b21bc0
4
+ data.tar.gz: 72014291440b441a6f0d8681b71dc2c6d515a0b4
5
5
  SHA512:
6
- metadata.gz: 51c9e04fa907f3085c3da0b8225ebeb8a449e9e23889012a0715af520641c1b07ff1ad4e48187a3938cbd7e5c0e66b1071feb0d66318006627393521b0b5a08e
7
- data.tar.gz: 80724c0029d84d096e8fbec1547411210d9ee62c05c08785c8aa6377f98a36df8efa412260cd3438ac8c2527bf97ba3137c86889ef33a5761c4db5517edabaca
6
+ metadata.gz: 5e3b87adbff7f68bff52aab801f4187311bd91b860f205d9105289857932c3cab42060d22ac00a510be8fc742696deade9974250b525d7bc8189ba1167dc6d83
7
+ data.tar.gz: 52940d1e9be0b19a5f3c4f9240708eb72f6d6c58afa661f444d90f22d7c44517f5ffa330fca82363d40dbcf9784d31abcf20d75af211f03d5ec3cd7f1136fdf9
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.803
1
+ 3.0.805
@@ -204,18 +204,21 @@ module TencentCloud
204
204
  # @type ResultImage: Array
205
205
  # @param ResultDetails: 结果 detail 数组,Success 代表成功。
206
206
  # @type ResultDetails: Array
207
+ # @param RevisedPrompt: 对应 SubmitTextToImageProJob 接口中 Revise 参数。开启扩写时,返回扩写后的 prompt 文本。 如果关闭扩写,将直接返回原始输入的 prompt。
208
+ # @type RevisedPrompt: Array
207
209
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
208
210
  # @type RequestId: String
209
211
 
210
- attr_accessor :JobStatusCode, :JobStatusMsg, :JobErrorCode, :JobErrorMsg, :ResultImage, :ResultDetails, :RequestId
212
+ attr_accessor :JobStatusCode, :JobStatusMsg, :JobErrorCode, :JobErrorMsg, :ResultImage, :ResultDetails, :RevisedPrompt, :RequestId
211
213
 
212
- def initialize(jobstatuscode=nil, jobstatusmsg=nil, joberrorcode=nil, joberrormsg=nil, resultimage=nil, resultdetails=nil, requestid=nil)
214
+ def initialize(jobstatuscode=nil, jobstatusmsg=nil, joberrorcode=nil, joberrormsg=nil, resultimage=nil, resultdetails=nil, revisedprompt=nil, requestid=nil)
213
215
  @JobStatusCode = jobstatuscode
214
216
  @JobStatusMsg = jobstatusmsg
215
217
  @JobErrorCode = joberrorcode
216
218
  @JobErrorMsg = joberrormsg
217
219
  @ResultImage = resultimage
218
220
  @ResultDetails = resultdetails
221
+ @RevisedPrompt = revisedprompt
219
222
  @RequestId = requestid
220
223
  end
221
224
 
@@ -226,6 +229,7 @@ module TencentCloud
226
229
  @JobErrorMsg = params['JobErrorMsg']
227
230
  @ResultImage = params['ResultImage']
228
231
  @ResultDetails = params['ResultDetails']
232
+ @RevisedPrompt = params['RevisedPrompt']
229
233
  @RequestId = params['RequestId']
230
234
  end
231
235
  end
@@ -274,15 +278,21 @@ module TencentCloud
274
278
  # engine1
275
279
  # engine2
276
280
  # @type Engine: String
281
+ # @param Revise: prompt 扩写开关。1为开启,0为关闭,不传默认开启。
282
+ # 开启扩写后,将自动扩写原始输入的 prompt 并使用扩写后的 prompt 生成图片,返回生成图片结果时将一并返回扩写后的 prompt 文本。
283
+ # 如果关闭扩写,将直接使用原始输入的 prompt 生成图片。
284
+ # 建议开启,在多数场景下可提升生成图片效果、丰富生成图片细节。
285
+ # @type Revise: Integer
277
286
 
278
- attr_accessor :Prompt, :Style, :Resolution, :LogoAdd, :Engine
287
+ attr_accessor :Prompt, :Style, :Resolution, :LogoAdd, :Engine, :Revise
279
288
 
280
- def initialize(prompt=nil, style=nil, resolution=nil, logoadd=nil, engine=nil)
289
+ def initialize(prompt=nil, style=nil, resolution=nil, logoadd=nil, engine=nil, revise=nil)
281
290
  @Prompt = prompt
282
291
  @Style = style
283
292
  @Resolution = resolution
284
293
  @LogoAdd = logoadd
285
294
  @Engine = engine
295
+ @Revise = revise
286
296
  end
287
297
 
288
298
  def deserialize(params)
@@ -291,6 +301,7 @@ module TencentCloud
291
301
  @Resolution = params['Resolution']
292
302
  @LogoAdd = params['LogoAdd']
293
303
  @Engine = params['Engine']
304
+ @Revise = params['Revise']
294
305
  end
295
306
  end
296
307
 
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.803
4
+ version: 3.0.805
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-04-15 00:00:00.000000000 Z
11
+ date: 2024-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common