tencentcloud-sdk-hunyuan 3.0.1161 → 3.0.1180
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 +91 -11
- 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: 0cbae0beb6acd4a347575ec5e20f50354afda9a9
|
|
4
|
+
data.tar.gz: 71693614d07141bbd07277c0a78f4b9659031d37
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 57c3d51ca86a1e261db185df07b004b2c1137bbd2b05da379fcef37ba34d76a11acb1b29d5e024f4c8db387d94d10b624e954e05ac90c14d6af999c06a3d464f
|
|
7
|
+
data.tar.gz: 715d50e267492b95a31902cb62e780e70bd8dc570b0c40e678c8ac5c0a97e9d01f78e99ff26abecf04e7fd71f95a0f6d7ee40188ab05deaca7036716c62b330a
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1180
|
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
|
|
@@ -551,7 +556,7 @@ module TencentCloud
|
|
|
551
556
|
# @param Type: 内容类型
|
|
552
557
|
# 注意:
|
|
553
558
|
# 需包含至少一个 Type 为"text"的参数。
|
|
554
|
-
# 参数值可选范围:[text", "image_url"]
|
|
559
|
+
# 参数值可选范围:[text", "image_url","video_url"]
|
|
555
560
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
556
561
|
# @type Type: String
|
|
557
562
|
# @param Text: 当 Type 为 text 时使用,表示具体的文本内容。当 Type 为 image_url 时,当前字段内容需保持为空,传递内容不生效。
|
|
@@ -561,13 +566,21 @@ module TencentCloud
|
|
|
561
566
|
# 如"https://example.com/1.png" 或 图片的base64(注意 "data:image/jpeg;base64," 为必要部分):"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAA......"。当 Type 为 text 时,当前字段内容需保持为空,传递内容不生效。
|
|
562
567
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
563
568
|
# @type ImageUrl: :class:`Tencentcloud::Hunyuan.v20230901.models.ImageUrl`
|
|
569
|
+
# @param VideoUrl: 当type为video_url时使用,标识具体的视频链接内容
|
|
570
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
571
|
+
# @type VideoUrl: :class:`Tencentcloud::Hunyuan.v20230901.models.VideoUrl`
|
|
572
|
+
# @param VideoFrames: 当type为video_frames时使用,标识具体的视频内图像帧内容
|
|
573
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
574
|
+
# @type VideoFrames: :class:`Tencentcloud::Hunyuan.v20230901.models.VideoFrames`
|
|
564
575
|
|
|
565
|
-
attr_accessor :Type, :Text, :ImageUrl
|
|
576
|
+
attr_accessor :Type, :Text, :ImageUrl, :VideoUrl, :VideoFrames
|
|
566
577
|
|
|
567
|
-
def initialize(type=nil, text=nil, imageurl=nil)
|
|
578
|
+
def initialize(type=nil, text=nil, imageurl=nil, videourl=nil, videoframes=nil)
|
|
568
579
|
@Type = type
|
|
569
580
|
@Text = text
|
|
570
581
|
@ImageUrl = imageurl
|
|
582
|
+
@VideoUrl = videourl
|
|
583
|
+
@VideoFrames = videoframes
|
|
571
584
|
end
|
|
572
585
|
|
|
573
586
|
def deserialize(params)
|
|
@@ -577,6 +590,14 @@ module TencentCloud
|
|
|
577
590
|
@ImageUrl = ImageUrl.new
|
|
578
591
|
@ImageUrl.deserialize(params['ImageUrl'])
|
|
579
592
|
end
|
|
593
|
+
unless params['VideoUrl'].nil?
|
|
594
|
+
@VideoUrl = VideoUrl.new
|
|
595
|
+
@VideoUrl.deserialize(params['VideoUrl'])
|
|
596
|
+
end
|
|
597
|
+
unless params['VideoFrames'].nil?
|
|
598
|
+
@VideoFrames = VideoFrames.new
|
|
599
|
+
@VideoFrames.deserialize(params['VideoFrames'])
|
|
600
|
+
end
|
|
580
601
|
end
|
|
581
602
|
end
|
|
582
603
|
|
|
@@ -1031,10 +1052,10 @@ module TencentCloud
|
|
|
1031
1052
|
|
|
1032
1053
|
attr_accessor :Data, :FirstID, :LastID, :HasMore, :Object, :FirstMsgID, :LastMsgID, :RequestId
|
|
1033
1054
|
extend Gem::Deprecate
|
|
1034
|
-
deprecate :FirstID, :none, 2025,
|
|
1035
|
-
deprecate :FirstID=, :none, 2025,
|
|
1036
|
-
deprecate :LastID, :none, 2025,
|
|
1037
|
-
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
|
|
1038
1059
|
|
|
1039
1060
|
def initialize(data=nil, firstid=nil, lastid=nil, hasmore=nil, object=nil, firstmsgid=nil, lastmsgid=nil, requestid=nil)
|
|
1040
1061
|
@Data = data
|
|
@@ -1929,6 +1950,22 @@ module TencentCloud
|
|
|
1929
1950
|
end
|
|
1930
1951
|
end
|
|
1931
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
|
+
|
|
1932
1969
|
# QueryHunyuanImageChatJob请求参数结构体
|
|
1933
1970
|
class QueryHunyuanImageChatJobRequest < TencentCloud::Common::AbstractModel
|
|
1934
1971
|
# @param JobId: 任务 ID。
|
|
@@ -3048,19 +3085,26 @@ module TencentCloud
|
|
|
3048
3085
|
# @type CompletionTokens: Integer
|
|
3049
3086
|
# @param TotalTokens: 总 Token 数量。
|
|
3050
3087
|
# @type TotalTokens: Integer
|
|
3088
|
+
# @param PromptTokensDetails: 输入 token 的详情。
|
|
3089
|
+
# @type PromptTokensDetails: :class:`Tencentcloud::Hunyuan.v20230901.models.PromptTokensDetails`
|
|
3051
3090
|
|
|
3052
|
-
attr_accessor :PromptTokens, :CompletionTokens, :TotalTokens
|
|
3091
|
+
attr_accessor :PromptTokens, :CompletionTokens, :TotalTokens, :PromptTokensDetails
|
|
3053
3092
|
|
|
3054
|
-
def initialize(prompttokens=nil, completiontokens=nil, totaltokens=nil)
|
|
3093
|
+
def initialize(prompttokens=nil, completiontokens=nil, totaltokens=nil, prompttokensdetails=nil)
|
|
3055
3094
|
@PromptTokens = prompttokens
|
|
3056
3095
|
@CompletionTokens = completiontokens
|
|
3057
3096
|
@TotalTokens = totaltokens
|
|
3097
|
+
@PromptTokensDetails = prompttokensdetails
|
|
3058
3098
|
end
|
|
3059
3099
|
|
|
3060
3100
|
def deserialize(params)
|
|
3061
3101
|
@PromptTokens = params['PromptTokens']
|
|
3062
3102
|
@CompletionTokens = params['CompletionTokens']
|
|
3063
3103
|
@TotalTokens = params['TotalTokens']
|
|
3104
|
+
unless params['PromptTokensDetails'].nil?
|
|
3105
|
+
@PromptTokensDetails = PromptTokensDetails.new
|
|
3106
|
+
@PromptTokensDetails.deserialize(params['PromptTokensDetails'])
|
|
3107
|
+
end
|
|
3064
3108
|
end
|
|
3065
3109
|
end
|
|
3066
3110
|
|
|
@@ -3087,6 +3131,42 @@ module TencentCloud
|
|
|
3087
3131
|
end
|
|
3088
3132
|
end
|
|
3089
3133
|
|
|
3134
|
+
# 当type为video_frames时使用,标识具体的视频内图像帧内容
|
|
3135
|
+
class VideoFrames < TencentCloud::Common::AbstractModel
|
|
3136
|
+
# @param Frames: 视频图像帧列表,图像帧传url
|
|
3137
|
+
# @type Frames: Array
|
|
3138
|
+
|
|
3139
|
+
attr_accessor :Frames
|
|
3140
|
+
|
|
3141
|
+
def initialize(frames=nil)
|
|
3142
|
+
@Frames = frames
|
|
3143
|
+
end
|
|
3144
|
+
|
|
3145
|
+
def deserialize(params)
|
|
3146
|
+
@Frames = params['Frames']
|
|
3147
|
+
end
|
|
3148
|
+
end
|
|
3149
|
+
|
|
3150
|
+
# 当type为video_url时使用,标识具体的视频链接内容
|
|
3151
|
+
class VideoUrl < TencentCloud::Common::AbstractModel
|
|
3152
|
+
# @param Url: 视频的url,如"https://your-video-path.mp/4"
|
|
3153
|
+
# @type Url: String
|
|
3154
|
+
# @param Fps: 控制视频抽帧频率,取值范围为 0.1 ~5,表示每隔 1/fps 秒抽取一帧,默认为 1s抽取一帧
|
|
3155
|
+
# @type Fps: Float
|
|
3156
|
+
|
|
3157
|
+
attr_accessor :Url, :Fps
|
|
3158
|
+
|
|
3159
|
+
def initialize(url=nil, fps=nil)
|
|
3160
|
+
@Url = url
|
|
3161
|
+
@Fps = fps
|
|
3162
|
+
end
|
|
3163
|
+
|
|
3164
|
+
def deserialize(params)
|
|
3165
|
+
@Url = params['Url']
|
|
3166
|
+
@Fps = params['Fps']
|
|
3167
|
+
end
|
|
3168
|
+
end
|
|
3169
|
+
|
|
3090
3170
|
# 知识注入相关的参数信息
|
|
3091
3171
|
class WebSearchOptions < TencentCloud::Common::AbstractModel
|
|
3092
3172
|
# @param Knowledge: 表示用户注入的知识信息
|
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.1180
|
|
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-09 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:
|