tencentcloud-sdk-hunyuan 3.0.1105 → 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 +6 -158
- 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
|
@@ -2101,61 +2058,6 @@ module TencentCloud
|
|
2101
2058
|
end
|
2102
2059
|
end
|
2103
2060
|
|
2104
|
-
# QueryHunyuanTo3DJob请求参数结构体
|
2105
|
-
class QueryHunyuanTo3DJobRequest < TencentCloud::Common::AbstractModel
|
2106
|
-
# @param JobId: 任务ID
|
2107
|
-
# @type JobId: String
|
2108
|
-
|
2109
|
-
attr_accessor :JobId
|
2110
|
-
|
2111
|
-
def initialize(jobid=nil)
|
2112
|
-
@JobId = jobid
|
2113
|
-
end
|
2114
|
-
|
2115
|
-
def deserialize(params)
|
2116
|
-
@JobId = params['JobId']
|
2117
|
-
end
|
2118
|
-
end
|
2119
|
-
|
2120
|
-
# QueryHunyuanTo3DJob返回参数结构体
|
2121
|
-
class QueryHunyuanTo3DJobResponse < TencentCloud::Common::AbstractModel
|
2122
|
-
# @param Status: 任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
|
2123
|
-
# @type Status: String
|
2124
|
-
# @param ResultFile3Ds: 生成的3D文件数组
|
2125
|
-
# @type ResultFile3Ds: Array
|
2126
|
-
# @param ErrorCode: 错误码
|
2127
|
-
# @type ErrorCode: String
|
2128
|
-
# @param ErrorMessage: 错误信息
|
2129
|
-
# @type ErrorMessage: String
|
2130
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2131
|
-
# @type RequestId: String
|
2132
|
-
|
2133
|
-
attr_accessor :Status, :ResultFile3Ds, :ErrorCode, :ErrorMessage, :RequestId
|
2134
|
-
|
2135
|
-
def initialize(status=nil, resultfile3ds=nil, errorcode=nil, errormessage=nil, requestid=nil)
|
2136
|
-
@Status = status
|
2137
|
-
@ResultFile3Ds = resultfile3ds
|
2138
|
-
@ErrorCode = errorcode
|
2139
|
-
@ErrorMessage = errormessage
|
2140
|
-
@RequestId = requestid
|
2141
|
-
end
|
2142
|
-
|
2143
|
-
def deserialize(params)
|
2144
|
-
@Status = params['Status']
|
2145
|
-
unless params['ResultFile3Ds'].nil?
|
2146
|
-
@ResultFile3Ds = []
|
2147
|
-
params['ResultFile3Ds'].each do |i|
|
2148
|
-
file3ds_tmp = File3Ds.new
|
2149
|
-
file3ds_tmp.deserialize(i)
|
2150
|
-
@ResultFile3Ds << file3ds_tmp
|
2151
|
-
end
|
2152
|
-
end
|
2153
|
-
@ErrorCode = params['ErrorCode']
|
2154
|
-
@ErrorMessage = params['ErrorMessage']
|
2155
|
-
@RequestId = params['RequestId']
|
2156
|
-
end
|
2157
|
-
end
|
2158
|
-
|
2159
2061
|
# 翻译对话参考示例
|
2160
2062
|
class Reference < TencentCloud::Common::AbstractModel
|
2161
2063
|
# @param Type: 翻译文本类型,枚举"sentence"表示句子, "term"表示术语
|
@@ -2690,60 +2592,6 @@ module TencentCloud
|
|
2690
2592
|
end
|
2691
2593
|
end
|
2692
2594
|
|
2693
|
-
# SubmitHunyuanTo3DJob请求参数结构体
|
2694
|
-
class SubmitHunyuanTo3DJobRequest < TencentCloud::Common::AbstractModel
|
2695
|
-
# @param Prompt: 3D内容的描述,中文正向提示词。最多支持200个 utf-8 字符,ImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
|
2696
|
-
# @type Prompt: String
|
2697
|
-
# @param ImageBase64: 输入图 Base64 数据。
|
2698
|
-
# 大小:单边分辨率要求不小于50,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m)
|
2699
|
-
# 格式:jpg,png,jpeg,webp。
|
2700
|
-
# ImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
|
2701
|
-
# @type ImageBase64: String
|
2702
|
-
# @param ImageUrl: 输入图Url。
|
2703
|
-
# 大小:单边分辨率要求不小于50,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m)
|
2704
|
-
# 格式:jpg,png,jpeg,webp。
|
2705
|
-
# ImageBase64/ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
|
2706
|
-
# @type ImageUrl: String
|
2707
|
-
# @param Num: 生成数量。默认1,当前限制只能为1。
|
2708
|
-
# @type Num: Integer
|
2709
|
-
|
2710
|
-
attr_accessor :Prompt, :ImageBase64, :ImageUrl, :Num
|
2711
|
-
|
2712
|
-
def initialize(prompt=nil, imagebase64=nil, imageurl=nil, num=nil)
|
2713
|
-
@Prompt = prompt
|
2714
|
-
@ImageBase64 = imagebase64
|
2715
|
-
@ImageUrl = imageurl
|
2716
|
-
@Num = num
|
2717
|
-
end
|
2718
|
-
|
2719
|
-
def deserialize(params)
|
2720
|
-
@Prompt = params['Prompt']
|
2721
|
-
@ImageBase64 = params['ImageBase64']
|
2722
|
-
@ImageUrl = params['ImageUrl']
|
2723
|
-
@Num = params['Num']
|
2724
|
-
end
|
2725
|
-
end
|
2726
|
-
|
2727
|
-
# SubmitHunyuanTo3DJob返回参数结构体
|
2728
|
-
class SubmitHunyuanTo3DJobResponse < TencentCloud::Common::AbstractModel
|
2729
|
-
# @param JobId: 任务id(有效期24小时)
|
2730
|
-
# @type JobId: String
|
2731
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2732
|
-
# @type RequestId: String
|
2733
|
-
|
2734
|
-
attr_accessor :JobId, :RequestId
|
2735
|
-
|
2736
|
-
def initialize(jobid=nil, requestid=nil)
|
2737
|
-
@JobId = jobid
|
2738
|
-
@RequestId = requestid
|
2739
|
-
end
|
2740
|
-
|
2741
|
-
def deserialize(params)
|
2742
|
-
@JobId = params['JobId']
|
2743
|
-
@RequestId = params['RequestId']
|
2744
|
-
end
|
2745
|
-
end
|
2746
|
-
|
2747
2595
|
# TextToImageLite请求参数结构体
|
2748
2596
|
class TextToImageLiteRequest < TencentCloud::Common::AbstractModel
|
2749
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
|