tencentcloud-sdk-aiart 3.0.803 → 3.0.804

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 +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d8005a0a2692d2e3370e1e9dba8c7b690a4dcc2a
4
- data.tar.gz: 2f49ca87f1d01bcb424b0439782ef34e72aff902
3
+ metadata.gz: f48e332eec359dbe433637302252be0d3f6472a2
4
+ data.tar.gz: 7cdfdf584665ebbf8e57b0cb163f0193b54ad4f8
5
5
  SHA512:
6
- metadata.gz: 51c9e04fa907f3085c3da0b8225ebeb8a449e9e23889012a0715af520641c1b07ff1ad4e48187a3938cbd7e5c0e66b1071feb0d66318006627393521b0b5a08e
7
- data.tar.gz: 80724c0029d84d096e8fbec1547411210d9ee62c05c08785c8aa6377f98a36df8efa412260cd3438ac8c2527bf97ba3137c86889ef33a5761c4db5517edabaca
6
+ metadata.gz: 01e2226970872fe4d9488fc3e17abc3051298053fc2c3650e191f06591b4e6054e094cdfeeaa44cce5ff8d6f9b9b025c7331f6af0a2374fa9e16812e2a7088e2
7
+ data.tar.gz: e73e551783fd3b9ab6ff9120086633e63bdfcf21b7ae461a25676edd91d888a06721dfb8112f23ecfa606269dd5e691cc5160a890d562e30c5a93782d5856fc4
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.803
1
+ 3.0.804
@@ -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,7 +1,7 @@
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.804
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud