diff --git a/cortex-js/src/usecases/models/models.usecases.ts b/cortex-js/src/usecases/models/models.usecases.ts index b0f86eef2..668514764 100644 --- a/cortex-js/src/usecases/models/models.usecases.ts +++ b/cortex-js/src/usecases/models/models.usecases.ts @@ -327,7 +327,6 @@ export class ModelsUsecases { throw new BadRequestException('Model already exists'); } - // ONNX only supported on Windows const modelsContainerDir = await this.fileManagerService.getModelsPath(); if (!existsSync(modelsContainerDir)) { diff --git a/cortex-js/src/utils/huggingface.ts b/cortex-js/src/utils/huggingface.ts index dbdc8b643..099e1aacf 100644 --- a/cortex-js/src/utils/huggingface.ts +++ b/cortex-js/src/utils/huggingface.ts @@ -116,7 +116,7 @@ export async function fetchJanRepoData( ): Promise { const repo = modelId.split(':')[0]; const tree = await parseModelHubEngineBranch( - modelId.split(':')[1] ?? !modelId.includes('/') ? 'default' : '', + modelId.split(':')[1] ?? (!modelId.includes('/') ? 'default' : ''), ); const url = getRepoModelsUrl( `${!modelId.includes('/') ? 'cortexso/' : ''}${repo}`,