diff --git a/lib/user-interface/react-app/src/common/helpers/embeddings-model-helper.ts b/lib/user-interface/react-app/src/common/helpers/embeddings-model-helper.ts index fd3d1db8c..2ffc24220 100644 --- a/lib/user-interface/react-app/src/common/helpers/embeddings-model-helper.ts +++ b/lib/user-interface/react-app/src/common/helpers/embeddings-model-helper.ts @@ -16,18 +16,18 @@ export abstract class EmbeddingsModelHelper { static parseValue(value?: string) { const retValue = { provider: "", - dimentions: 0, + dimensions: 0, name: "", }; if (!value) return retValue; const [provider, dimensionsStr, name] = value.split("::") ?? []; - let dimentions = parseInt(dimensionsStr); - if (isNaN(dimentions)) dimentions = 0; + let dimensions = parseInt(dimensionsStr); + if (isNaN(dimensions)) dimensions = 0; return { provider, - dimentions, + dimensions, name, }; }