Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion engine/commands/cortex_upd_cmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ inline bool ReplaceBinaryInflight(const std::filesystem::path& src,
std::filesystem::perms::others_read |
std::filesystem::perms::others_exec);
} catch (const std::exception& e) {
CTL_ERR("Something wrong happened: " << e.what());
CTL_ERR("Something went wrong: " << e.what());
if (std::filesystem::exists(temp)) {
std::rename(temp.string().c_str(), dst.string().c_str());
CLI_LOG("Restored binary file");
Expand Down
11 changes: 5 additions & 6 deletions engine/controllers/command_line_parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,10 @@ bool CommandLineParser::SetupCommand(int argc, char** argv) {

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

chat_cmd->add_option("model_id", model_id, "");
chat_cmd->add_option("-m,--message", msg, "Message to chat with model");
Expand Down
6 changes: 2 additions & 4 deletions engine/e2e-test/test_cortex_update.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import platform

import pytest
from test_runner import run

Expand All @@ -10,5 +8,5 @@ class TestCortexUpdate:
@pytest.mark.skip(reason="Stable release is not available yet")
def test_cortex_update(self):
exit_code, output, error = run("Update cortex", ["update"])
assert exit_code == 0, f"Something wrong happened"
assert "Update cortex sucessfully" in output
assert exit_code == 0, "Something went wrong"
assert "Updated cortex sucessfully" in output
2 changes: 1 addition & 1 deletion platform/src/infrastructure/commanders/chat.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type ChatOptions = {

@SubCommand({
name: 'chat',
description: 'Send a chat request to a model',
description: 'Send a chat completion request',
arguments: '[model_id] [message]',
argsDescription: {
model_id:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { fileManagerService } from '@/infrastructure/services/file-manager/file-
arguments: '<model_id>',
argsDescription: { model_id: 'Model repo to pull' },
description:
'Download a model from a registry. Working with HuggingFace repositories. For available models, please visit https://huggingface.co/cortexso',
'Download a model by URL (or HuggingFace ID). See built-in models: https://huggingface.co/cortexso',
})
@SetCommandContext()
export class ModelPullCommand extends BaseCommand {
Expand Down
2 changes: 1 addition & 1 deletion platform/src/infrastructure/commanders/run.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type RunOptions = {
model_id:
'Model to run. If the model is not available, it will attempt to pull.',
},
description: 'Shortcut to start a model and chat',
description: 'Shortcut: start a model and interactive chat shell',
})
export class RunCommand extends BaseCommand {
chatClient: ChatClient;
Expand Down