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

Commit ca056e4

Browse files
authored
chore: remove hard-coded engine value in cortex ps (#2002)
1 parent 7ff86d0 commit ca056e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

engine/cli/commands/ps_cmd.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ void PsCmd::Exec(const std::string& host, int port) {
2727
for (const auto& item : res.value()["data"]) {
2828
ModelLoadedStatus model_status;
2929
// TODO(sang) hardcode for now
30-
model_status.engine = kLlamaEngine;
30+
model_status.engine = item["engine"].isNull()
31+
? kLlamaEngine : item["engine"].asString();
3132
model_status.model = item["id"].asString();
3233
model_status.ram = item["ram"].asUInt64();
3334
model_status.start_time = item["start_time"].asUInt64();

0 commit comments

Comments
 (0)