tencentcloud-sdk-lke 3.0.807 → 3.0.809

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: 0b6a3c775e6e31b0534835d8d43d7f6d60fd196e
4
- data.tar.gz: ed54e470cb88d756a0f207951cff2afa0da58dcb
3
+ metadata.gz: a776940a7409d047ffc724cdea160904fa3cf4c0
4
+ data.tar.gz: 265f81ebb24f0c827336fb0487f391acad181554
5
5
  SHA512:
6
- metadata.gz: 5c1a1ed02a52ef1f44f0005f001bca16add03d5a6930c62853d9ce924b09be810d53df9f0cadc3bae01e5d99d307c4cf17461bd6f852f4fac72b7cc49fa61fd3
7
- data.tar.gz: a75ec45ce5064f4d3228f7892f0967f6c344531231c78ad53683f5edd2b90795841b9d5b220c1d52cab93ac69a72c5d15a9429793a353bb22643b834158e7671
6
+ metadata.gz: 2aef313b70f0c6741f84c8a5ac178beda32e864f0064926bd26980bb1ba45dc135fc72e778b540094bed4406589b10f1ece8f29f8fa2e1cdfa67f83140eb76f6
7
+ data.tar.gz: d349b301cfbcf76a46d032199929cd243efd593451ee034e964f306a1a78f0e56a66aa485ed1b617d95cdfe159d1b32e883d39683dec4029ef8303cf589f8e91
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.807
1
+ 3.0.809
@@ -822,6 +822,7 @@ module TencentCloud
822
822
  end
823
823
 
824
824
  # 获取特征向量
825
+ # 本接口有单账号调用上限控制,如您有提高并发限制的需求请 [联系我们](https://cloud.tencent.com/act/event/Online_service) 。
825
826
 
826
827
  # @param request: Request instance for GetEmbedding.
827
828
  # @type request: :class:`Tencentcloud::lke::V20231130::GetEmbeddingRequest`
@@ -1590,6 +1591,7 @@ module TencentCloud
1590
1591
  end
1591
1592
 
1592
1593
  # 多轮改写
1594
+ # 本接口有单账号调用上限控制,如您有提高并发限制的需求请 [联系我们](https://cloud.tencent.com/act/event/Online_service) 。
1593
1595
 
1594
1596
  # @param request: Request instance for QueryRewrite.
1595
1597
  # @type request: :class:`Tencentcloud::lke::V20231130::QueryRewriteRequest`
@@ -2372,13 +2372,16 @@ module TencentCloud
2372
2372
  class GetEmbeddingResponse < TencentCloud::Common::AbstractModel
2373
2373
  # @param Data: 特征
2374
2374
  # @type Data: Array
2375
+ # @param Usage: 消耗量,返回TotalToken
2376
+ # @type Usage: :class:`Tencentcloud::Lke.v20231130.models.Usage`
2375
2377
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2376
2378
  # @type RequestId: String
2377
2379
 
2378
- attr_accessor :Data, :RequestId
2380
+ attr_accessor :Data, :Usage, :RequestId
2379
2381
 
2380
- def initialize(data=nil, requestid=nil)
2382
+ def initialize(data=nil, usage=nil, requestid=nil)
2381
2383
  @Data = data
2384
+ @Usage = usage
2382
2385
  @RequestId = requestid
2383
2386
  end
2384
2387
 
@@ -2391,6 +2394,10 @@ module TencentCloud
2391
2394
  @Data << embeddingobject_tmp
2392
2395
  end
2393
2396
  end
2397
+ unless params['Usage'].nil?
2398
+ @Usage = Usage.new
2399
+ @Usage.deserialize(params['Usage'])
2400
+ end
2394
2401
  @RequestId = params['RequestId']
2395
2402
  end
2396
2403
  end
@@ -4850,10 +4857,13 @@ module TencentCloud
4850
4857
  # @type TaskId: String
4851
4858
  # @param Policy: 切分策略
4852
4859
  # @type Policy: String
4853
- # @param Operate: 默认值: split
4860
+ # @param Operate: 默认值: parse
4854
4861
  # @type Operate: String
4855
4862
 
4856
4863
  attr_accessor :Name, :Url, :TaskId, :Policy, :Operate
4864
+ extend Gem::Deprecate
4865
+ deprecate :Operate, :none, 2024, 4
4866
+ deprecate :Operate=, :none, 2024, 4
4857
4867
 
4858
4868
  def initialize(name=nil, url=nil, taskid=nil, policy=nil, operate=nil)
4859
4869
  @Name = name
@@ -5066,16 +5076,19 @@ module TencentCloud
5066
5076
  # @type Url: String
5067
5077
  # @param Reason: 解析失败原因
5068
5078
  # @type Reason: String
5079
+ # @param Usage: 消耗量,输出页数
5080
+ # @type Usage: :class:`Tencentcloud::Lke.v20231130.models.Usage`
5069
5081
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5070
5082
  # @type RequestId: String
5071
5083
 
5072
- attr_accessor :Status, :Name, :Url, :Reason, :RequestId
5084
+ attr_accessor :Status, :Name, :Url, :Reason, :Usage, :RequestId
5073
5085
 
5074
- def initialize(status=nil, name=nil, url=nil, reason=nil, requestid=nil)
5086
+ def initialize(status=nil, name=nil, url=nil, reason=nil, usage=nil, requestid=nil)
5075
5087
  @Status = status
5076
5088
  @Name = name
5077
5089
  @Url = url
5078
5090
  @Reason = reason
5091
+ @Usage = usage
5079
5092
  @RequestId = requestid
5080
5093
  end
5081
5094
 
@@ -5084,6 +5097,10 @@ module TencentCloud
5084
5097
  @Name = params['Name']
5085
5098
  @Url = params['Url']
5086
5099
  @Reason = params['Reason']
5100
+ unless params['Usage'].nil?
5101
+ @Usage = Usage.new
5102
+ @Usage.deserialize(params['Usage'])
5103
+ end
5087
5104
  @RequestId = params['RequestId']
5088
5105
  end
5089
5106
  end
@@ -5123,18 +5140,25 @@ module TencentCloud
5123
5140
  class QueryRewriteResponse < TencentCloud::Common::AbstractModel
5124
5141
  # @param Content: 改写结果
5125
5142
  # @type Content: String
5143
+ # @param Usage: 消耗量,返回输入token数,输出token数以及总token数
5144
+ # @type Usage: :class:`Tencentcloud::Lke.v20231130.models.Usage`
5126
5145
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5127
5146
  # @type RequestId: String
5128
5147
 
5129
- attr_accessor :Content, :RequestId
5148
+ attr_accessor :Content, :Usage, :RequestId
5130
5149
 
5131
- def initialize(content=nil, requestid=nil)
5150
+ def initialize(content=nil, usage=nil, requestid=nil)
5132
5151
  @Content = content
5152
+ @Usage = usage
5133
5153
  @RequestId = requestid
5134
5154
  end
5135
5155
 
5136
5156
  def deserialize(params)
5137
5157
  @Content = params['Content']
5158
+ unless params['Usage'].nil?
5159
+ @Usage = Usage.new
5160
+ @Usage.deserialize(params['Usage'])
5161
+ end
5138
5162
  @RequestId = params['RequestId']
5139
5163
  end
5140
5164
  end
@@ -5958,6 +5982,34 @@ module TencentCloud
5958
5982
  end
5959
5983
  end
5960
5984
 
5985
+ # 消耗量
5986
+ class Usage < TencentCloud::Common::AbstractModel
5987
+ # @param TotalPages: 文档页数
5988
+ # @type TotalPages: Integer
5989
+ # @param InputTokens: 输入token数
5990
+ # @type InputTokens: Integer
5991
+ # @param OutputTokens: 输出token数
5992
+ # @type OutputTokens: Integer
5993
+ # @param TotalTokens: 总token数
5994
+ # @type TotalTokens: Integer
5995
+
5996
+ attr_accessor :TotalPages, :InputTokens, :OutputTokens, :TotalTokens
5997
+
5998
+ def initialize(totalpages=nil, inputtokens=nil, outputtokens=nil, totaltokens=nil)
5999
+ @TotalPages = totalpages
6000
+ @InputTokens = inputtokens
6001
+ @OutputTokens = outputtokens
6002
+ @TotalTokens = totaltokens
6003
+ end
6004
+
6005
+ def deserialize(params)
6006
+ @TotalPages = params['TotalPages']
6007
+ @InputTokens = params['InputTokens']
6008
+ @OutputTokens = params['OutputTokens']
6009
+ @TotalTokens = params['TotalTokens']
6010
+ end
6011
+ end
6012
+
5961
6013
  # VerifyQA请求参数结构体
5962
6014
  class VerifyQARequest < TencentCloud::Common::AbstractModel
5963
6015
  # @param List: 问答列表
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-lke
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.807
4
+ version: 3.0.809
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-21 00:00:00.000000000 Z
11
+ date: 2024-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common