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

Commit 2f141f4

Browse files
committed
feat: add pre-prompt for role
1 parent 6ee413d commit 2f141f4

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

controllers/llamaCPP.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ void llamaCPP::chatCompletion(
106106
} else {
107107
role = input_role;
108108
}
109-
110-
LOG_INFO << "VALUE OF ROLE BEING USED:" << role;
111109
std::string content = message["content"].asString();
112110
formatted_output += role + content + "\n";
113111
}

controllers/llamaCPP.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2142,8 +2142,8 @@ class llamaCPP : public drogon::HttpController<llamaCPP> {
21422142
size_t sent_count = 0;
21432143
size_t sent_token_probs_index = 0;
21442144
std::thread backgroundThread;
2145-
std::string user_prompt = "USER: ";
2146-
std::string ai_prompt = "ASSISTANT: ";
2147-
std::string system_prompt = "ASSISTANT's RULE: ";
2145+
std::string user_prompt;
2146+
std::string ai_prompt;
2147+
std::string system_prompt;
21482148
};
21492149
}; // namespace inferences

0 commit comments

Comments
 (0)