tencentcloud-sdk-hunyuan 3.0.1168 → 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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20230901/models.rb +36 -8
  4. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3951a45297980e217c2a2dfd7c96cbcbbb9b394c
4
- data.tar.gz: a9704c156865cbc51044072ac7fbaaca3391ed88
3
+ metadata.gz: 0cbae0beb6acd4a347575ec5e20f50354afda9a9
4
+ data.tar.gz: 71693614d07141bbd07277c0a78f4b9659031d37
5
5
  SHA512:
6
- metadata.gz: 967423c8d1575bdd70c893cc8fbd4b74cb4438cde282fb1e73d914498231a57ba26864a28d2e321ca7dbe98ae738b079c1da852e1e3db91e1f2cb740a495b9d8
7
- data.tar.gz: 6a666e56fd55691579713506a969063c5e3ffc13ce9fc2bc7f58f58bf22285cfd3bcc000c812e25569cc2d4cd4ad95be14d55cc770c3044ffcc889fd86bedb8f
6
+ metadata.gz: 57c3d51ca86a1e261db185df07b004b2c1137bbd2b05da379fcef37ba34d76a11acb1b29d5e024f4c8db387d94d10b624e954e05ac90c14d6af999c06a3d464f
7
+ data.tar.gz: 715d50e267492b95a31902cb62e780e70bd8dc570b0c40e678c8ac5c0a97e9d01f78e99ff26abecf04e7fd71f95a0f6d7ee40188ab05deaca7036716c62b330a
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1168
1
+ 3.0.1180
@@ -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, 11
323
- deprecate :ModerationLevel=, :none, 2025, 11
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
@@ -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, 11
1051
- deprecate :FirstID=, :none, 2025, 11
1052
- deprecate :LastID, :none, 2025, 11
1053
- deprecate :LastID=, :none, 2025, 11
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
@@ -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
 
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.1168
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-14 00:00:00.000000000 Z
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: