tencentcloud-sdk-lkeap 3.0.989 → 3.0.991

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: eb9597d59fc1ca60ea81f61d64282ef0a929dff6
4
- data.tar.gz: 48bf3cc39c14875526738b0208bace2bf5b6c720
3
+ metadata.gz: 10314c65642395b4e9f59e336e92fa1b57371a7e
4
+ data.tar.gz: a20d6cb0873698294260f90dd66799d8351de768
5
5
  SHA512:
6
- metadata.gz: 6701d5eb1d201cfd0cf7baac33a63b70943ebafa4ac421024e9d7fa87db0178675b7a4c62f8831a782221100fdb1b1a054b699da278719cc801c2b93e87586d2
7
- data.tar.gz: 78df1244644a3809ccfe3e75c22d3aead621affd13143552c1453881cf566f57bc186002aa96d19219365259abd80ca5eb7595b70211f0531f176efb5649facd
6
+ metadata.gz: 9581732829552d25635b9e6dc4451bfb2c0a1937484199230048bbfb94e04401cacf4f94346916f8cad2fab41e5fd637e4587f12d4489789db09f0dfe681fcbb
7
+ data.tar.gz: d638f58a58d024f9b7d151cb3d11734926056c44df80e078935a743200e247528bda7b5c93e0a8719a988ab58962d056dc656d8406f6c007f243fc1f8820dec0
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.989
1
+ 3.0.991
@@ -29,6 +29,30 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # 对话
33
+
34
+ # @param request: Request instance for ChatCompletions.
35
+ # @type request: :class:`Tencentcloud::lkeap::V20240522::ChatCompletionsRequest`
36
+ # @rtype: :class:`Tencentcloud::lkeap::V20240522::ChatCompletionsResponse`
37
+ def ChatCompletions(request)
38
+ body = send_request('ChatCompletions', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = ChatCompletionsResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
32
56
  # 用于为问答对创建属性标签,以便对内容进行分类和管理。 使用场景:当需要为问答对添加分类标签和属性标记时使用,比如为问答对添加“售后”标签。
33
57
 
34
58
  # @param request: Request instance for CreateAttributeLabel.
@@ -100,6 +100,53 @@ module TencentCloud
100
100
  end
101
101
  end
102
102
 
103
+ # ChatCompletions请求参数结构体
104
+ class ChatCompletionsRequest < TencentCloud::Common::AbstractModel
105
+ # @param Model: 模型名称
106
+ # @type Model: String
107
+ # @param Messages: 会话列表
108
+ # @type Messages: Array
109
+ # @param Stream: 是否流式输出
110
+ # @type Stream: Boolean
111
+
112
+ attr_accessor :Model, :Messages, :Stream
113
+
114
+ def initialize(model=nil, messages=nil, stream=nil)
115
+ @Model = model
116
+ @Messages = messages
117
+ @Stream = stream
118
+ end
119
+
120
+ def deserialize(params)
121
+ @Model = params['Model']
122
+ unless params['Messages'].nil?
123
+ @Messages = []
124
+ params['Messages'].each do |i|
125
+ message_tmp = Message.new
126
+ message_tmp.deserialize(i)
127
+ @Messages << message_tmp
128
+ end
129
+ end
130
+ @Stream = params['Stream']
131
+ end
132
+ end
133
+
134
+ # ChatCompletions返回参数结构体
135
+ class ChatCompletionsResponse < TencentCloud::Common::AbstractModel
136
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
137
+ # @type RequestId: String
138
+
139
+ attr_accessor :RequestId
140
+
141
+ def initialize(requestid=nil)
142
+ @RequestId = requestid
143
+ end
144
+
145
+ def deserialize(params)
146
+ @RequestId = params['RequestId']
147
+ end
148
+ end
149
+
103
150
  # CreateAttributeLabel请求参数结构体
104
151
  class CreateAttributeLabelRequest < TencentCloud::Common::AbstractModel
105
152
  # @param Labels: 属性标签信息
@@ -337,10 +384,10 @@ module TencentCloud
337
384
 
338
385
  attr_accessor :TableResultType, :ResultType, :EnableMllm, :MaxChunkSize
339
386
  extend Gem::Deprecate
340
- deprecate :TableResultType, :none, 2025, 1
341
- deprecate :TableResultType=, :none, 2025, 1
342
- deprecate :ResultType, :none, 2025, 1
343
- deprecate :ResultType=, :none, 2025, 1
387
+ deprecate :TableResultType, :none, 2025, 2
388
+ deprecate :TableResultType=, :none, 2025, 2
389
+ deprecate :ResultType, :none, 2025, 2
390
+ deprecate :ResultType=, :none, 2025, 2
344
391
 
345
392
  def initialize(tableresulttype=nil, resulttype=nil, enablemllm=nil, maxchunksize=nil)
346
393
  @TableResultType = tableresulttype
@@ -393,8 +440,8 @@ module TencentCloud
393
440
 
394
441
  attr_accessor :FileType, :FileUrl, :FileName, :FileBase64, :FileStartPageNumber, :FileEndPageNumber, :Config
395
442
  extend Gem::Deprecate
396
- deprecate :FileBase64, :none, 2025, 1
397
- deprecate :FileBase64=, :none, 2025, 1
443
+ deprecate :FileBase64, :none, 2025, 2
444
+ deprecate :FileBase64=, :none, 2025, 2
398
445
 
399
446
  def initialize(filetype=nil, fileurl=nil, filename=nil, filebase64=nil, filestartpagenumber=nil, fileendpagenumber=nil, config=nil)
400
447
  @FileType = filetype
@@ -654,8 +701,8 @@ module TencentCloud
654
701
 
655
702
  attr_accessor :PageNumber, :TotalToken, :TotalTokens
656
703
  extend Gem::Deprecate
657
- deprecate :TotalToken, :none, 2025, 1
658
- deprecate :TotalToken=, :none, 2025, 1
704
+ deprecate :TotalToken, :none, 2025, 2
705
+ deprecate :TotalToken=, :none, 2025, 2
659
706
 
660
707
  def initialize(pagenumber=nil, totaltoken=nil, totaltokens=nil)
661
708
  @PageNumber = pagenumber
@@ -838,8 +885,8 @@ module TencentCloud
838
885
 
839
886
  attr_accessor :Status, :DocumentRecognizeResultUrl, :FailedPages, :Usage, :RequestId
840
887
  extend Gem::Deprecate
841
- deprecate :FailedPages, :none, 2025, 1
842
- deprecate :FailedPages=, :none, 2025, 1
888
+ deprecate :FailedPages, :none, 2025, 2
889
+ deprecate :FailedPages=, :none, 2025, 2
843
890
 
844
891
  def initialize(status=nil, documentrecognizeresulturl=nil, failedpages=nil, usage=nil, requestid=nil)
845
892
  @Status = status
@@ -1679,8 +1726,8 @@ module TencentCloud
1679
1726
 
1680
1727
  attr_accessor :KnowledgeBaseId, :FileName, :FileType, :FileUrl, :AttributeLabel, :AttributeLabels, :Config
1681
1728
  extend Gem::Deprecate
1682
- deprecate :AttributeLabel, :none, 2025, 1
1683
- deprecate :AttributeLabel=, :none, 2025, 1
1729
+ deprecate :AttributeLabel, :none, 2025, 2
1730
+ deprecate :AttributeLabel=, :none, 2025, 2
1684
1731
 
1685
1732
  def initialize(knowledgebaseid=nil, filename=nil, filetype=nil, fileurl=nil, attributelabel=nil, attributelabels=nil, config=nil)
1686
1733
  @KnowledgeBaseId = knowledgebaseid
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-lkeap
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.989
4
+ version: 3.0.991
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-01-23 00:00:00.000000000 Z
11
+ date: 2025-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common