tencentcloud-sdk-hunyuan 3.0.1180 → 3.0.1205

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0cbae0beb6acd4a347575ec5e20f50354afda9a9
4
- data.tar.gz: 71693614d07141bbd07277c0a78f4b9659031d37
3
+ metadata.gz: 1dafea296b7432fa9327cb98b3cfd98c5a548580
4
+ data.tar.gz: b7ec8ed703cb3c8f1d6df6370891d95ca1c3c9ff
5
5
  SHA512:
6
- metadata.gz: 57c3d51ca86a1e261db185df07b004b2c1137bbd2b05da379fcef37ba34d76a11acb1b29d5e024f4c8db387d94d10b624e954e05ac90c14d6af999c06a3d464f
7
- data.tar.gz: 715d50e267492b95a31902cb62e780e70bd8dc570b0c40e678c8ac5c0a97e9d01f78e99ff26abecf04e7fd71f95a0f6d7ee40188ab05deaca7036716c62b330a
6
+ metadata.gz: 624f1f4545c33c8cfc8578d8e5ccc850833cb81e33af8cc020fe82f0ea5c2785f30b2477975832b7cc0a29ec0c2fad28fbab7877f62a49b27b15580810f33740
7
+ data.tar.gz: 16d537a669887f99f716afb3a6383ddc80ca9bcea4bdf5acab7c1d3181eb0c895703e0014697ef9d6a225437c8a6f004caf4de4be2cb7cb9e93904e2e43ac785
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1180
1
+ 3.0.1205
@@ -142,6 +142,31 @@ module TencentCloud
142
142
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
143
143
  end
144
144
 
145
+ # 混元生3D接口,采用 Polygon 1.5模型,输入3D 高模后,可生成布线规整,较低面数的3D 模型。
146
+ # 默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
147
+
148
+ # @param request: Request instance for Describe3DSmartTopologyJob.
149
+ # @type request: :class:`Tencentcloud::hunyuan::V20230901::Describe3DSmartTopologyJobRequest`
150
+ # @rtype: :class:`Tencentcloud::hunyuan::V20230901::Describe3DSmartTopologyJobResponse`
151
+ def Describe3DSmartTopologyJob(request)
152
+ body = send_request('Describe3DSmartTopologyJob', request.serialize)
153
+ response = JSON.parse(body)
154
+ if response['Response'].key?('Error') == false
155
+ model = Describe3DSmartTopologyJobResponse.new
156
+ model.deserialize(response['Response'])
157
+ model
158
+ else
159
+ code = response['Response']['Error']['Code']
160
+ message = response['Response']['Error']['Message']
161
+ reqid = response['Response']['RequestId']
162
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
163
+ end
164
+ rescue TencentCloud::Common::TencentCloudSDKException => e
165
+ raise e
166
+ rescue StandardError => e
167
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
168
+ end
169
+
145
170
  # 删除文件。
146
171
 
147
172
  # @param request: Request instance for FilesDeletions.
@@ -519,6 +544,31 @@ module TencentCloud
519
544
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
520
545
  end
521
546
 
547
+ # 混元生3D接口,采用 Polygon 1.5模型,输入3D 高模后,可生成布线规整,较低面数的3D 模型。
548
+ # 默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
549
+
550
+ # @param request: Request instance for Submit3DSmartTopologyJob.
551
+ # @type request: :class:`Tencentcloud::hunyuan::V20230901::Submit3DSmartTopologyJobRequest`
552
+ # @rtype: :class:`Tencentcloud::hunyuan::V20230901::Submit3DSmartTopologyJobResponse`
553
+ def Submit3DSmartTopologyJob(request)
554
+ body = send_request('Submit3DSmartTopologyJob', request.serialize)
555
+ response = JSON.parse(body)
556
+ if response['Response'].key?('Error') == false
557
+ model = Submit3DSmartTopologyJobResponse.new
558
+ model.deserialize(response['Response'])
559
+ model
560
+ else
561
+ code = response['Response']['Error']['Code']
562
+ message = response['Response']['Error']['Message']
563
+ reqid = response['Response']['RequestId']
564
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
565
+ end
566
+ rescue TencentCloud::Common::TencentCloudSDKException => e
567
+ raise e
568
+ rescue StandardError => e
569
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
570
+ end
571
+
522
572
  # 混元生图(多轮对话)接口基于混元大模型,将根据输入的文本描述生成图像,支持通过多轮对话的方式不断调整图像内容。分为提交任务和查询任务2个接口。
523
573
  # 提交任务:输入文本和前置对话 ID 等,提交一个混元生图多轮对话异步任务,获得任务 ID。
524
574
  # 查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得在上一轮对话基础上继续生成的图像结果。
@@ -211,10 +211,10 @@ module TencentCloud
211
211
 
212
212
  attr_accessor :Model, :Messages, :Stream, :StreamModeration, :TopP, :Temperature, :EnableEnhancement, :Tools, :ToolChoice, :CustomTool, :SearchInfo, :Citation, :EnableSpeedSearch, :EnableMultimedia, :EnableDeepSearch, :Seed, :ForceSearchEnhancement, :Stop, :EnableRecommendedQuestions, :EnableDeepRead, :WebSearchOptions, :TopicChoice, :EnableThinking
213
213
  extend Gem::Deprecate
214
- deprecate :EnableDeepSearch, :none, 2025, 12
215
- deprecate :EnableDeepSearch=, :none, 2025, 12
216
- deprecate :EnableDeepRead, :none, 2025, 12
217
- deprecate :EnableDeepRead=, :none, 2025, 12
214
+ deprecate :EnableDeepSearch, :none, 2026, 1
215
+ deprecate :EnableDeepSearch=, :none, 2026, 1
216
+ deprecate :EnableDeepRead, :none, 2026, 1
217
+ deprecate :EnableDeepRead=, :none, 2026, 1
218
218
 
219
219
  def initialize(model=nil, messages=nil, stream=nil, streammoderation=nil, topp=nil, temperature=nil, enableenhancement=nil, tools=nil, toolchoice=nil, customtool=nil, searchinfo=nil, citation=nil, enablespeedsearch=nil, enablemultimedia=nil, enabledeepsearch=nil, seed=nil, forcesearchenhancement=nil, stop=nil, enablerecommendedquestions=nil, enabledeepread=nil, websearchoptions=nil, topicchoice=nil, enablethinking=nil)
220
220
  @Model = model
@@ -324,8 +324,8 @@ module TencentCloud
324
324
 
325
325
  attr_accessor :Created, :Usage, :Note, :Id, :Choices, :ErrorMsg, :ModerationLevel, :SearchInfo, :Replaces, :RecommendedQuestions, :Processes, :RequestId
326
326
  extend Gem::Deprecate
327
- deprecate :ModerationLevel, :none, 2025, 12
328
- deprecate :ModerationLevel=, :none, 2025, 12
327
+ deprecate :ModerationLevel, :none, 2026, 1
328
+ deprecate :ModerationLevel=, :none, 2026, 1
329
329
 
330
330
  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)
331
331
  @Created = created
@@ -551,25 +551,25 @@ module TencentCloud
551
551
  end
552
552
  end
553
553
 
554
- # 可以传入多种类型的内容,如图片、文本。
554
+ # 可以传入多种类型的内容,目前支持文本、图片、视频。
555
555
  class Content < TencentCloud::Common::AbstractModel
556
556
  # @param Type: 内容类型
557
557
  # 注意:
558
558
  # 需包含至少一个 Type 为"text"的参数。
559
- # 参数值可选范围:[text", "image_url","video_url"]
559
+ # 参数值可选范围:["text", "image_url","video_url","video_frames"]
560
560
  # 注意:此字段可能返回 null,表示取不到有效值。
561
561
  # @type Type: String
562
- # @param Text: 当 Type 为 text 时使用,表示具体的文本内容。当 Type 为 image_url 时,当前字段内容需保持为空,传递内容不生效。
562
+ # @param Text: 当 Type 为 text 时使用,表示具体的文本内容。当 Type 为 其他类型 时,当前字段内容需保持为空,传递内容不生效。
563
563
  # 注意:此字段可能返回 null,表示取不到有效值。
564
564
  # @type Text: String
565
565
  # @param ImageUrl: 图片的url,当 Type 为 image_url 时使用,表示具体的图片内容
566
- # 如"https://example.com/1.png" 或 图片的base64(注意 "data:image/jpeg;base64," 为必要部分):"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAA......"。当 Type 为 text 时,当前字段内容需保持为空,传递内容不生效。
566
+ # 如"https://example.com/1.png" 或 图片的base64(注意 "data:image/jpeg;base64," 为必要部分):"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAA......"。当 Type 为 其他类型 时,当前字段内容需保持为空,传递内容不生效。
567
567
  # 注意:此字段可能返回 null,表示取不到有效值。
568
568
  # @type ImageUrl: :class:`Tencentcloud::Hunyuan.v20230901.models.ImageUrl`
569
- # @param VideoUrl: 当type为video_url时使用,标识具体的视频链接内容
569
+ # @param VideoUrl: 当 Type video_url 时使用,标识具体的视频链接内容,如"https://your-video-path.mp4"。当 Type 为 其他类型 时,当前字段内容需保持为空,传递内容不生效。
570
570
  # 注意:此字段可能返回 null,表示取不到有效值。
571
571
  # @type VideoUrl: :class:`Tencentcloud::Hunyuan.v20230901.models.VideoUrl`
572
- # @param VideoFrames: 当type为video_frames时使用,标识具体的视频内图像帧内容
572
+ # @param VideoFrames: 当 Type video_frames 时使用,标识具体的视频内图像帧内容,当 Type 为 其他类型 时,当前字段内容需保持为空,传递内容不生效。
573
573
  # 注意:此字段可能返回 null,表示取不到有效值。
574
574
  # @type VideoFrames: :class:`Tencentcloud::Hunyuan.v20230901.models.VideoFrames`
575
575
 
@@ -687,6 +687,61 @@ module TencentCloud
687
687
  end
688
688
  end
689
689
 
690
+ # Describe3DSmartTopologyJob请求参数结构体
691
+ class Describe3DSmartTopologyJobRequest < TencentCloud::Common::AbstractModel
692
+ # @param JobId: 任务ID。
693
+ # @type JobId: String
694
+
695
+ attr_accessor :JobId
696
+
697
+ def initialize(jobid=nil)
698
+ @JobId = jobid
699
+ end
700
+
701
+ def deserialize(params)
702
+ @JobId = params['JobId']
703
+ end
704
+ end
705
+
706
+ # Describe3DSmartTopologyJob返回参数结构体
707
+ class Describe3DSmartTopologyJobResponse < TencentCloud::Common::AbstractModel
708
+ # @param Status: 任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功 示例值:RUN。
709
+ # @type Status: String
710
+ # @param ErrorCode: 错误码。
711
+ # @type ErrorCode: String
712
+ # @param ErrorMessage: 错误信息。
713
+ # @type ErrorMessage: String
714
+ # @param ResultFile3Ds: 生成文件的URL地址,有效期1天。
715
+ # @type ResultFile3Ds: Array
716
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
717
+ # @type RequestId: String
718
+
719
+ attr_accessor :Status, :ErrorCode, :ErrorMessage, :ResultFile3Ds, :RequestId
720
+
721
+ def initialize(status=nil, errorcode=nil, errormessage=nil, resultfile3ds=nil, requestid=nil)
722
+ @Status = status
723
+ @ErrorCode = errorcode
724
+ @ErrorMessage = errormessage
725
+ @ResultFile3Ds = resultfile3ds
726
+ @RequestId = requestid
727
+ end
728
+
729
+ def deserialize(params)
730
+ @Status = params['Status']
731
+ @ErrorCode = params['ErrorCode']
732
+ @ErrorMessage = params['ErrorMessage']
733
+ unless params['ResultFile3Ds'].nil?
734
+ @ResultFile3Ds = []
735
+ params['ResultFile3Ds'].each do |i|
736
+ file3d_tmp = File3D.new
737
+ file3d_tmp.deserialize(i)
738
+ @ResultFile3Ds << file3d_tmp
739
+ end
740
+ end
741
+ @RequestId = params['RequestId']
742
+ end
743
+ end
744
+
690
745
  # Embedding 信息。
691
746
  class EmbeddingData < TencentCloud::Common::AbstractModel
692
747
  # @param Embedding: Embedding 信息,目前为 1024 维浮点数。
@@ -756,6 +811,30 @@ module TencentCloud
756
811
  end
757
812
  end
758
813
 
814
+ # 3D文件
815
+ class File3D < TencentCloud::Common::AbstractModel
816
+ # @param Type: 3D文件的格式。取值范围:GIF, OBJ
817
+ # @type Type: String
818
+ # @param Url: 文件的Url(有效期24小时)
819
+ # @type Url: String
820
+ # @param PreviewImageUrl: 预览图片Url
821
+ # @type PreviewImageUrl: String
822
+
823
+ attr_accessor :Type, :Url, :PreviewImageUrl
824
+
825
+ def initialize(type=nil, url=nil, previewimageurl=nil)
826
+ @Type = type
827
+ @Url = url
828
+ @PreviewImageUrl = previewimageurl
829
+ end
830
+
831
+ def deserialize(params)
832
+ @Type = params['Type']
833
+ @Url = params['Url']
834
+ @PreviewImageUrl = params['PreviewImageUrl']
835
+ end
836
+ end
837
+
759
838
  # 已上传的文件对象。
760
839
  class FileObject < TencentCloud::Common::AbstractModel
761
840
  # @param ID: 文件标识符,可在各个API中引用。
@@ -1052,10 +1131,10 @@ module TencentCloud
1052
1131
 
1053
1132
  attr_accessor :Data, :FirstID, :LastID, :HasMore, :Object, :FirstMsgID, :LastMsgID, :RequestId
1054
1133
  extend Gem::Deprecate
1055
- deprecate :FirstID, :none, 2025, 12
1056
- deprecate :FirstID=, :none, 2025, 12
1057
- deprecate :LastID, :none, 2025, 12
1058
- deprecate :LastID=, :none, 2025, 12
1134
+ deprecate :FirstID, :none, 2026, 1
1135
+ deprecate :FirstID=, :none, 2026, 1
1136
+ deprecate :LastID, :none, 2026, 1
1137
+ deprecate :LastID=, :none, 2026, 1
1059
1138
 
1060
1139
  def initialize(data=nil, firstid=nil, lastid=nil, hasmore=nil, object=nil, firstmsgid=nil, lastmsgid=nil, requestid=nil)
1061
1140
  @Data = data
@@ -1680,6 +1759,26 @@ module TencentCloud
1680
1759
  end
1681
1760
  end
1682
1761
 
1762
+ # 3D文件
1763
+ class InputFile3D < TencentCloud::Common::AbstractModel
1764
+ # @param Url: 文件的Url(有效期24小时)
1765
+ # @type Url: String
1766
+ # @param Type: 文件格式
1767
+ # @type Type: String
1768
+
1769
+ attr_accessor :Url, :Type
1770
+
1771
+ def initialize(url=nil, type=nil)
1772
+ @Url = url
1773
+ @Type = type
1774
+ end
1775
+
1776
+ def deserialize(params)
1777
+ @Url = params['Url']
1778
+ @Type = params['Type']
1779
+ end
1780
+ end
1781
+
1683
1782
  # 外部知识
1684
1783
  class Knowledge < TencentCloud::Common::AbstractModel
1685
1784
  # @param Text: 表示具体的知识信息文本
@@ -1757,7 +1856,7 @@ module TencentCloud
1757
1856
  # @type Role: String
1758
1857
  # @param Content: 文本内容
1759
1858
  # @type Content: String
1760
- # @param Contents: 多种类型内容(目前支持图片和文本),仅 hunyuan-vision 和 hunyuan-turbo-vision 模型支持
1859
+ # @param Contents: 多种类型内容(目前支持文本、图片和视频),图片支持混元图生文系列模型,视频支持混元视频生文系列模型,详情参考[产品概述](https://cloud.tencent.com/document/product/1729/104753)
1761
1860
  # 注意:此字段可能返回 null,表示取不到有效值。
1762
1861
  # @type Contents: Array
1763
1862
  # @param ToolCallId: 当role为tool时传入,标识具体的函数调用
@@ -2466,6 +2565,58 @@ module TencentCloud
2466
2565
  end
2467
2566
  end
2468
2567
 
2568
+ # Submit3DSmartTopologyJob请求参数结构体
2569
+ class Submit3DSmartTopologyJobRequest < TencentCloud::Common::AbstractModel
2570
+ # @param File3D: 源3D文件模型链接,参考值:
2571
+ # Type:glb,obj格式文件必选其一。
2572
+ # Url:文件大小不超过200MB。
2573
+ # 3D模型要求:复杂模型和拓扑过的模型暂无法支持减面操作,建议输入未拓扑过的高模,比如混元3D生成的模型,适用度比较高的类别:硬表面、游戏角色、道具、日常生活用品等。
2574
+ # @type File3D: :class:`Tencentcloud::Hunyuan.v20230901.models.InputFile3D`
2575
+ # @param PolygonType: 多边形类型,表示模型的表面由几边形网格构成,默认为triangle,参考值:
2576
+ # triangle:三角形面。
2577
+ # quadrilateral:四边形面。
2578
+ # @type PolygonType: String
2579
+ # @param FaceLevel: 减面后面数档位类型,可选值:high,medium, low。
2580
+ # @type FaceLevel: String
2581
+
2582
+ attr_accessor :File3D, :PolygonType, :FaceLevel
2583
+
2584
+ def initialize(file3d=nil, polygontype=nil, facelevel=nil)
2585
+ @File3D = file3d
2586
+ @PolygonType = polygontype
2587
+ @FaceLevel = facelevel
2588
+ end
2589
+
2590
+ def deserialize(params)
2591
+ unless params['File3D'].nil?
2592
+ @File3D = InputFile3D.new
2593
+ @File3D.deserialize(params['File3D'])
2594
+ end
2595
+ @PolygonType = params['PolygonType']
2596
+ @FaceLevel = params['FaceLevel']
2597
+ end
2598
+ end
2599
+
2600
+ # Submit3DSmartTopologyJob返回参数结构体
2601
+ class Submit3DSmartTopologyJobResponse < TencentCloud::Common::AbstractModel
2602
+ # @param JobId: 任务ID。
2603
+ # @type JobId: String
2604
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2605
+ # @type RequestId: String
2606
+
2607
+ attr_accessor :JobId, :RequestId
2608
+
2609
+ def initialize(jobid=nil, requestid=nil)
2610
+ @JobId = jobid
2611
+ @RequestId = requestid
2612
+ end
2613
+
2614
+ def deserialize(params)
2615
+ @JobId = params['JobId']
2616
+ @RequestId = params['RequestId']
2617
+ end
2618
+ end
2619
+
2469
2620
  # SubmitHunyuanImageChatJob请求参数结构体
2470
2621
  class SubmitHunyuanImageChatJobRequest < TencentCloud::Common::AbstractModel
2471
2622
  # @param Prompt: 本轮对话的文本描述。
@@ -3133,7 +3284,7 @@ module TencentCloud
3133
3284
 
3134
3285
  # 当type为video_frames时使用,标识具体的视频内图像帧内容
3135
3286
  class VideoFrames < TencentCloud::Common::AbstractModel
3136
- # @param Frames: 视频图像帧列表,图像帧传url
3287
+ # @param Frames: 视频图像帧列表,图像帧传url,最大支持传入数量为512帧
3137
3288
  # @type Frames: Array
3138
3289
 
3139
3290
  attr_accessor :Frames
@@ -3149,7 +3300,7 @@ module TencentCloud
3149
3300
 
3150
3301
  # 当type为video_url时使用,标识具体的视频链接内容
3151
3302
  class VideoUrl < TencentCloud::Common::AbstractModel
3152
- # @param Url: 视频的url,如"https://your-video-path.mp/4"
3303
+ # @param Url: 视频的url,如"https://your-video-path.mp4",视频文件大小不超过100M。
3153
3304
  # @type Url: String
3154
3305
  # @param Fps: 控制视频抽帧频率,取值范围为 0.1 ~5,表示每隔 1/fps 秒抽取一帧,默认为 1s抽取一帧
3155
3306
  # @type Fps: Float
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.1180
4
+ version: 3.0.1205
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-12-09 00:00:00.000000000 Z
11
+ date: 2026-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -33,9 +33,9 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
- - lib/tencentcloud-sdk-hunyuan.rb
37
- - lib/v20230901/models.rb
38
36
  - lib/v20230901/client.rb
37
+ - lib/v20230901/models.rb
38
+ - lib/tencentcloud-sdk-hunyuan.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
41
  licenses: