tencentcloud-sdk-lkeap 3.0.1049 → 3.0.1050
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/v20240522/models.rb +69 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 08a18dc540a762a6e7e4650f2835ea16478ae5f2
|
4
|
+
data.tar.gz: a3a46400935159a23573dad1e8e86cd5a6b257bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2833da907908c18caaf2fdd32f5c1881bae2ab2e323759776f2169e6a0864e227f20182a9c22b1c3c5aff97879f33bc7f4ecdfcbe9d0ca27394da080d07bba4
|
7
|
+
data.tar.gz: 3711b43bff3c6cf9282baf7d3226d84219eb79db469c60b5f0938e98d67cca2053f62782d11bec2bf0c57385e64fdb693001107951104b1f642400a0bb4ce0ea
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1050
|
data/lib/v20240522/models.rb
CHANGED
@@ -116,15 +116,18 @@ module TencentCloud
|
|
116
116
|
# @type Temperature: Float
|
117
117
|
# @param MaxTokens: 最大生成的token数量,默认为4096,最大可设置为16384
|
118
118
|
# @type MaxTokens: Integer
|
119
|
+
# @param EnableSearch: 是否启用联网搜索
|
120
|
+
# @type EnableSearch: Boolean
|
119
121
|
|
120
|
-
attr_accessor :Model, :Messages, :Stream, :Temperature, :MaxTokens
|
122
|
+
attr_accessor :Model, :Messages, :Stream, :Temperature, :MaxTokens, :EnableSearch
|
121
123
|
|
122
|
-
def initialize(model=nil, messages=nil, stream=nil, temperature=nil, maxtokens=nil)
|
124
|
+
def initialize(model=nil, messages=nil, stream=nil, temperature=nil, maxtokens=nil, enablesearch=nil)
|
123
125
|
@Model = model
|
124
126
|
@Messages = messages
|
125
127
|
@Stream = stream
|
126
128
|
@Temperature = temperature
|
127
129
|
@MaxTokens = maxtokens
|
130
|
+
@EnableSearch = enablesearch
|
128
131
|
end
|
129
132
|
|
130
133
|
def deserialize(params)
|
@@ -140,6 +143,7 @@ module TencentCloud
|
|
140
143
|
@Stream = params['Stream']
|
141
144
|
@Temperature = params['Temperature']
|
142
145
|
@MaxTokens = params['MaxTokens']
|
146
|
+
@EnableSearch = params['EnableSearch']
|
143
147
|
end
|
144
148
|
end
|
145
149
|
|
@@ -915,22 +919,30 @@ module TencentCloud
|
|
915
919
|
# @type TotalToken: Integer
|
916
920
|
# @param TotalTokens: 文档拆分任务消耗的总token数
|
917
921
|
# @type TotalTokens: Integer
|
922
|
+
# @param SplitTokens: 拆分消耗的token数
|
923
|
+
# @type SplitTokens: Integer
|
924
|
+
# @param MllmTokens: mllm消耗的token数
|
925
|
+
# @type MllmTokens: Integer
|
918
926
|
|
919
|
-
attr_accessor :PageNumber, :TotalToken, :TotalTokens
|
927
|
+
attr_accessor :PageNumber, :TotalToken, :TotalTokens, :SplitTokens, :MllmTokens
|
920
928
|
extend Gem::Deprecate
|
921
929
|
deprecate :TotalToken, :none, 2025, 4
|
922
930
|
deprecate :TotalToken=, :none, 2025, 4
|
923
931
|
|
924
|
-
def initialize(pagenumber=nil, totaltoken=nil, totaltokens=nil)
|
932
|
+
def initialize(pagenumber=nil, totaltoken=nil, totaltokens=nil, splittokens=nil, mllmtokens=nil)
|
925
933
|
@PageNumber = pagenumber
|
926
934
|
@TotalToken = totaltoken
|
927
935
|
@TotalTokens = totaltokens
|
936
|
+
@SplitTokens = splittokens
|
937
|
+
@MllmTokens = mllmtokens
|
928
938
|
end
|
929
939
|
|
930
940
|
def deserialize(params)
|
931
941
|
@PageNumber = params['PageNumber']
|
932
942
|
@TotalToken = params['TotalToken']
|
933
943
|
@TotalTokens = params['TotalTokens']
|
944
|
+
@SplitTokens = params['SplitTokens']
|
945
|
+
@MllmTokens = params['MllmTokens']
|
934
946
|
end
|
935
947
|
end
|
936
948
|
|
@@ -1411,19 +1423,30 @@ module TencentCloud
|
|
1411
1423
|
# @param ReasoningContent: 思维链内容。
|
1412
1424
|
# ReasoningConent参数仅支持出参,且只有deepseek-r1模型会返回。
|
1413
1425
|
# @type ReasoningContent: String
|
1426
|
+
# @param SearchResults: 搜索结果
|
1427
|
+
# @type SearchResults: Array
|
1414
1428
|
|
1415
|
-
attr_accessor :Role, :Content, :ReasoningContent
|
1429
|
+
attr_accessor :Role, :Content, :ReasoningContent, :SearchResults
|
1416
1430
|
|
1417
|
-
def initialize(role=nil, content=nil, reasoningcontent=nil)
|
1431
|
+
def initialize(role=nil, content=nil, reasoningcontent=nil, searchresults=nil)
|
1418
1432
|
@Role = role
|
1419
1433
|
@Content = content
|
1420
1434
|
@ReasoningContent = reasoningcontent
|
1435
|
+
@SearchResults = searchresults
|
1421
1436
|
end
|
1422
1437
|
|
1423
1438
|
def deserialize(params)
|
1424
1439
|
@Role = params['Role']
|
1425
1440
|
@Content = params['Content']
|
1426
1441
|
@ReasoningContent = params['ReasoningContent']
|
1442
|
+
unless params['SearchResults'].nil?
|
1443
|
+
@SearchResults = []
|
1444
|
+
params['SearchResults'].each do |i|
|
1445
|
+
searchresult_tmp = SearchResult.new
|
1446
|
+
searchresult_tmp.deserialize(i)
|
1447
|
+
@SearchResults << searchresult_tmp
|
1448
|
+
end
|
1449
|
+
end
|
1427
1450
|
end
|
1428
1451
|
end
|
1429
1452
|
|
@@ -2001,6 +2024,46 @@ module TencentCloud
|
|
2001
2024
|
end
|
2002
2025
|
end
|
2003
2026
|
|
2027
|
+
# 搜索结果
|
2028
|
+
class SearchResult < TencentCloud::Common::AbstractModel
|
2029
|
+
# @param Index: 索引
|
2030
|
+
# @type Index: Integer
|
2031
|
+
# @param Url: 链接地址
|
2032
|
+
# @type Url: String
|
2033
|
+
# @param Name: 标题
|
2034
|
+
# @type Name: String
|
2035
|
+
# @param Snippet: 摘要
|
2036
|
+
# @type Snippet: String
|
2037
|
+
# @param Icon: 图标
|
2038
|
+
# @type Icon: String
|
2039
|
+
# @param Site: 站点
|
2040
|
+
# @type Site: String
|
2041
|
+
# @param PublishedTime: 1740412800
|
2042
|
+
# @type PublishedTime: Integer
|
2043
|
+
|
2044
|
+
attr_accessor :Index, :Url, :Name, :Snippet, :Icon, :Site, :PublishedTime
|
2045
|
+
|
2046
|
+
def initialize(index=nil, url=nil, name=nil, snippet=nil, icon=nil, site=nil, publishedtime=nil)
|
2047
|
+
@Index = index
|
2048
|
+
@Url = url
|
2049
|
+
@Name = name
|
2050
|
+
@Snippet = snippet
|
2051
|
+
@Icon = icon
|
2052
|
+
@Site = site
|
2053
|
+
@PublishedTime = publishedtime
|
2054
|
+
end
|
2055
|
+
|
2056
|
+
def deserialize(params)
|
2057
|
+
@Index = params['Index']
|
2058
|
+
@Url = params['Url']
|
2059
|
+
@Name = params['Name']
|
2060
|
+
@Snippet = params['Snippet']
|
2061
|
+
@Icon = params['Icon']
|
2062
|
+
@Site = params['Site']
|
2063
|
+
@PublishedTime = params['PublishedTime']
|
2064
|
+
end
|
2065
|
+
end
|
2066
|
+
|
2004
2067
|
# 分段配置
|
2005
2068
|
class SegmentationConfig < TencentCloud::Common::AbstractModel
|
2006
2069
|
# @param MaxChunkSize: 最大分片长度
|
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.
|
4
|
+
version: 3.0.1050
|
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-04-
|
11
|
+
date: 2025-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|