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

Commit 142adf0

Browse files
chore: minor copy nits (#1213)
* chore: minor copy nits * copy edits --------- Co-authored-by: vansangpfiev <[email protected]>
1 parent 131b610 commit 142adf0

File tree

6 files changed

+11
-14
lines changed

6 files changed

+11
-14
lines changed

engine/commands/cortex_upd_cmd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ inline bool ReplaceBinaryInflight(const std::filesystem::path& src,
127127
std::filesystem::perms::others_read |
128128
std::filesystem::perms::others_exec);
129129
} catch (const std::exception& e) {
130-
CTL_ERR("Something wrong happened: " << e.what());
130+
CTL_ERR("Something went wrong: " << e.what());
131131
if (std::filesystem::exists(temp)) {
132132
std::rename(temp.string().c_str(), dst.string().c_str());
133133
CLI_LOG("Restored binary file");

engine/controllers/command_line_parser.cc

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,10 @@ bool CommandLineParser::SetupCommand(int argc, char** argv) {
7979

8080
{
8181
auto model_pull_cmd =
82-
app_.add_subcommand("pull",
83-
"Download a model from a registry. Working with "
84-
"HuggingFace repositories. For available models, "
85-
"please visit https://huggingface.co/cortexso");
86-
model_pull_cmd->add_option("model_id", model_id, "");
82+
app_.add_subcommand("pull",
83+
"Download a model by URL (or HuggingFace ID) "
84+
"See built-in models: https://huggingface.co/cortexso");
85+
model_pull_cmd->add_option("model_id", model_id, "");
8786
model_pull_cmd->callback([&model_id]() {
8887
try {
8988
commands::ModelPullCmd().Exec(model_id);
@@ -109,7 +108,7 @@ bool CommandLineParser::SetupCommand(int argc, char** argv) {
109108
std::string msg;
110109
{
111110
auto chat_cmd =
112-
app_.add_subcommand("chat", "Send a chat request to a model");
111+
app_.add_subcommand("chat", "Send a chat completion request");
113112

114113
chat_cmd->add_option("model_id", model_id, "");
115114
chat_cmd->add_option("-m,--message", msg, "Message to chat with model");
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import platform
2-
31
import pytest
42
from test_runner import run
53

@@ -10,5 +8,5 @@ class TestCortexUpdate:
108
@pytest.mark.skip(reason="Stable release is not available yet")
119
def test_cortex_update(self):
1210
exit_code, output, error = run("Update cortex", ["update"])
13-
assert exit_code == 0, f"Something wrong happened"
14-
assert "Update cortex sucessfully" in output
11+
assert exit_code == 0, "Something went wrong"
12+
assert "Updated cortex sucessfully" in output

platform/src/infrastructure/commanders/chat.command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type ChatOptions = {
2929

3030
@SubCommand({
3131
name: 'chat',
32-
description: 'Send a chat request to a model',
32+
description: 'Send a chat completion request',
3333
arguments: '[model_id] [message]',
3434
argsDescription: {
3535
model_id:

platform/src/infrastructure/commanders/models/model-pull.command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import { fileManagerService } from '@/infrastructure/services/file-manager/file-
2626
arguments: '<model_id>',
2727
argsDescription: { model_id: 'Model repo to pull' },
2828
description:
29-
'Download a model from a registry. Working with HuggingFace repositories. For available models, please visit https://huggingface.co/cortexso',
29+
'Download a model by URL (or HuggingFace ID). See built-in models: https://huggingface.co/cortexso',
3030
})
3131
@SetCommandContext()
3232
export class ModelPullCommand extends BaseCommand {

platform/src/infrastructure/commanders/run.command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ type RunOptions = {
3232
model_id:
3333
'Model to run. If the model is not available, it will attempt to pull.',
3434
},
35-
description: 'Shortcut to start a model and chat',
35+
description: 'Shortcut: start a model and interactive chat shell',
3636
})
3737
export class RunCommand extends BaseCommand {
3838
chatClient: ChatClient;

0 commit comments

Comments
 (0)