From 90fdf826f4a1b68f6c69dcfe671979a7087584dc Mon Sep 17 00:00:00 2001 From: Dima Arnautov Date: Fri, 11 Oct 2024 16:14:10 +0200 Subject: [PATCH] fix ts errors --- x-pack/plugins/ml/server/index.ts | 22 ++++--------------- .../services/ml/trained_models_table.ts | 2 +- 2 files changed, 5 insertions(+), 19 deletions(-) diff --git a/x-pack/plugins/ml/server/index.ts b/x-pack/plugins/ml/server/index.ts index cf9ea434412ae..ec258628fa283 100644 --- a/x-pack/plugins/ml/server/index.ts +++ b/x-pack/plugins/ml/server/index.ts @@ -33,25 +33,11 @@ export const config: PluginConfigDescriptor = { exposeToBrowser: { ad: true, dfa: true, - nlp: true, - experimental: true, - modelDeployment: { - allowStaticAllocations: true, - vCPURange: { - low: { - min: 0, - max: 2, - }, - medium: { - min: 1, - max: 16, - }, - high: { - min: 1, - max: 32, - }, - }, + nlp: { + enabled: true, + modelDeployment: true, }, + experimental: true, }, }; diff --git a/x-pack/test/functional/services/ml/trained_models_table.ts b/x-pack/test/functional/services/ml/trained_models_table.ts index 5ffbf34fd4c1a..4628e185a375c 100644 --- a/x-pack/test/functional/services/ml/trained_models_table.ts +++ b/x-pack/test/functional/services/ml/trained_models_table.ts @@ -81,7 +81,7 @@ export function TrainedModelsTableProvider( /** * Maps the vCPU level to the corresponding value in the slider. */ - private readonly vCPULevelValueMap = { + public readonly vCPULevelValueMap = { low: 0.5, medium: 1.5, high: 2.5,