tencentcloud-sdk-hunyuan 3.0.1074 → 3.0.1086
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 +58 -15
- 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: 60105ca920c48a1d42f5337c72d8a4207321fe64
|
4
|
+
data.tar.gz: 5a2f92d514623e42ad66fe8dfb75d8c528c1cbc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2497343082e60bd09a32105ae383d1f6a68cd691273dc801ce9b14e6b147d66cd3387f51df9ebf32c3033dceb796cfe06875ead78db8da002d6a327edf3e9ed
|
7
|
+
data.tar.gz: 40fb0c2b4df451ae79473c9de651b292efc5162d822f97fdfb5623148a9809acd7d6361fe3591114c42be680e8d4ffffdfadeff578dcaddfdc826aa426ea4a80
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1086
|
data/lib/v20230901/models.rb
CHANGED
@@ -103,7 +103,9 @@ module TencentCloud
|
|
103
103
|
|
104
104
|
# ChatCompletions请求参数结构体
|
105
105
|
class ChatCompletionsRequest < TencentCloud::Common::AbstractModel
|
106
|
-
# @param Model:
|
106
|
+
# @param Model: 模型名称,可选值参考 [产品概述](https://cloud.tencent.com/document/product/1729/104753) 中混元生文模型列表。
|
107
|
+
# 示例值:hunyuan-turbos-latest
|
108
|
+
# 各模型介绍请阅读 [产品概述](https://cloud.tencent.com/document/product/1729/104753) 中的说明。注意:不同的模型计费不同,请根据 [购买指南](https://cloud.tencent.com/document/product/1729/97731) 按需调用。
|
107
109
|
# @type Model: String
|
108
110
|
# @param Messages: 聊天上下文信息。
|
109
111
|
# 说明:
|
@@ -202,10 +204,12 @@ module TencentCloud
|
|
202
204
|
# @type EnableDeepRead: Boolean
|
203
205
|
# @param WebSearchOptions: 知识注入相关的参数信息
|
204
206
|
# @type WebSearchOptions: :class:`Tencentcloud::Hunyuan.v20230901.models.WebSearchOptions`
|
207
|
+
# @param TopicChoice: 用户传入Topic
|
208
|
+
# @type TopicChoice: String
|
205
209
|
|
206
|
-
attr_accessor :Model, :Messages, :Stream, :StreamModeration, :TopP, :Temperature, :EnableEnhancement, :Tools, :ToolChoice, :CustomTool, :SearchInfo, :Citation, :EnableSpeedSearch, :EnableMultimedia, :EnableDeepSearch, :Seed, :ForceSearchEnhancement, :Stop, :EnableRecommendedQuestions, :EnableDeepRead, :WebSearchOptions
|
210
|
+
attr_accessor :Model, :Messages, :Stream, :StreamModeration, :TopP, :Temperature, :EnableEnhancement, :Tools, :ToolChoice, :CustomTool, :SearchInfo, :Citation, :EnableSpeedSearch, :EnableMultimedia, :EnableDeepSearch, :Seed, :ForceSearchEnhancement, :Stop, :EnableRecommendedQuestions, :EnableDeepRead, :WebSearchOptions, :TopicChoice
|
207
211
|
|
208
|
-
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)
|
212
|
+
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)
|
209
213
|
@Model = model
|
210
214
|
@Messages = messages
|
211
215
|
@Stream = stream
|
@@ -227,6 +231,7 @@ module TencentCloud
|
|
227
231
|
@EnableRecommendedQuestions = enablerecommendedquestions
|
228
232
|
@EnableDeepRead = enabledeepread
|
229
233
|
@WebSearchOptions = websearchoptions
|
234
|
+
@TopicChoice = topicchoice
|
230
235
|
end
|
231
236
|
|
232
237
|
def deserialize(params)
|
@@ -271,6 +276,7 @@ module TencentCloud
|
|
271
276
|
@WebSearchOptions = WebSearchOptions.new
|
272
277
|
@WebSearchOptions.deserialize(params['WebSearchOptions'])
|
273
278
|
end
|
279
|
+
@TopicChoice = params['TopicChoice']
|
274
280
|
end
|
275
281
|
end
|
276
282
|
|
@@ -302,15 +308,17 @@ module TencentCloud
|
|
302
308
|
# @type Replaces: Array
|
303
309
|
# @param RecommendedQuestions: 推荐问答。
|
304
310
|
# @type RecommendedQuestions: Array
|
311
|
+
# @param Processes: AI搜索返回状态
|
312
|
+
# @type Processes: :class:`Tencentcloud::Hunyuan.v20230901.models.Processes`
|
305
313
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
|
306
314
|
# @type RequestId: String
|
307
315
|
|
308
|
-
attr_accessor :Created, :Usage, :Note, :Id, :Choices, :ErrorMsg, :ModerationLevel, :SearchInfo, :Replaces, :RecommendedQuestions, :RequestId
|
316
|
+
attr_accessor :Created, :Usage, :Note, :Id, :Choices, :ErrorMsg, :ModerationLevel, :SearchInfo, :Replaces, :RecommendedQuestions, :Processes, :RequestId
|
309
317
|
extend Gem::Deprecate
|
310
|
-
deprecate :ModerationLevel, :none, 2025,
|
311
|
-
deprecate :ModerationLevel=, :none, 2025,
|
318
|
+
deprecate :ModerationLevel, :none, 2025, 6
|
319
|
+
deprecate :ModerationLevel=, :none, 2025, 6
|
312
320
|
|
313
|
-
def initialize(created=nil, usage=nil, note=nil, id=nil, choices=nil, errormsg=nil, moderationlevel=nil, searchinfo=nil, replaces=nil, recommendedquestions=nil, requestid=nil)
|
321
|
+
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)
|
314
322
|
@Created = created
|
315
323
|
@Usage = usage
|
316
324
|
@Note = note
|
@@ -321,6 +329,7 @@ module TencentCloud
|
|
321
329
|
@SearchInfo = searchinfo
|
322
330
|
@Replaces = replaces
|
323
331
|
@RecommendedQuestions = recommendedquestions
|
332
|
+
@Processes = processes
|
324
333
|
@RequestId = requestid
|
325
334
|
end
|
326
335
|
|
@@ -358,6 +367,10 @@ module TencentCloud
|
|
358
367
|
end
|
359
368
|
end
|
360
369
|
@RecommendedQuestions = params['RecommendedQuestions']
|
370
|
+
unless params['Processes'].nil?
|
371
|
+
@Processes = Processes.new
|
372
|
+
@Processes.deserialize(params['Processes'])
|
373
|
+
end
|
361
374
|
@RequestId = params['RequestId']
|
362
375
|
end
|
363
376
|
end
|
@@ -523,11 +536,11 @@ module TencentCloud
|
|
523
536
|
end
|
524
537
|
end
|
525
538
|
|
526
|
-
#
|
539
|
+
# 可以传入多种类型的内容,如图片、文本。
|
527
540
|
class Content < TencentCloud::Common::AbstractModel
|
528
541
|
# @param Type: 内容类型
|
529
542
|
# 注意:
|
530
|
-
# 需包含至少一个 Type 为"text"
|
543
|
+
# 需包含至少一个 Type 为"text"的参数。
|
531
544
|
# 参数值可选范围:[text", "image_url"]
|
532
545
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
533
546
|
# @type Type: String
|
@@ -1051,10 +1064,10 @@ module TencentCloud
|
|
1051
1064
|
|
1052
1065
|
attr_accessor :Data, :FirstID, :LastID, :HasMore, :Object, :FirstMsgID, :LastMsgID, :RequestId
|
1053
1066
|
extend Gem::Deprecate
|
1054
|
-
deprecate :FirstID, :none, 2025,
|
1055
|
-
deprecate :FirstID=, :none, 2025,
|
1056
|
-
deprecate :LastID, :none, 2025,
|
1057
|
-
deprecate :LastID=, :none, 2025,
|
1067
|
+
deprecate :FirstID, :none, 2025, 6
|
1068
|
+
deprecate :FirstID=, :none, 2025, 6
|
1069
|
+
deprecate :LastID, :none, 2025, 6
|
1070
|
+
deprecate :LastID=, :none, 2025, 6
|
1058
1071
|
|
1059
1072
|
def initialize(data=nil, firstid=nil, lastid=nil, hasmore=nil, object=nil, firstmsgid=nil, lastmsgid=nil, requestid=nil)
|
1060
1073
|
@Data = data
|
@@ -1891,6 +1904,32 @@ module TencentCloud
|
|
1891
1904
|
end
|
1892
1905
|
end
|
1893
1906
|
|
1907
|
+
# 大模型执行状态
|
1908
|
+
class Processes < TencentCloud::Common::AbstractModel
|
1909
|
+
# @param Message: 输出信息
|
1910
|
+
# @type Message: String
|
1911
|
+
# @param State: plan:开始获取资料…
|
1912
|
+
# recall:找到 n 篇相关资料
|
1913
|
+
# quote:引用 n 篇资料作为参考
|
1914
|
+
# @type State: String
|
1915
|
+
# @param Num: 当状态是recall和quote,会给出来相关数量
|
1916
|
+
# @type Num: Integer
|
1917
|
+
|
1918
|
+
attr_accessor :Message, :State, :Num
|
1919
|
+
|
1920
|
+
def initialize(message=nil, state=nil, num=nil)
|
1921
|
+
@Message = message
|
1922
|
+
@State = state
|
1923
|
+
@Num = num
|
1924
|
+
end
|
1925
|
+
|
1926
|
+
def deserialize(params)
|
1927
|
+
@Message = params['Message']
|
1928
|
+
@State = params['State']
|
1929
|
+
@Num = params['Num']
|
1930
|
+
end
|
1931
|
+
end
|
1932
|
+
|
1894
1933
|
# QueryHunyuanImageChatJob请求参数结构体
|
1895
1934
|
class QueryHunyuanImageChatJobRequest < TencentCloud::Common::AbstractModel
|
1896
1935
|
# @param JobId: 任务 ID。
|
@@ -3164,12 +3203,15 @@ module TencentCloud
|
|
3164
3203
|
# @type Knowledge: Array
|
3165
3204
|
# @param UserLocation: 用户位置详细信息
|
3166
3205
|
# @type UserLocation: :class:`Tencentcloud::Hunyuan.v20230901.models.UserLocation`
|
3206
|
+
# @param Processes: 打开开关,会返回搜索状态
|
3207
|
+
# @type Processes: Boolean
|
3167
3208
|
|
3168
|
-
attr_accessor :Knowledge, :UserLocation
|
3209
|
+
attr_accessor :Knowledge, :UserLocation, :Processes
|
3169
3210
|
|
3170
|
-
def initialize(knowledge=nil, userlocation=nil)
|
3211
|
+
def initialize(knowledge=nil, userlocation=nil, processes=nil)
|
3171
3212
|
@Knowledge = knowledge
|
3172
3213
|
@UserLocation = userlocation
|
3214
|
+
@Processes = processes
|
3173
3215
|
end
|
3174
3216
|
|
3175
3217
|
def deserialize(params)
|
@@ -3185,6 +3227,7 @@ module TencentCloud
|
|
3185
3227
|
@UserLocation = UserLocation.new
|
3186
3228
|
@UserLocation.deserialize(params['UserLocation'])
|
3187
3229
|
end
|
3230
|
+
@Processes = params['Processes']
|
3188
3231
|
end
|
3189
3232
|
end
|
3190
3233
|
|
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.1086
|
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-06-
|
11
|
+
date: 2025-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|