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

Conversation

@nguyenhoangthuan99
Copy link
Contributor

@nguyenhoangthuan99 nguyenhoangthuan99 commented Sep 11, 2024

Fix #1054
related PR janhq/cortex.llamacpp#223
Sumarry changes:

@nguyenhoangthuan99 nguyenhoangthuan99 marked this pull request as ready for review September 12, 2024 02:19
@namchuai
Copy link
Contributor

Please squash the commit

auto& en = std::get<EngineI*>(engines_[engine_type].engine);
if (engine_type == kLlamaEngine) { //fix for llamacpp engine first
auto config = file_manager_utils::GetCortexConfig();
en->SetFileLogger(config.maxLogLines, config.logFolderPath + "/" +
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit, IMO using std::filesystem::path is safer compare to string concatenation

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed it in this pr #1200

Copy link
Contributor

@dan-menlo dan-menlo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nguyenhoangthuan99 Approved to unblock. Please also link the cortex.llamacpp PR in this, as I think they have to be read together for future users to understand.

@vansangpfiev vansangpfiev changed the title Feat/redirect llamacpp log feat: redirect llamacpp log Sep 18, 2024
@vansangpfiev vansangpfiev merged commit 274b51d into dev Sep 18, 2024
@vansangpfiev vansangpfiev deleted the feat/redirect-llamacpp-log branch September 18, 2024 09:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

improve: redirect log to right position

5 participants