tencentcloud-sdk-hunyuan 3.0.1056 → 3.0.1058

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 +120 -6
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1ffc22b75ae7ecb450bc06fe098bafab5c355d37
4
- data.tar.gz: d449e22f7d0bafb0ece3dd01410cbe19359a226e
3
+ metadata.gz: f30556b4f20e3e91f5464d82bac607034cd4a8b8
4
+ data.tar.gz: 2509906c0ca253ee87da97c56b50635a61928489
5
5
  SHA512:
6
- metadata.gz: 5ead8323528ad1d643ee9c42fdd4b20d6836eb0b5f0a0bf61bedaaa9c96bba6abe11d807ef082bf078935a55fcfca619e78508809c68aa3e8153a2973671d163
7
- data.tar.gz: 7c013c8af6b99d65687beba22a407b471f59d4a9e01a68fb0cd62e17ad38b7938042e9a0810751f86d747a3fa2c1afeaa6089470b7437dbb079156b95c4a208d
6
+ metadata.gz: 1fb8b340e8bb4344a66d5ab6ac117b3136122cde9e91c86c6f81664edad7f5678d8360a93772f3f377a6674ae3537315da7d6db21fd2d0313f79835d638ba32b
7
+ data.tar.gz: 8ad2a8f615241636a67cdd8ccdde13162aaa6ea7bad6684767cc25101e1c8a59193719c6a2a87f832615753364070d8cb702e0f7e18550233e952f9fbdcf55c2
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1056
1
+ 3.0.1058
@@ -49,6 +49,38 @@ module TencentCloud
49
49
  end
50
50
  end
51
51
 
52
+ # 用户位置信息
53
+ class Approximate < TencentCloud::Common::AbstractModel
54
+ # @param Country: 表示 ISO 国家代码
55
+ # @type Country: String
56
+ # @param City: 表示城市名称
57
+ # @type City: String
58
+ # @param Region: 表示区域名称
59
+ # @type Region: String
60
+ # @param Timezone: 表示IANA时区
61
+ # @type Timezone: String
62
+ # @param Address: 表示详细地址
63
+ # @type Address: String
64
+
65
+ attr_accessor :Country, :City, :Region, :Timezone, :Address
66
+
67
+ def initialize(country=nil, city=nil, region=nil, timezone=nil, address=nil)
68
+ @Country = country
69
+ @City = city
70
+ @Region = region
71
+ @Timezone = timezone
72
+ @Address = address
73
+ end
74
+
75
+ def deserialize(params)
76
+ @Country = params['Country']
77
+ @City = params['City']
78
+ @Region = params['Region']
79
+ @Timezone = params['Timezone']
80
+ @Address = params['Address']
81
+ end
82
+ end
83
+
52
84
  # 人物描述
53
85
  class Character < TencentCloud::Common::AbstractModel
54
86
  # @param Name: 人物名称
@@ -168,10 +200,12 @@ module TencentCloud
168
200
  # @type EnableRecommendedQuestions: Boolean
169
201
  # @param EnableDeepRead: 是否开启深度阅读,默认是false,在值为true时,会返回深度阅读的结果信息。说明:1.深度阅读需要开启插件增强,即设置EnableEnhancement为true,当设置EnableDeepRead为true时EnableEnhancement默认为true;2.目前暂时只支持单文档单轮的深度阅读;3.深度阅读功能的文件上传可以使用FilesUploads接口,具体参数详见FilesUploads接口文档
170
202
  # @type EnableDeepRead: Boolean
203
+ # @param WebSearchOptions: 知识注入相关的参数信息
204
+ # @type WebSearchOptions: :class:`Tencentcloud::Hunyuan.v20230901.models.WebSearchOptions`
171
205
 
172
- attr_accessor :Model, :Messages, :Stream, :StreamModeration, :TopP, :Temperature, :EnableEnhancement, :Tools, :ToolChoice, :CustomTool, :SearchInfo, :Citation, :EnableSpeedSearch, :EnableMultimedia, :EnableDeepSearch, :Seed, :ForceSearchEnhancement, :Stop, :EnableRecommendedQuestions, :EnableDeepRead
206
+ attr_accessor :Model, :Messages, :Stream, :StreamModeration, :TopP, :Temperature, :EnableEnhancement, :Tools, :ToolChoice, :CustomTool, :SearchInfo, :Citation, :EnableSpeedSearch, :EnableMultimedia, :EnableDeepSearch, :Seed, :ForceSearchEnhancement, :Stop, :EnableRecommendedQuestions, :EnableDeepRead, :WebSearchOptions
173
207
 
174
- 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)
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)
175
209
  @Model = model
176
210
  @Messages = messages
177
211
  @Stream = stream
@@ -192,6 +226,7 @@ module TencentCloud
192
226
  @Stop = stop
193
227
  @EnableRecommendedQuestions = enablerecommendedquestions
194
228
  @EnableDeepRead = enabledeepread
229
+ @WebSearchOptions = websearchoptions
195
230
  end
196
231
 
197
232
  def deserialize(params)
@@ -232,6 +267,10 @@ module TencentCloud
232
267
  @Stop = params['Stop']
233
268
  @EnableRecommendedQuestions = params['EnableRecommendedQuestions']
234
269
  @EnableDeepRead = params['EnableDeepRead']
270
+ unless params['WebSearchOptions'].nil?
271
+ @WebSearchOptions = WebSearchOptions.new
272
+ @WebSearchOptions.deserialize(params['WebSearchOptions'])
273
+ end
235
274
  end
236
275
  end
237
276
 
@@ -677,7 +716,7 @@ module TencentCloud
677
716
  class File3D < TencentCloud::Common::AbstractModel
678
717
  # @param Type: 3D文件的格式。取值范围:GIF, OBJ
679
718
  # @type Type: String
680
- # @param Url: 文件的Url
719
+ # @param Url: 文件的Url(有效期24小时)
681
720
  # @type Url: String
682
721
 
683
722
  attr_accessor :Type, :Url
@@ -1640,6 +1679,22 @@ module TencentCloud
1640
1679
  end
1641
1680
  end
1642
1681
 
1682
+ # 外部知识
1683
+ class Knowledge < TencentCloud::Common::AbstractModel
1684
+ # @param Text: 表示具体的知识信息文本
1685
+ # @type Text: String
1686
+
1687
+ attr_accessor :Text
1688
+
1689
+ def initialize(text=nil)
1690
+ @Text = text
1691
+ end
1692
+
1693
+ def deserialize(params)
1694
+ @Text = params['Text']
1695
+ end
1696
+ end
1697
+
1643
1698
  # logo参数
1644
1699
  class LogoParam < TencentCloud::Common::AbstractModel
1645
1700
  # @param LogoUrl: 水印url
@@ -2564,9 +2619,15 @@ module TencentCloud
2564
2619
  class SubmitHunyuanTo3DJobRequest < TencentCloud::Common::AbstractModel
2565
2620
  # @param Prompt: 3D内容的描述,中文正向提示词。最多支持200个 utf-8 字符,ImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
2566
2621
  # @type Prompt: String
2567
- # @param ImageBase64: 输入图 Base64 数据。最多支持200个 utf-8 字符,ImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
2622
+ # @param ImageBase64: 输入图 Base64 数据。
2623
+ # 大小:单边分辨率要求不小于50,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m)
2624
+ # 格式:jpg,png,jpeg,webp。
2625
+ # ImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
2568
2626
  # @type ImageBase64: String
2569
- # @param ImageUrl: 输入图Url。最多支持200个 utf-8 字符,ImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
2627
+ # @param ImageUrl: 输入图Url
2628
+ # 大小:单边分辨率要求不小于50,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m)
2629
+ # 格式:jpg,png,jpeg,webp。
2630
+ # ImageBase64/ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
2570
2631
  # @type ImageUrl: String
2571
2632
  # @param Num: 生成数量。默认1,当前限制只能为1。
2572
2633
  # @type Num: Integer
@@ -2590,7 +2651,7 @@ module TencentCloud
2590
2651
 
2591
2652
  # SubmitHunyuanTo3DJob返回参数结构体
2592
2653
  class SubmitHunyuanTo3DJobResponse < TencentCloud::Common::AbstractModel
2593
- # @param JobId: 任务id
2654
+ # @param JobId: 任务id(有效期24小时)
2594
2655
  # @type JobId: String
2595
2656
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2596
2657
  # @type RequestId: String
@@ -3074,6 +3135,59 @@ module TencentCloud
3074
3135
  end
3075
3136
  end
3076
3137
 
3138
+ # 用户位置详细信息
3139
+ class UserLocation < TencentCloud::Common::AbstractModel
3140
+ # @param Type: 表示位置类型
3141
+ # @type Type: String
3142
+ # @param Approximate: 用户近似位置的详细信息
3143
+ # @type Approximate: :class:`Tencentcloud::Hunyuan.v20230901.models.Approximate`
3144
+
3145
+ attr_accessor :Type, :Approximate
3146
+
3147
+ def initialize(type=nil, approximate=nil)
3148
+ @Type = type
3149
+ @Approximate = approximate
3150
+ end
3151
+
3152
+ def deserialize(params)
3153
+ @Type = params['Type']
3154
+ unless params['Approximate'].nil?
3155
+ @Approximate = Approximate.new
3156
+ @Approximate.deserialize(params['Approximate'])
3157
+ end
3158
+ end
3159
+ end
3160
+
3161
+ # 知识注入相关的参数信息
3162
+ class WebSearchOptions < TencentCloud::Common::AbstractModel
3163
+ # @param Knowledge: 表示用户注入的知识信息
3164
+ # @type Knowledge: Array
3165
+ # @param UserLocation: 用户位置详细信息
3166
+ # @type UserLocation: :class:`Tencentcloud::Hunyuan.v20230901.models.UserLocation`
3167
+
3168
+ attr_accessor :Knowledge, :UserLocation
3169
+
3170
+ def initialize(knowledge=nil, userlocation=nil)
3171
+ @Knowledge = knowledge
3172
+ @UserLocation = userlocation
3173
+ end
3174
+
3175
+ def deserialize(params)
3176
+ unless params['Knowledge'].nil?
3177
+ @Knowledge = []
3178
+ params['Knowledge'].each do |i|
3179
+ knowledge_tmp = Knowledge.new
3180
+ knowledge_tmp.deserialize(i)
3181
+ @Knowledge << knowledge_tmp
3182
+ end
3183
+ end
3184
+ unless params['UserLocation'].nil?
3185
+ @UserLocation = UserLocation.new
3186
+ @UserLocation.deserialize(params['UserLocation'])
3187
+ end
3188
+ end
3189
+ end
3190
+
3077
3191
  end
3078
3192
  end
3079
3193
  end
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.1056
4
+ version: 3.0.1058
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-05-11 00:00:00.000000000 Z
11
+ date: 2025-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common