Skip to content

Commit

Permalink
feat: log cortex.llamacpp version (#566)
Browse files Browse the repository at this point in the history
  • Loading branch information
vansangpfiev authored May 15, 2024
1 parent 14cfcfe commit 952d8a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions cortex-cpp/engines/cortex.llamacpp/engine.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# cortex.llamacpp release version
set(VERSION 0.1.2)
set(ENGINE_VERSION v${VERSION})
add_compile_definitions(CORTEX_LLAMACPP_VERSION="${VERSION}")

# MESSAGE("ENGINE_VERSION=" ${ENGINE_VERSION})

Expand Down
4 changes: 4 additions & 0 deletions cortex-cpp/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ int main(int argc, char* argv[]) {
#else
LOG_INFO << "cortex-cpp version: undefined";
#endif
#ifdef CORTEX_LLAMACPP_VERSION
LOG_INFO << "cortex.llamacpp version: " << CORTEX_LLAMACPP_VERSION;
#endif

LOG_INFO << "Server started, listening at: " << host << ":" << port;
LOG_INFO << "Please load your model";
drogon::app().addListener(host, port);
Expand Down

0 comments on commit 952d8a2

Please sign in to comment.