Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
darnautov committed Nov 30, 2023
1 parent 56fc7cb commit de7154e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions x-pack/packages/ml/trained_models_utils/index.ts
Expand Up @@ -20,6 +20,7 @@ export {
type ModelDefinitionResponse,
type ElserVersion,
type GetModelDownloadConfigOptions,
type ElasticCuratedModelName,
ELSER_ID_V1,
ELASTIC_MODEL_TAG,
ELASTIC_MODEL_TYPE,
Expand Down
Expand Up @@ -126,13 +126,13 @@ export const ELASTIC_MODEL_DEFINITIONS: Record<string, ModelDefinition> = Object
},
} as const);

export type ElasticCurateModelName = 'elser' | 'e5';
export type ElasticCuratedModelName = 'elser' | 'e5';

export interface ModelDefinition {
/**
* Model name, e.g. elser
*/
modelName: ElasticCurateModelName;
modelName: ElasticCuratedModelName;
version: number;
/**
* Default PUT model configuration
Expand Down
Expand Up @@ -23,7 +23,7 @@ import {
type ModelDefinitionResponse,
} from '@kbn/ml-trained-models-utils';
import type { CloudSetup } from '@kbn/cloud-plugin/server';
import type { ElasticCurateModelName } from '@kbn/ml-trained-models-utils/src/constants/trained_models';
import type { ElasticCuratedModelName } from '@kbn/ml-trained-models-utils';
import type { PipelineDefinition } from '../../../common/types/trained_models';
import type { MlClient } from '../../lib/ml_client';
import type { MLSavedObjectService } from '../../saved_objects';
Expand Down Expand Up @@ -502,7 +502,7 @@ export class ModelsProvider {
* @returns
*/
async getCuratedModelConfig(
modelName: ElasticCurateModelName,
modelName: ElasticCuratedModelName,
options?: GetModelDownloadConfigOptions
): Promise<ModelDefinitionResponse> | never {
const modelDownloadConfig = (await this.getModelDownloads()).filter(
Expand Down

0 comments on commit de7154e

Please sign in to comment.