API generation
This commit is contained in:
@ -1056,6 +1056,10 @@ MlApi.prototype.inferTrainedModelDeployment = function mlInferTrainedModelDeploy
|
||||
const err = new this[kConfigurationError]('Missing required parameter: model_id or modelId')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
if (params.body == null) {
|
||||
const err = new this[kConfigurationError]('Missing required parameter: body')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
let { method, body, modelId, model_id, ...querystring } = params
|
||||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
||||
|
||||
3
api/requestParams.d.ts
vendored
3
api/requestParams.d.ts
vendored
@ -1737,9 +1737,10 @@ export interface MlGetTrainedModelsStats extends Generic {
|
||||
size?: number;
|
||||
}
|
||||
|
||||
export interface MlInferTrainedModelDeployment extends Generic {
|
||||
export interface MlInferTrainedModelDeployment<T = RequestBody> extends Generic {
|
||||
model_id: string;
|
||||
timeout?: string;
|
||||
body: T;
|
||||
}
|
||||
|
||||
export interface MlInfo extends Generic {
|
||||
|
||||
Reference in New Issue
Block a user