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

Commit 3a26ee0

Browse files
authored
Merge pull request #602 from janhq/chore/remove-parameter-for-run-command
chore: remove parameter for run command
2 parents 7802290 + b063cac commit 3a26ee0

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ import { exit } from 'node:process';
55
import { ChatCliUsecases } from '../usecases/chat.cli.usecases';
66
import { defaultCortexCppHost, defaultCortexCppPort } from 'constant';
77

8-
type RunOptions = {
9-
model?: string;
10-
};
11-
128
@SubCommand({
139
name: 'run',
1410
description: 'EXPERIMENTAL: Shortcut to start a model and chat',
@@ -22,12 +18,12 @@ export class RunCommand extends CommandRunner {
2218
super();
2319
}
2420

25-
async run(_input: string[], option: RunOptions): Promise<void> {
26-
const modelId = option.model;
27-
if (!modelId) {
28-
console.error('Model ID is required');
21+
async run(input: string[]): Promise<void> {
22+
if (input.length === 0) {
23+
console.error('Model Id is required');
2924
exit(1);
3025
}
26+
const modelId = input[0];
3127

3228
await this.cortexUsecases.startCortex(
3329
defaultCortexCppHost,

0 commit comments

Comments
 (0)