Skip to content

Commit 85fe814

Browse files
Auto-generated code for main (#2028)
1 parent 65580b0 commit 85fe814

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

docs/reference.asciidoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6302,6 +6302,13 @@ ELSER the config is not required.
63026302
** *`model_size_bytes` (Optional, number)*: The estimated memory usage in bytes to keep the trained model in memory.
63036303
This property is supported only if defer_definition_decompression is true
63046304
or the model definition is not supplied.
6305+
** *`platform_architecture` (Optional, string)*: The platform architecture (if applicable) of the trained mode. If the model
6306+
only works on one platform, because it is heavily optimized for a particular
6307+
processor architecture and OS combination, then this field specifies which.
6308+
The format of the string must match the platform identifiers used by Elasticsearch,
6309+
so one of, `linux-x86_64`, `linux-aarch64`, `darwin-x86_64`, `darwin-aarch64`,
6310+
or `windows-x86_64`. For portable models (those that work independent of processor
6311+
architecture or OS features), leave this field unset.
63056312
** *`tags` (Optional, string[])*: An array of tags to organize the model.
63066313
** *`defer_definition_decompression` (Optional, boolean)*: If set to `true` and a `compressed_definition` is provided, the request defers definition decompression and skips relevant validations.
63076314

src/api/api/ml.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1821,7 +1821,7 @@ export default class Ml {
18211821
async putTrainedModel (this: That, params: T.MlPutTrainedModelRequest | TB.MlPutTrainedModelRequest, options?: TransportRequestOptions): Promise<T.MlPutTrainedModelResponse>
18221822
async putTrainedModel (this: That, params: T.MlPutTrainedModelRequest | TB.MlPutTrainedModelRequest, options?: TransportRequestOptions): Promise<any> {
18231823
const acceptedPath: string[] = ['model_id']
1824-
const acceptedBody: string[] = ['compressed_definition', 'definition', 'description', 'inference_config', 'input', 'metadata', 'model_type', 'model_size_bytes', 'tags']
1824+
const acceptedBody: string[] = ['compressed_definition', 'definition', 'description', 'inference_config', 'input', 'metadata', 'model_type', 'model_size_bytes', 'platform_architecture', 'tags']
18251825
const querystring: Record<string, any> = {}
18261826
// @ts-expect-error
18271827
const userBody: any = params?.body

src/api/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13977,6 +13977,7 @@ export interface MlPutTrainedModelRequest extends RequestBase {
1397713977
metadata?: any
1397813978
model_type?: MlTrainedModelType
1397913979
model_size_bytes?: long
13980+
platform_architecture?: string
1398013981
tags?: string[]
1398113982
}
1398213983

src/api/typesWithBodyKey.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14233,6 +14233,7 @@ export interface MlPutTrainedModelRequest extends RequestBase {
1423314233
metadata?: any
1423414234
model_type?: MlTrainedModelType
1423514235
model_size_bytes?: long
14236+
platform_architecture?: string
1423614237
tags?: string[]
1423714238
}
1423814239
}

0 commit comments

Comments
 (0)