tencentcloud-sdk-hunyuan 3.0.1038 → 3.0.1039
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/client.rb +48 -0
- data/lib/v20230901/models.rb +152 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1db9cbbf31ea2e2f3e3d36be7ea6806c7312fa09
|
4
|
+
data.tar.gz: 97b70c499ac05956758e56123d72bf2c2c11ccd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c6ebc89ecda2f2d241f25dc594bbe3ed3ccd43e2452ddc06c04a68948b4fe7889de7ac1be5d626d50262411c9f92cf50bdc43a96b0d99122a1dc269fd6908e5
|
7
|
+
data.tar.gz: df642c36500edbed39823489e38b12d6aa333fe647cf339ccc5831edac726099fda240c7dc1be6a1fd3e2d6421b97620a3eca1530b8ca958cba2fcfeb80f0f70
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1039
|
data/lib/v20230901/client.rb
CHANGED
@@ -435,6 +435,30 @@ module TencentCloud
|
|
435
435
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
436
436
|
end
|
437
437
|
|
438
|
+
# 查询混元生3D任务
|
439
|
+
|
440
|
+
# @param request: Request instance for QueryHunyuanTo3DJob.
|
441
|
+
# @type request: :class:`Tencentcloud::hunyuan::V20230901::QueryHunyuanTo3DJobRequest`
|
442
|
+
# @rtype: :class:`Tencentcloud::hunyuan::V20230901::QueryHunyuanTo3DJobResponse`
|
443
|
+
def QueryHunyuanTo3DJob(request)
|
444
|
+
body = send_request('QueryHunyuanTo3DJob', request.serialize)
|
445
|
+
response = JSON.parse(body)
|
446
|
+
if response['Response'].key?('Error') == false
|
447
|
+
model = QueryHunyuanTo3DJobResponse.new
|
448
|
+
model.deserialize(response['Response'])
|
449
|
+
model
|
450
|
+
else
|
451
|
+
code = response['Response']['Error']['Code']
|
452
|
+
message = response['Response']['Error']['Message']
|
453
|
+
reqid = response['Response']['RequestId']
|
454
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
455
|
+
end
|
456
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
457
|
+
raise e
|
458
|
+
rescue StandardError => e
|
459
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
460
|
+
end
|
461
|
+
|
438
462
|
# 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
|
439
463
|
|
440
464
|
# 1. 本接口暂不支持返回图片内容。
|
@@ -542,6 +566,30 @@ module TencentCloud
|
|
542
566
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
543
567
|
end
|
544
568
|
|
569
|
+
# 提交混元生3D任务
|
570
|
+
|
571
|
+
# @param request: Request instance for SubmitHunyuanTo3DJob.
|
572
|
+
# @type request: :class:`Tencentcloud::hunyuan::V20230901::SubmitHunyuanTo3DJobRequest`
|
573
|
+
# @rtype: :class:`Tencentcloud::hunyuan::V20230901::SubmitHunyuanTo3DJobResponse`
|
574
|
+
def SubmitHunyuanTo3DJob(request)
|
575
|
+
body = send_request('SubmitHunyuanTo3DJob', request.serialize)
|
576
|
+
response = JSON.parse(body)
|
577
|
+
if response['Response'].key?('Error') == false
|
578
|
+
model = SubmitHunyuanTo3DJobResponse.new
|
579
|
+
model.deserialize(response['Response'])
|
580
|
+
model
|
581
|
+
else
|
582
|
+
code = response['Response']['Error']['Code']
|
583
|
+
message = response['Response']['Error']['Message']
|
584
|
+
reqid = response['Response']['RequestId']
|
585
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
586
|
+
end
|
587
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
588
|
+
raise e
|
589
|
+
rescue StandardError => e
|
590
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
591
|
+
end
|
592
|
+
|
545
593
|
# 文生图轻量版接口根据输入的文本描述,智能生成与之相关的结果图。
|
546
594
|
# 文生图轻量版默认提供3个并发任务数,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
|
547
595
|
|
data/lib/v20230901/models.rb
CHANGED
@@ -268,8 +268,8 @@ module TencentCloud
|
|
268
268
|
|
269
269
|
attr_accessor :Created, :Usage, :Note, :Id, :Choices, :ErrorMsg, :ModerationLevel, :SearchInfo, :Replaces, :RecommendedQuestions, :RequestId
|
270
270
|
extend Gem::Deprecate
|
271
|
-
deprecate :ModerationLevel, :none, 2025,
|
272
|
-
deprecate :ModerationLevel=, :none, 2025,
|
271
|
+
deprecate :ModerationLevel, :none, 2025, 4
|
272
|
+
deprecate :ModerationLevel=, :none, 2025, 4
|
273
273
|
|
274
274
|
def initialize(created=nil, usage=nil, note=nil, id=nil, choices=nil, errormsg=nil, moderationlevel=nil, searchinfo=nil, replaces=nil, recommendedquestions=nil, requestid=nil)
|
275
275
|
@Created = created
|
@@ -669,6 +669,49 @@ module TencentCloud
|
|
669
669
|
end
|
670
670
|
end
|
671
671
|
|
672
|
+
# 3D文件
|
673
|
+
class File3D < TencentCloud::Common::AbstractModel
|
674
|
+
# @param Type: 3D文件的格式。取值范围:GIF, OBJ
|
675
|
+
# @type Type: String
|
676
|
+
# @param Url: 文件的Url
|
677
|
+
# @type Url: String
|
678
|
+
|
679
|
+
attr_accessor :Type, :Url
|
680
|
+
|
681
|
+
def initialize(type=nil, url=nil)
|
682
|
+
@Type = type
|
683
|
+
@Url = url
|
684
|
+
end
|
685
|
+
|
686
|
+
def deserialize(params)
|
687
|
+
@Type = params['Type']
|
688
|
+
@Url = params['Url']
|
689
|
+
end
|
690
|
+
end
|
691
|
+
|
692
|
+
# 3D文件列表
|
693
|
+
class File3Ds < TencentCloud::Common::AbstractModel
|
694
|
+
# @param File3D: 3D文件列表
|
695
|
+
# @type File3D: Array
|
696
|
+
|
697
|
+
attr_accessor :File3D
|
698
|
+
|
699
|
+
def initialize(file3d=nil)
|
700
|
+
@File3D = file3d
|
701
|
+
end
|
702
|
+
|
703
|
+
def deserialize(params)
|
704
|
+
unless params['File3D'].nil?
|
705
|
+
@File3D = []
|
706
|
+
params['File3D'].each do |i|
|
707
|
+
file3d_tmp = File3D.new
|
708
|
+
file3d_tmp.deserialize(i)
|
709
|
+
@File3D << file3d_tmp
|
710
|
+
end
|
711
|
+
end
|
712
|
+
end
|
713
|
+
end
|
714
|
+
|
672
715
|
# 已上传的文件对象。
|
673
716
|
class FileObject < TencentCloud::Common::AbstractModel
|
674
717
|
# @param ID: 文件标识符,可在各个API中引用。
|
@@ -965,10 +1008,10 @@ module TencentCloud
|
|
965
1008
|
|
966
1009
|
attr_accessor :Data, :FirstID, :LastID, :HasMore, :Object, :FirstMsgID, :LastMsgID, :RequestId
|
967
1010
|
extend Gem::Deprecate
|
968
|
-
deprecate :FirstID, :none, 2025,
|
969
|
-
deprecate :FirstID=, :none, 2025,
|
970
|
-
deprecate :LastID, :none, 2025,
|
971
|
-
deprecate :LastID=, :none, 2025,
|
1011
|
+
deprecate :FirstID, :none, 2025, 4
|
1012
|
+
deprecate :FirstID=, :none, 2025, 4
|
1013
|
+
deprecate :LastID, :none, 2025, 4
|
1014
|
+
deprecate :LastID=, :none, 2025, 4
|
972
1015
|
|
973
1016
|
def initialize(data=nil, firstid=nil, lastid=nil, hasmore=nil, object=nil, firstmsgid=nil, lastmsgid=nil, requestid=nil)
|
974
1017
|
@Data = data
|
@@ -1796,6 +1839,61 @@ module TencentCloud
|
|
1796
1839
|
end
|
1797
1840
|
end
|
1798
1841
|
|
1842
|
+
# QueryHunyuanTo3DJob请求参数结构体
|
1843
|
+
class QueryHunyuanTo3DJobRequest < TencentCloud::Common::AbstractModel
|
1844
|
+
# @param JobId: 任务ID
|
1845
|
+
# @type JobId: String
|
1846
|
+
|
1847
|
+
attr_accessor :JobId
|
1848
|
+
|
1849
|
+
def initialize(jobid=nil)
|
1850
|
+
@JobId = jobid
|
1851
|
+
end
|
1852
|
+
|
1853
|
+
def deserialize(params)
|
1854
|
+
@JobId = params['JobId']
|
1855
|
+
end
|
1856
|
+
end
|
1857
|
+
|
1858
|
+
# QueryHunyuanTo3DJob返回参数结构体
|
1859
|
+
class QueryHunyuanTo3DJobResponse < TencentCloud::Common::AbstractModel
|
1860
|
+
# @param Status: 任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
|
1861
|
+
# @type Status: String
|
1862
|
+
# @param ResultFile3Ds: 生成的3D文件数组
|
1863
|
+
# @type ResultFile3Ds: Array
|
1864
|
+
# @param ErrorCode: 错误码
|
1865
|
+
# @type ErrorCode: String
|
1866
|
+
# @param ErrorMessage: 错误信息
|
1867
|
+
# @type ErrorMessage: String
|
1868
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1869
|
+
# @type RequestId: String
|
1870
|
+
|
1871
|
+
attr_accessor :Status, :ResultFile3Ds, :ErrorCode, :ErrorMessage, :RequestId
|
1872
|
+
|
1873
|
+
def initialize(status=nil, resultfile3ds=nil, errorcode=nil, errormessage=nil, requestid=nil)
|
1874
|
+
@Status = status
|
1875
|
+
@ResultFile3Ds = resultfile3ds
|
1876
|
+
@ErrorCode = errorcode
|
1877
|
+
@ErrorMessage = errormessage
|
1878
|
+
@RequestId = requestid
|
1879
|
+
end
|
1880
|
+
|
1881
|
+
def deserialize(params)
|
1882
|
+
@Status = params['Status']
|
1883
|
+
unless params['ResultFile3Ds'].nil?
|
1884
|
+
@ResultFile3Ds = []
|
1885
|
+
params['ResultFile3Ds'].each do |i|
|
1886
|
+
file3ds_tmp = File3Ds.new
|
1887
|
+
file3ds_tmp.deserialize(i)
|
1888
|
+
@ResultFile3Ds << file3ds_tmp
|
1889
|
+
end
|
1890
|
+
end
|
1891
|
+
@ErrorCode = params['ErrorCode']
|
1892
|
+
@ErrorMessage = params['ErrorMessage']
|
1893
|
+
@RequestId = params['RequestId']
|
1894
|
+
end
|
1895
|
+
end
|
1896
|
+
|
1799
1897
|
# 翻译对话参考示例
|
1800
1898
|
class Reference < TencentCloud::Common::AbstractModel
|
1801
1899
|
# @param Type: 翻译文本类型,枚举"sentence"表示句子, "term"表示术语
|
@@ -2330,6 +2428,54 @@ module TencentCloud
|
|
2330
2428
|
end
|
2331
2429
|
end
|
2332
2430
|
|
2431
|
+
# SubmitHunyuanTo3DJob请求参数结构体
|
2432
|
+
class SubmitHunyuanTo3DJobRequest < TencentCloud::Common::AbstractModel
|
2433
|
+
# @param Prompt: 3D内容的描述,中文正向提示词。最多支持200个 utf-8 字符,ImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
|
2434
|
+
# @type Prompt: String
|
2435
|
+
# @param ImageBase64: 输入图 Base64 数据。最多支持200个 utf-8 字符,ImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
|
2436
|
+
# @type ImageBase64: String
|
2437
|
+
# @param ImageUrl: 输入图Url。最多支持200个 utf-8 字符,ImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
|
2438
|
+
# @type ImageUrl: String
|
2439
|
+
# @param Num: 生成数量。默认1,当前限制只能为1。
|
2440
|
+
# @type Num: Integer
|
2441
|
+
|
2442
|
+
attr_accessor :Prompt, :ImageBase64, :ImageUrl, :Num
|
2443
|
+
|
2444
|
+
def initialize(prompt=nil, imagebase64=nil, imageurl=nil, num=nil)
|
2445
|
+
@Prompt = prompt
|
2446
|
+
@ImageBase64 = imagebase64
|
2447
|
+
@ImageUrl = imageurl
|
2448
|
+
@Num = num
|
2449
|
+
end
|
2450
|
+
|
2451
|
+
def deserialize(params)
|
2452
|
+
@Prompt = params['Prompt']
|
2453
|
+
@ImageBase64 = params['ImageBase64']
|
2454
|
+
@ImageUrl = params['ImageUrl']
|
2455
|
+
@Num = params['Num']
|
2456
|
+
end
|
2457
|
+
end
|
2458
|
+
|
2459
|
+
# SubmitHunyuanTo3DJob返回参数结构体
|
2460
|
+
class SubmitHunyuanTo3DJobResponse < TencentCloud::Common::AbstractModel
|
2461
|
+
# @param JobId: 任务id
|
2462
|
+
# @type JobId: String
|
2463
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2464
|
+
# @type RequestId: String
|
2465
|
+
|
2466
|
+
attr_accessor :JobId, :RequestId
|
2467
|
+
|
2468
|
+
def initialize(jobid=nil, requestid=nil)
|
2469
|
+
@JobId = jobid
|
2470
|
+
@RequestId = requestid
|
2471
|
+
end
|
2472
|
+
|
2473
|
+
def deserialize(params)
|
2474
|
+
@JobId = params['JobId']
|
2475
|
+
@RequestId = params['RequestId']
|
2476
|
+
end
|
2477
|
+
end
|
2478
|
+
|
2333
2479
|
# TextToImageLite请求参数结构体
|
2334
2480
|
class TextToImageLiteRequest < TencentCloud::Common::AbstractModel
|
2335
2481
|
# @param Prompt: 文本描述。
|
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.
|
4
|
+
version: 3.0.1039
|
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-04-
|
11
|
+
date: 2025-04-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|