lib/v20180416/models.rb in tencentcloud-sdk-es-3.0.941 vs lib/v20180416/models.rb in tencentcloud-sdk-es-3.0.942
- old
+ new
@@ -3770,20 +3770,28 @@
class InstallInstanceModelRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例ID
# @type InstanceId: String
# @param UsrCosModelUrlList: 客户上传到cos的模型地址,单次请求限制一个。cos文件为压缩文件,格式包括:zip、tgz和tar.gz
# @type UsrCosModelUrlList: Array
+ # @param ModelNames: 客户指定安装的模型名称,可为空,默认为模型文件名
+ # @type ModelNames: Array
+ # @param TaskTypes: 模型使用的任务类型,包括:fill_mask, ner, question_answering, text_classification, text_embedding, text_expansion, text_similarity和zero_shot_classification,默认为text_embedding
+ # @type TaskTypes: Array
- attr_accessor :InstanceId, :UsrCosModelUrlList
+ attr_accessor :InstanceId, :UsrCosModelUrlList, :ModelNames, :TaskTypes
- def initialize(instanceid=nil, usrcosmodelurllist=nil)
+ def initialize(instanceid=nil, usrcosmodelurllist=nil, modelnames=nil, tasktypes=nil)
@InstanceId = instanceid
@UsrCosModelUrlList = usrcosmodelurllist
+ @ModelNames = modelnames
+ @TaskTypes = tasktypes
end
def deserialize(params)
@InstanceId = params['InstanceId']
@UsrCosModelUrlList = params['UsrCosModelUrlList']
+ @ModelNames = params['ModelNames']
+ @TaskTypes = params['TaskTypes']
end
end
# InstallInstanceModel返回参数结构体
class InstallInstanceModelResponse < TencentCloud::Common::AbstractModel