tencentcloud-sdk-hunyuan 3.0.1094 → 3.0.1115
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 +0 -48
- data/lib/v20230901/models.rb +40 -160
- 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: 94e43b7cbce42f3c3a9625dfdbf2826cfcf5498a
|
4
|
+
data.tar.gz: 9121eb062400f65c7d9f313f266f78ead9f64e7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47f6131529d211c9ab7f1a5bb24ab1d3f5d6f94244494789bae8208f056b0cae758a20e58532923cb5ea22483009f148d4acfe083efe91c8afa3ed738bcee844
|
7
|
+
data.tar.gz: 42d0f5036e24797c5e72e730eb79fb8dc01fb2d50c72a71fbd8acef7362d04b24c591b851695e8bbcf2559fd93b33683d4bf3d19e4272c1e3d6a9a6adef1c9e4
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1115
|
data/lib/v20230901/client.rb
CHANGED
@@ -466,30 +466,6 @@ module TencentCloud
|
|
466
466
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
467
467
|
end
|
468
468
|
|
469
|
-
# 查询混元生3D任务
|
470
|
-
|
471
|
-
# @param request: Request instance for QueryHunyuanTo3DJob.
|
472
|
-
# @type request: :class:`Tencentcloud::hunyuan::V20230901::QueryHunyuanTo3DJobRequest`
|
473
|
-
# @rtype: :class:`Tencentcloud::hunyuan::V20230901::QueryHunyuanTo3DJobResponse`
|
474
|
-
def QueryHunyuanTo3DJob(request)
|
475
|
-
body = send_request('QueryHunyuanTo3DJob', request.serialize)
|
476
|
-
response = JSON.parse(body)
|
477
|
-
if response['Response'].key?('Error') == false
|
478
|
-
model = QueryHunyuanTo3DJobResponse.new
|
479
|
-
model.deserialize(response['Response'])
|
480
|
-
model
|
481
|
-
else
|
482
|
-
code = response['Response']['Error']['Code']
|
483
|
-
message = response['Response']['Error']['Message']
|
484
|
-
reqid = response['Response']['RequestId']
|
485
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
486
|
-
end
|
487
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
488
|
-
raise e
|
489
|
-
rescue StandardError => e
|
490
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
491
|
-
end
|
492
|
-
|
493
469
|
# 腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
|
494
470
|
|
495
471
|
# 1. 本接口暂不支持返回图片内容。
|
@@ -597,30 +573,6 @@ module TencentCloud
|
|
597
573
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
598
574
|
end
|
599
575
|
|
600
|
-
# 提交混元生3D任务
|
601
|
-
|
602
|
-
# @param request: Request instance for SubmitHunyuanTo3DJob.
|
603
|
-
# @type request: :class:`Tencentcloud::hunyuan::V20230901::SubmitHunyuanTo3DJobRequest`
|
604
|
-
# @rtype: :class:`Tencentcloud::hunyuan::V20230901::SubmitHunyuanTo3DJobResponse`
|
605
|
-
def SubmitHunyuanTo3DJob(request)
|
606
|
-
body = send_request('SubmitHunyuanTo3DJob', request.serialize)
|
607
|
-
response = JSON.parse(body)
|
608
|
-
if response['Response'].key?('Error') == false
|
609
|
-
model = SubmitHunyuanTo3DJobResponse.new
|
610
|
-
model.deserialize(response['Response'])
|
611
|
-
model
|
612
|
-
else
|
613
|
-
code = response['Response']['Error']['Code']
|
614
|
-
message = response['Response']['Error']['Message']
|
615
|
-
reqid = response['Response']['RequestId']
|
616
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
617
|
-
end
|
618
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
619
|
-
raise e
|
620
|
-
rescue StandardError => e
|
621
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
622
|
-
end
|
623
|
-
|
624
576
|
# 文生图轻量版接口根据输入的文本描述,智能生成与之相关的结果图。
|
625
577
|
# 文生图轻量版默认提供3个并发任务数,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
|
626
578
|
|
data/lib/v20230901/models.rb
CHANGED
@@ -319,8 +319,8 @@ module TencentCloud
|
|
319
319
|
|
320
320
|
attr_accessor :Created, :Usage, :Note, :Id, :Choices, :ErrorMsg, :ModerationLevel, :SearchInfo, :Replaces, :RecommendedQuestions, :Processes, :RequestId
|
321
321
|
extend Gem::Deprecate
|
322
|
-
deprecate :ModerationLevel, :none, 2025,
|
323
|
-
deprecate :ModerationLevel=, :none, 2025,
|
322
|
+
deprecate :ModerationLevel, :none, 2025, 8
|
323
|
+
deprecate :ModerationLevel=, :none, 2025, 8
|
324
324
|
|
325
325
|
def initialize(created=nil, usage=nil, note=nil, id=nil, choices=nil, errormsg=nil, moderationlevel=nil, searchinfo=nil, replaces=nil, recommendedquestions=nil, processes=nil, requestid=nil)
|
326
326
|
@Created = created
|
@@ -729,49 +729,6 @@ module TencentCloud
|
|
729
729
|
end
|
730
730
|
end
|
731
731
|
|
732
|
-
# 3D文件
|
733
|
-
class File3D < TencentCloud::Common::AbstractModel
|
734
|
-
# @param Type: 3D文件的格式。取值范围:GIF, OBJ
|
735
|
-
# @type Type: String
|
736
|
-
# @param Url: 文件的Url(有效期24小时)
|
737
|
-
# @type Url: String
|
738
|
-
|
739
|
-
attr_accessor :Type, :Url
|
740
|
-
|
741
|
-
def initialize(type=nil, url=nil)
|
742
|
-
@Type = type
|
743
|
-
@Url = url
|
744
|
-
end
|
745
|
-
|
746
|
-
def deserialize(params)
|
747
|
-
@Type = params['Type']
|
748
|
-
@Url = params['Url']
|
749
|
-
end
|
750
|
-
end
|
751
|
-
|
752
|
-
# 3D文件列表
|
753
|
-
class File3Ds < TencentCloud::Common::AbstractModel
|
754
|
-
# @param File3D: 3D文件列表
|
755
|
-
# @type File3D: Array
|
756
|
-
|
757
|
-
attr_accessor :File3D
|
758
|
-
|
759
|
-
def initialize(file3d=nil)
|
760
|
-
@File3D = file3d
|
761
|
-
end
|
762
|
-
|
763
|
-
def deserialize(params)
|
764
|
-
unless params['File3D'].nil?
|
765
|
-
@File3D = []
|
766
|
-
params['File3D'].each do |i|
|
767
|
-
file3d_tmp = File3D.new
|
768
|
-
file3d_tmp.deserialize(i)
|
769
|
-
@File3D << file3d_tmp
|
770
|
-
end
|
771
|
-
end
|
772
|
-
end
|
773
|
-
end
|
774
|
-
|
775
732
|
# 已上传的文件对象。
|
776
733
|
class FileObject < TencentCloud::Common::AbstractModel
|
777
734
|
# @param ID: 文件标识符,可在各个API中引用。
|
@@ -1068,10 +1025,10 @@ module TencentCloud
|
|
1068
1025
|
|
1069
1026
|
attr_accessor :Data, :FirstID, :LastID, :HasMore, :Object, :FirstMsgID, :LastMsgID, :RequestId
|
1070
1027
|
extend Gem::Deprecate
|
1071
|
-
deprecate :FirstID, :none, 2025,
|
1072
|
-
deprecate :FirstID=, :none, 2025,
|
1073
|
-
deprecate :LastID, :none, 2025,
|
1074
|
-
deprecate :LastID=, :none, 2025,
|
1028
|
+
deprecate :FirstID, :none, 2025, 8
|
1029
|
+
deprecate :FirstID=, :none, 2025, 8
|
1030
|
+
deprecate :LastID, :none, 2025, 8
|
1031
|
+
deprecate :LastID=, :none, 2025, 8
|
1075
1032
|
|
1076
1033
|
def initialize(data=nil, firstid=nil, lastid=nil, hasmore=nil, object=nil, firstmsgid=nil, lastmsgid=nil, requestid=nil)
|
1077
1034
|
@Data = data
|
@@ -1858,11 +1815,21 @@ module TencentCloud
|
|
1858
1815
|
# 说明:
|
1859
1816
|
# 1. type 为 image 时,地址为图片的预览地址;其他类型时,地址为封面图地址。
|
1860
1817
|
# @type Url: String
|
1818
|
+
# @param Width: 如果Url为图片地址,标识图片宽度。
|
1819
|
+
# @type Width: Integer
|
1820
|
+
# @param Height: 如果Url为图片地址,标识图片高度。
|
1821
|
+
# @type Height: Integer
|
1861
1822
|
# @param JumpUrl: 多媒体详情地址。
|
1862
1823
|
# 说明:
|
1863
1824
|
# 1. 仅 type 为 image 时,该字段有值。
|
1864
1825
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
1865
1826
|
# @type JumpUrl: String
|
1827
|
+
# @param ThumbURL: 缩略图地址。
|
1828
|
+
# @type ThumbURL: String
|
1829
|
+
# @param ThumbWidth: 缩略图宽度
|
1830
|
+
# @type ThumbWidth: Integer
|
1831
|
+
# @param ThumbHeight: 缩略图高度
|
1832
|
+
# @type ThumbHeight: Integer
|
1866
1833
|
# @param Title: 名称。
|
1867
1834
|
# 说明:
|
1868
1835
|
# 1. type 为 image 时,该字段为空。
|
@@ -1881,23 +1848,42 @@ module TencentCloud
|
|
1881
1848
|
# 1. 仅 type 为 music 时,该字段有值。
|
1882
1849
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
1883
1850
|
# @type Ext: :class:`Tencentcloud::Hunyuan.v20230901.models.SongExt`
|
1851
|
+
# @param PublishTime: 发布时间。
|
1852
|
+
# @type PublishTime: String
|
1853
|
+
# @param SiteName: 站点名称
|
1854
|
+
# @type SiteName: String
|
1855
|
+
# @param SiteIcon: 站点图标
|
1856
|
+
# @type SiteIcon: String
|
1884
1857
|
|
1885
|
-
attr_accessor :Type, :Url, :JumpUrl, :Title, :Desc, :Singer, :Ext
|
1858
|
+
attr_accessor :Type, :Url, :Width, :Height, :JumpUrl, :ThumbURL, :ThumbWidth, :ThumbHeight, :Title, :Desc, :Singer, :Ext, :PublishTime, :SiteName, :SiteIcon
|
1886
1859
|
|
1887
|
-
def initialize(type=nil, url=nil, jumpurl=nil, title=nil, desc=nil, singer=nil, ext=nil)
|
1860
|
+
def initialize(type=nil, url=nil, width=nil, height=nil, jumpurl=nil, thumburl=nil, thumbwidth=nil, thumbheight=nil, title=nil, desc=nil, singer=nil, ext=nil, publishtime=nil, sitename=nil, siteicon=nil)
|
1888
1861
|
@Type = type
|
1889
1862
|
@Url = url
|
1863
|
+
@Width = width
|
1864
|
+
@Height = height
|
1890
1865
|
@JumpUrl = jumpurl
|
1866
|
+
@ThumbURL = thumburl
|
1867
|
+
@ThumbWidth = thumbwidth
|
1868
|
+
@ThumbHeight = thumbheight
|
1891
1869
|
@Title = title
|
1892
1870
|
@Desc = desc
|
1893
1871
|
@Singer = singer
|
1894
1872
|
@Ext = ext
|
1873
|
+
@PublishTime = publishtime
|
1874
|
+
@SiteName = sitename
|
1875
|
+
@SiteIcon = siteicon
|
1895
1876
|
end
|
1896
1877
|
|
1897
1878
|
def deserialize(params)
|
1898
1879
|
@Type = params['Type']
|
1899
1880
|
@Url = params['Url']
|
1881
|
+
@Width = params['Width']
|
1882
|
+
@Height = params['Height']
|
1900
1883
|
@JumpUrl = params['JumpUrl']
|
1884
|
+
@ThumbURL = params['ThumbURL']
|
1885
|
+
@ThumbWidth = params['ThumbWidth']
|
1886
|
+
@ThumbHeight = params['ThumbHeight']
|
1901
1887
|
@Title = params['Title']
|
1902
1888
|
@Desc = params['Desc']
|
1903
1889
|
@Singer = params['Singer']
|
@@ -1905,6 +1891,9 @@ module TencentCloud
|
|
1905
1891
|
@Ext = SongExt.new
|
1906
1892
|
@Ext.deserialize(params['Ext'])
|
1907
1893
|
end
|
1894
|
+
@PublishTime = params['PublishTime']
|
1895
|
+
@SiteName = params['SiteName']
|
1896
|
+
@SiteIcon = params['SiteIcon']
|
1908
1897
|
end
|
1909
1898
|
end
|
1910
1899
|
|
@@ -2069,61 +2058,6 @@ module TencentCloud
|
|
2069
2058
|
end
|
2070
2059
|
end
|
2071
2060
|
|
2072
|
-
# QueryHunyuanTo3DJob请求参数结构体
|
2073
|
-
class QueryHunyuanTo3DJobRequest < TencentCloud::Common::AbstractModel
|
2074
|
-
# @param JobId: 任务ID
|
2075
|
-
# @type JobId: String
|
2076
|
-
|
2077
|
-
attr_accessor :JobId
|
2078
|
-
|
2079
|
-
def initialize(jobid=nil)
|
2080
|
-
@JobId = jobid
|
2081
|
-
end
|
2082
|
-
|
2083
|
-
def deserialize(params)
|
2084
|
-
@JobId = params['JobId']
|
2085
|
-
end
|
2086
|
-
end
|
2087
|
-
|
2088
|
-
# QueryHunyuanTo3DJob返回参数结构体
|
2089
|
-
class QueryHunyuanTo3DJobResponse < TencentCloud::Common::AbstractModel
|
2090
|
-
# @param Status: 任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
|
2091
|
-
# @type Status: String
|
2092
|
-
# @param ResultFile3Ds: 生成的3D文件数组
|
2093
|
-
# @type ResultFile3Ds: Array
|
2094
|
-
# @param ErrorCode: 错误码
|
2095
|
-
# @type ErrorCode: String
|
2096
|
-
# @param ErrorMessage: 错误信息
|
2097
|
-
# @type ErrorMessage: String
|
2098
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2099
|
-
# @type RequestId: String
|
2100
|
-
|
2101
|
-
attr_accessor :Status, :ResultFile3Ds, :ErrorCode, :ErrorMessage, :RequestId
|
2102
|
-
|
2103
|
-
def initialize(status=nil, resultfile3ds=nil, errorcode=nil, errormessage=nil, requestid=nil)
|
2104
|
-
@Status = status
|
2105
|
-
@ResultFile3Ds = resultfile3ds
|
2106
|
-
@ErrorCode = errorcode
|
2107
|
-
@ErrorMessage = errormessage
|
2108
|
-
@RequestId = requestid
|
2109
|
-
end
|
2110
|
-
|
2111
|
-
def deserialize(params)
|
2112
|
-
@Status = params['Status']
|
2113
|
-
unless params['ResultFile3Ds'].nil?
|
2114
|
-
@ResultFile3Ds = []
|
2115
|
-
params['ResultFile3Ds'].each do |i|
|
2116
|
-
file3ds_tmp = File3Ds.new
|
2117
|
-
file3ds_tmp.deserialize(i)
|
2118
|
-
@ResultFile3Ds << file3ds_tmp
|
2119
|
-
end
|
2120
|
-
end
|
2121
|
-
@ErrorCode = params['ErrorCode']
|
2122
|
-
@ErrorMessage = params['ErrorMessage']
|
2123
|
-
@RequestId = params['RequestId']
|
2124
|
-
end
|
2125
|
-
end
|
2126
|
-
|
2127
2061
|
# 翻译对话参考示例
|
2128
2062
|
class Reference < TencentCloud::Common::AbstractModel
|
2129
2063
|
# @param Type: 翻译文本类型,枚举"sentence"表示句子, "term"表示术语
|
@@ -2658,60 +2592,6 @@ module TencentCloud
|
|
2658
2592
|
end
|
2659
2593
|
end
|
2660
2594
|
|
2661
|
-
# SubmitHunyuanTo3DJob请求参数结构体
|
2662
|
-
class SubmitHunyuanTo3DJobRequest < TencentCloud::Common::AbstractModel
|
2663
|
-
# @param Prompt: 3D内容的描述,中文正向提示词。最多支持200个 utf-8 字符,ImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
|
2664
|
-
# @type Prompt: String
|
2665
|
-
# @param ImageBase64: 输入图 Base64 数据。
|
2666
|
-
# 大小:单边分辨率要求不小于50,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m)
|
2667
|
-
# 格式:jpg,png,jpeg,webp。
|
2668
|
-
# ImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
|
2669
|
-
# @type ImageBase64: String
|
2670
|
-
# @param ImageUrl: 输入图Url。
|
2671
|
-
# 大小:单边分辨率要求不小于50,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m)
|
2672
|
-
# 格式:jpg,png,jpeg,webp。
|
2673
|
-
# ImageBase64/ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
|
2674
|
-
# @type ImageUrl: String
|
2675
|
-
# @param Num: 生成数量。默认1,当前限制只能为1。
|
2676
|
-
# @type Num: Integer
|
2677
|
-
|
2678
|
-
attr_accessor :Prompt, :ImageBase64, :ImageUrl, :Num
|
2679
|
-
|
2680
|
-
def initialize(prompt=nil, imagebase64=nil, imageurl=nil, num=nil)
|
2681
|
-
@Prompt = prompt
|
2682
|
-
@ImageBase64 = imagebase64
|
2683
|
-
@ImageUrl = imageurl
|
2684
|
-
@Num = num
|
2685
|
-
end
|
2686
|
-
|
2687
|
-
def deserialize(params)
|
2688
|
-
@Prompt = params['Prompt']
|
2689
|
-
@ImageBase64 = params['ImageBase64']
|
2690
|
-
@ImageUrl = params['ImageUrl']
|
2691
|
-
@Num = params['Num']
|
2692
|
-
end
|
2693
|
-
end
|
2694
|
-
|
2695
|
-
# SubmitHunyuanTo3DJob返回参数结构体
|
2696
|
-
class SubmitHunyuanTo3DJobResponse < TencentCloud::Common::AbstractModel
|
2697
|
-
# @param JobId: 任务id(有效期24小时)
|
2698
|
-
# @type JobId: String
|
2699
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2700
|
-
# @type RequestId: String
|
2701
|
-
|
2702
|
-
attr_accessor :JobId, :RequestId
|
2703
|
-
|
2704
|
-
def initialize(jobid=nil, requestid=nil)
|
2705
|
-
@JobId = jobid
|
2706
|
-
@RequestId = requestid
|
2707
|
-
end
|
2708
|
-
|
2709
|
-
def deserialize(params)
|
2710
|
-
@JobId = params['JobId']
|
2711
|
-
@RequestId = params['RequestId']
|
2712
|
-
end
|
2713
|
-
end
|
2714
|
-
|
2715
2595
|
# TextToImageLite请求参数结构体
|
2716
2596
|
class TextToImageLiteRequest < TencentCloud::Common::AbstractModel
|
2717
2597
|
# @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.1115
|
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-
|
11
|
+
date: 2025-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|