tencentcloud-sdk-hunyuan 3.0.1168 → 3.0.1183
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 +45 -17
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a1608f36033d769a464b57705d9641f610efabc0
|
|
4
|
+
data.tar.gz: 328b35c8b6f349e8cb01f31fc565b6331af71347
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 51ccc9763f31b0a1630d66920c747dda96a7644a93849b3d4e0794d908156189bd58a4e4332962c388b2a65131523b11a1d796fa288cd78828ae59e2621f8d7c
|
|
7
|
+
data.tar.gz: 1654a1b867bcfb8c2d8f54d581c33f4e590caf0a6095b1422413c93daf0f3fb5271ee527c7dc78ba0a99aedb2005d94b204ab7ab3f87f0d0a61181ba36ae1783
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1183
|
data/lib/v20230901/models.rb
CHANGED
|
@@ -210,6 +210,11 @@ module TencentCloud
|
|
|
210
210
|
# @type EnableThinking: Boolean
|
|
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
|
+
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
|
|
213
218
|
|
|
214
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)
|
|
215
220
|
@Model = model
|
|
@@ -319,8 +324,8 @@ module TencentCloud
|
|
|
319
324
|
|
|
320
325
|
attr_accessor :Created, :Usage, :Note, :Id, :Choices, :ErrorMsg, :ModerationLevel, :SearchInfo, :Replaces, :RecommendedQuestions, :Processes, :RequestId
|
|
321
326
|
extend Gem::Deprecate
|
|
322
|
-
deprecate :ModerationLevel, :none, 2025,
|
|
323
|
-
deprecate :ModerationLevel=, :none, 2025,
|
|
327
|
+
deprecate :ModerationLevel, :none, 2025, 12
|
|
328
|
+
deprecate :ModerationLevel=, :none, 2025, 12
|
|
324
329
|
|
|
325
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)
|
|
326
331
|
@Created = created
|
|
@@ -546,25 +551,25 @@ module TencentCloud
|
|
|
546
551
|
end
|
|
547
552
|
end
|
|
548
553
|
|
|
549
|
-
#
|
|
554
|
+
# 可以传入多种类型的内容,目前支持文本、图片、视频。
|
|
550
555
|
class Content < TencentCloud::Common::AbstractModel
|
|
551
556
|
# @param Type: 内容类型
|
|
552
557
|
# 注意:
|
|
553
558
|
# 需包含至少一个 Type 为"text"的参数。
|
|
554
|
-
# 参数值可选范围:[text", "image_url","video_url"]
|
|
559
|
+
# 参数值可选范围:["text", "image_url","video_url","video_frames"]
|
|
555
560
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
556
561
|
# @type Type: String
|
|
557
|
-
# @param Text: 当 Type 为 text 时使用,表示具体的文本内容。当 Type 为
|
|
562
|
+
# @param Text: 当 Type 为 text 时使用,表示具体的文本内容。当 Type 为 其他类型 时,当前字段内容需保持为空,传递内容不生效。
|
|
558
563
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
559
564
|
# @type Text: String
|
|
560
565
|
# @param ImageUrl: 图片的url,当 Type 为 image_url 时使用,表示具体的图片内容
|
|
561
|
-
# 如"https://example.com/1.png" 或 图片的base64(注意 "data:image/jpeg;base64," 为必要部分):"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAA......"。当 Type 为
|
|
566
|
+
# 如"https://example.com/1.png" 或 图片的base64(注意 "data:image/jpeg;base64," 为必要部分):"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAA......"。当 Type 为 其他类型 时,当前字段内容需保持为空,传递内容不生效。
|
|
562
567
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
563
568
|
# @type ImageUrl: :class:`Tencentcloud::Hunyuan.v20230901.models.ImageUrl`
|
|
564
|
-
# @param VideoUrl: 当
|
|
569
|
+
# @param VideoUrl: 当 Type 为 video_url 时使用,标识具体的视频链接内容,如"https://your-video-path.mp4"。当 Type 为 其他类型 时,当前字段内容需保持为空,传递内容不生效。
|
|
565
570
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
566
571
|
# @type VideoUrl: :class:`Tencentcloud::Hunyuan.v20230901.models.VideoUrl`
|
|
567
|
-
# @param VideoFrames: 当
|
|
572
|
+
# @param VideoFrames: 当 Type 为 video_frames 时使用,标识具体的视频内图像帧内容,当 Type 为 其他类型 时,当前字段内容需保持为空,传递内容不生效。
|
|
568
573
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
569
574
|
# @type VideoFrames: :class:`Tencentcloud::Hunyuan.v20230901.models.VideoFrames`
|
|
570
575
|
|
|
@@ -1047,10 +1052,10 @@ module TencentCloud
|
|
|
1047
1052
|
|
|
1048
1053
|
attr_accessor :Data, :FirstID, :LastID, :HasMore, :Object, :FirstMsgID, :LastMsgID, :RequestId
|
|
1049
1054
|
extend Gem::Deprecate
|
|
1050
|
-
deprecate :FirstID, :none, 2025,
|
|
1051
|
-
deprecate :FirstID=, :none, 2025,
|
|
1052
|
-
deprecate :LastID, :none, 2025,
|
|
1053
|
-
deprecate :LastID=, :none, 2025,
|
|
1055
|
+
deprecate :FirstID, :none, 2025, 12
|
|
1056
|
+
deprecate :FirstID=, :none, 2025, 12
|
|
1057
|
+
deprecate :LastID, :none, 2025, 12
|
|
1058
|
+
deprecate :LastID=, :none, 2025, 12
|
|
1054
1059
|
|
|
1055
1060
|
def initialize(data=nil, firstid=nil, lastid=nil, hasmore=nil, object=nil, firstmsgid=nil, lastmsgid=nil, requestid=nil)
|
|
1056
1061
|
@Data = data
|
|
@@ -1752,7 +1757,7 @@ module TencentCloud
|
|
|
1752
1757
|
# @type Role: String
|
|
1753
1758
|
# @param Content: 文本内容
|
|
1754
1759
|
# @type Content: String
|
|
1755
|
-
# @param Contents:
|
|
1760
|
+
# @param Contents: 多种类型内容(目前支持文本、图片和视频),图片支持混元图生文系列模型,视频支持混元视频生文系列模型,详情参考[产品概述](https://cloud.tencent.com/document/product/1729/104753)
|
|
1756
1761
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
1757
1762
|
# @type Contents: Array
|
|
1758
1763
|
# @param ToolCallId: 当role为tool时传入,标识具体的函数调用
|
|
@@ -1945,6 +1950,22 @@ module TencentCloud
|
|
|
1945
1950
|
end
|
|
1946
1951
|
end
|
|
1947
1952
|
|
|
1953
|
+
# 输入token的详细信息。
|
|
1954
|
+
class PromptTokensDetails < TencentCloud::Common::AbstractModel
|
|
1955
|
+
# @param CachedTokens: 缓存 token 的数量。
|
|
1956
|
+
# @type CachedTokens: String
|
|
1957
|
+
|
|
1958
|
+
attr_accessor :CachedTokens
|
|
1959
|
+
|
|
1960
|
+
def initialize(cachedtokens=nil)
|
|
1961
|
+
@CachedTokens = cachedtokens
|
|
1962
|
+
end
|
|
1963
|
+
|
|
1964
|
+
def deserialize(params)
|
|
1965
|
+
@CachedTokens = params['CachedTokens']
|
|
1966
|
+
end
|
|
1967
|
+
end
|
|
1968
|
+
|
|
1948
1969
|
# QueryHunyuanImageChatJob请求参数结构体
|
|
1949
1970
|
class QueryHunyuanImageChatJobRequest < TencentCloud::Common::AbstractModel
|
|
1950
1971
|
# @param JobId: 任务 ID。
|
|
@@ -3064,19 +3085,26 @@ module TencentCloud
|
|
|
3064
3085
|
# @type CompletionTokens: Integer
|
|
3065
3086
|
# @param TotalTokens: 总 Token 数量。
|
|
3066
3087
|
# @type TotalTokens: Integer
|
|
3088
|
+
# @param PromptTokensDetails: 输入 token 的详情。
|
|
3089
|
+
# @type PromptTokensDetails: :class:`Tencentcloud::Hunyuan.v20230901.models.PromptTokensDetails`
|
|
3067
3090
|
|
|
3068
|
-
attr_accessor :PromptTokens, :CompletionTokens, :TotalTokens
|
|
3091
|
+
attr_accessor :PromptTokens, :CompletionTokens, :TotalTokens, :PromptTokensDetails
|
|
3069
3092
|
|
|
3070
|
-
def initialize(prompttokens=nil, completiontokens=nil, totaltokens=nil)
|
|
3093
|
+
def initialize(prompttokens=nil, completiontokens=nil, totaltokens=nil, prompttokensdetails=nil)
|
|
3071
3094
|
@PromptTokens = prompttokens
|
|
3072
3095
|
@CompletionTokens = completiontokens
|
|
3073
3096
|
@TotalTokens = totaltokens
|
|
3097
|
+
@PromptTokensDetails = prompttokensdetails
|
|
3074
3098
|
end
|
|
3075
3099
|
|
|
3076
3100
|
def deserialize(params)
|
|
3077
3101
|
@PromptTokens = params['PromptTokens']
|
|
3078
3102
|
@CompletionTokens = params['CompletionTokens']
|
|
3079
3103
|
@TotalTokens = params['TotalTokens']
|
|
3104
|
+
unless params['PromptTokensDetails'].nil?
|
|
3105
|
+
@PromptTokensDetails = PromptTokensDetails.new
|
|
3106
|
+
@PromptTokensDetails.deserialize(params['PromptTokensDetails'])
|
|
3107
|
+
end
|
|
3080
3108
|
end
|
|
3081
3109
|
end
|
|
3082
3110
|
|
|
@@ -3105,7 +3133,7 @@ module TencentCloud
|
|
|
3105
3133
|
|
|
3106
3134
|
# 当type为video_frames时使用,标识具体的视频内图像帧内容
|
|
3107
3135
|
class VideoFrames < TencentCloud::Common::AbstractModel
|
|
3108
|
-
# @param Frames: 视频图像帧列表,图像帧传url
|
|
3136
|
+
# @param Frames: 视频图像帧列表,图像帧传url,最大支持传入数量为512帧
|
|
3109
3137
|
# @type Frames: Array
|
|
3110
3138
|
|
|
3111
3139
|
attr_accessor :Frames
|
|
@@ -3121,7 +3149,7 @@ module TencentCloud
|
|
|
3121
3149
|
|
|
3122
3150
|
# 当type为video_url时使用,标识具体的视频链接内容
|
|
3123
3151
|
class VideoUrl < TencentCloud::Common::AbstractModel
|
|
3124
|
-
# @param Url: 视频的url,如"https://your-video-path.
|
|
3152
|
+
# @param Url: 视频的url,如"https://your-video-path.mp4",视频文件大小不超过100M。
|
|
3125
3153
|
# @type Url: String
|
|
3126
3154
|
# @param Fps: 控制视频抽帧频率,取值范围为 0.1 ~5,表示每隔 1/fps 秒抽取一帧,默认为 1s抽取一帧
|
|
3127
3155
|
# @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.
|
|
4
|
+
version: 3.0.1183
|
|
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-12-17 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/v20230901/client.rb
|
|
37
|
-
- lib/v20230901/models.rb
|
|
38
36
|
- lib/tencentcloud-sdk-hunyuan.rb
|
|
37
|
+
- lib/v20230901/models.rb
|
|
38
|
+
- lib/v20230901/client.rb
|
|
39
39
|
- lib/VERSION
|
|
40
40
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
|
41
41
|
licenses:
|