tencentcloud-sdk-hunyuan 3.0.1020 → 3.0.1021
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20230901/models.rb +40 -9
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7232016fecfac3d83c7da82e4cfa6e0d19508cd2
|
4
|
+
data.tar.gz: 7e274557beefa02c9aa4157793d45a50a334a22c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05808951dd90f19d48e6ee4c4c8a387fcdf30aa455a1b5bc338fc26466e7e5a2260be48c6f2e4e3beda52c2572b720b094d8882b1e6fa2f7e77d43961e131714
|
7
|
+
data.tar.gz: 0d6cc3bc8a5fdb054c38081b12b995e7baa73eb1475bcaedac32734ddadbaf41f75dea3342e8fa89f7c4c329c3de76656569e20a117254cbb5a611295f312949
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1021
|
data/lib/v20230901/models.rb
CHANGED
@@ -1427,6 +1427,26 @@ module TencentCloud
|
|
1427
1427
|
end
|
1428
1428
|
end
|
1429
1429
|
|
1430
|
+
# 图片信息
|
1431
|
+
class Image < TencentCloud::Common::AbstractModel
|
1432
|
+
# @param ImageUrl: 图片Url。
|
1433
|
+
# @type ImageUrl: String
|
1434
|
+
# @param ImageBase64: 图片Base64。
|
1435
|
+
# @type ImageBase64: String
|
1436
|
+
|
1437
|
+
attr_accessor :ImageUrl, :ImageBase64
|
1438
|
+
|
1439
|
+
def initialize(imageurl=nil, imagebase64=nil)
|
1440
|
+
@ImageUrl = imageurl
|
1441
|
+
@ImageBase64 = imagebase64
|
1442
|
+
end
|
1443
|
+
|
1444
|
+
def deserialize(params)
|
1445
|
+
@ImageUrl = params['ImageUrl']
|
1446
|
+
@ImageBase64 = params['ImageBase64']
|
1447
|
+
end
|
1448
|
+
end
|
1449
|
+
|
1430
1450
|
# 具体的图片内容
|
1431
1451
|
class ImageUrl < TencentCloud::Common::AbstractModel
|
1432
1452
|
# @param Url: 图片的 Url(以 http:// 或 https:// 开头)
|
@@ -2215,23 +2235,29 @@ module TencentCloud
|
|
2215
2235
|
# @type Style: String
|
2216
2236
|
# @param Resolution: 生成图分辨率。
|
2217
2237
|
# 支持生成以下分辨率的图片:768:768(1:1)、768:1024(3:4)、1024:768(4:3)、1024:1024(1:1)、720:1280(9:16)、1280:720(16:9)、768:1280(3:5)、1280:768(5:3),不传默认使用1024:1024。
|
2238
|
+
# 如果上传 ContentImage 参考图,分辨率仅支持:768:768(1:1)、768:1024(3:4)、1024:768(4:3)、1024:1024(1:1),不传将自动适配分辨率。如果参考图被用于做风格转换,将生成保持原图长宽比例且长边为1024的图片,指定的分辨率不生效。
|
2218
2239
|
# @type Resolution: String
|
2219
2240
|
# @param Num: 图片生成数量。
|
2220
2241
|
# 支持1 ~ 4张,默认生成1张。
|
2221
2242
|
# @type Num: Integer
|
2222
|
-
# @param Seed: 随机种子,默认随机。
|
2223
|
-
# 不传:随机种子生成。
|
2224
|
-
# 正数:固定种子生成。
|
2225
|
-
# @type Seed: Integer
|
2226
2243
|
# @param Clarity: 超分选项,默认不做超分,可选开启。
|
2227
2244
|
# x2:2倍超分
|
2228
2245
|
# x4:4倍超分
|
2246
|
+
# 在 Resolution 的基础上按比例提高分辨率,例如1024:1024开启2倍超分后将得到2048:2048。
|
2229
2247
|
# @type Clarity: String
|
2248
|
+
# @param ContentImage: 用于引导内容的参考图。
|
2249
|
+
# 图片限制:单边分辨率小于5000,转成 Base64 字符串后小于 8MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。
|
2250
|
+
# @type ContentImage: :class:`Tencentcloud::Hunyuan.v20230901.models.Image`
|
2230
2251
|
# @param Revise: prompt 扩写开关。1为开启,0为关闭,不传默认开启。
|
2231
2252
|
# 开启扩写后,将自动扩写原始输入的 prompt 并使用扩写后的 prompt 生成图片,返回生成图片结果时将一并返回扩写后的 prompt 文本。
|
2232
|
-
# 如果关闭扩写,将直接使用原始输入的 prompt
|
2253
|
+
# 如果关闭扩写,将直接使用原始输入的 prompt 生成图片。如果上传了参考图,扩写关闭不生效,将保持开启。
|
2233
2254
|
# 建议开启,在多数场景下可提升生成图片效果、丰富生成图片细节。
|
2234
2255
|
# @type Revise: Integer
|
2256
|
+
# @param Seed: 随机种子,默认随机。
|
2257
|
+
# 不传:随机种子生成。
|
2258
|
+
# 正数:固定种子生成。
|
2259
|
+
# 扩写开启时固定种子不生效,将保持随机。
|
2260
|
+
# @type Seed: Integer
|
2235
2261
|
# @param LogoAdd: 为生成结果图添加显式水印标识的开关,默认为1。
|
2236
2262
|
# 1:添加。
|
2237
2263
|
# 0:不添加。
|
@@ -2242,17 +2268,18 @@ module TencentCloud
|
|
2242
2268
|
# 默认在生成结果图右下角添加“图片由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
|
2243
2269
|
# @type LogoParam: :class:`Tencentcloud::Hunyuan.v20230901.models.LogoParam`
|
2244
2270
|
|
2245
|
-
attr_accessor :Prompt, :NegativePrompt, :Style, :Resolution, :Num, :
|
2271
|
+
attr_accessor :Prompt, :NegativePrompt, :Style, :Resolution, :Num, :Clarity, :ContentImage, :Revise, :Seed, :LogoAdd, :LogoParam
|
2246
2272
|
|
2247
|
-
def initialize(prompt=nil, negativeprompt=nil, style=nil, resolution=nil, num=nil,
|
2273
|
+
def initialize(prompt=nil, negativeprompt=nil, style=nil, resolution=nil, num=nil, clarity=nil, contentimage=nil, revise=nil, seed=nil, logoadd=nil, logoparam=nil)
|
2248
2274
|
@Prompt = prompt
|
2249
2275
|
@NegativePrompt = negativeprompt
|
2250
2276
|
@Style = style
|
2251
2277
|
@Resolution = resolution
|
2252
2278
|
@Num = num
|
2253
|
-
@Seed = seed
|
2254
2279
|
@Clarity = clarity
|
2280
|
+
@ContentImage = contentimage
|
2255
2281
|
@Revise = revise
|
2282
|
+
@Seed = seed
|
2256
2283
|
@LogoAdd = logoadd
|
2257
2284
|
@LogoParam = logoparam
|
2258
2285
|
end
|
@@ -2263,9 +2290,13 @@ module TencentCloud
|
|
2263
2290
|
@Style = params['Style']
|
2264
2291
|
@Resolution = params['Resolution']
|
2265
2292
|
@Num = params['Num']
|
2266
|
-
@Seed = params['Seed']
|
2267
2293
|
@Clarity = params['Clarity']
|
2294
|
+
unless params['ContentImage'].nil?
|
2295
|
+
@ContentImage = Image.new
|
2296
|
+
@ContentImage.deserialize(params['ContentImage'])
|
2297
|
+
end
|
2268
2298
|
@Revise = params['Revise']
|
2299
|
+
@Seed = params['Seed']
|
2269
2300
|
@LogoAdd = params['LogoAdd']
|
2270
2301
|
unless params['LogoParam'].nil?
|
2271
2302
|
@LogoParam = LogoParam.new
|