Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 199ed56

Browse files
authored
chore: quick update model repo to cortexso (#810)
1 parent 4f431a2 commit 199ed56

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

cortex-js/src/infrastructure/commanders/models/model-pull.command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { checkModelCompatibility } from '@/utils/model-check';
1616
arguments: '<model_id>',
1717
argsDescription: { model_id: 'Model repo to pull' },
1818
description:
19-
'Download a model from a registry. Working with HuggingFace repositories. For available models, please visit https://huggingface.co/cortexhub',
19+
'Download a model from a registry. Working with HuggingFace repositories. For available models, please visit https://huggingface.co/cortexso',
2020
})
2121
@SetCommandContext()
2222
export class ModelPullCommand extends CommandRunner {

cortex-js/src/infrastructure/commanders/shortcuts/run.command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class RunCommand extends CommandRunner {
5757
// Try Pull
5858
if (!(await this.modelsCliUsecases.getModel(modelId))) {
5959
console.log(
60-
`${modelId} not found on filesystem. Downloading from remote: https://huggingface.co/cortexhub if possible.`,
60+
`${modelId} not found on filesystem. Downloading from remote: https://huggingface.co/cortexso if possible.`,
6161
);
6262
await this.modelsCliUsecases.pullModel(modelId).catch((e: Error) => {
6363
if (e instanceof ModelNotFoundException)

cortex-js/src/infrastructure/commanders/usecases/benchmark.cli.usecases.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ export class BenchmarkCliUsecases {
4242
};
4343

4444
const model = params?.model ?? this.config.api.parameters.model;
45-
// TODO: Using OpenAI client or Cortex client to benchmark?
4645
this.cortexClient = new Cortex({
4746
apiKey: this.config.api.api_key,
4847
baseURL: this.config.api.base_url,

cortex-js/src/infrastructure/constants/huggingface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export const HUGGING_FACE_TREE_REF_URL = (
22
repo: string,
33
tree: string,
44
path: string,
5-
) => `https://huggingface.co/cortexhub/${repo}/resolve/${tree}/${path}`;
5+
) => `https://huggingface.co/cortexso/${repo}/resolve/${tree}/${path}`;
66

77
export const HUGGING_FACE_DOWNLOAD_FILE_MAIN_URL = (
88
modelId: string,

cortex-js/src/utils/huggingface.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export async function fetchJanRepoData(
119119
modelId.split(':')[1] ?? !modelId.includes('/') ? 'default' : '',
120120
);
121121
const url = getRepoModelsUrl(
122-
`${!modelId.includes('/') ? 'cortexhub/' : ''}${repo}`,
122+
`${!modelId.includes('/') ? 'cortexso/' : ''}${repo}`,
123123
tree,
124124
);
125125

@@ -165,7 +165,7 @@ export async function fetchJanRepoData(
165165
tags: ['gguf'],
166166
id: modelId,
167167
modelId: modelId,
168-
author: 'cortexhub',
168+
author: 'cortexso',
169169
sha: '',
170170
downloads: 0,
171171
lastModified: '',

0 commit comments

Comments
 (0)